check_linux_sensors

command module
v0.0.0-...-fe662be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2019 License: MPL-2.0 Imports: 10 Imported by: 0

README

About

The check plugin check_linux_sensors monitors the hardware sensors via libsensors:

  • alarms
  • current
  • energy
  • fan RPM
  • humidity
  • power
  • temperature
  • voltage

Requirements

  • a Linux OS on bare metal
  • libsensors(3)

Usage

The plug-and-play Linux binaries don't take any CLI arguments or environment variables.

As the plugin uses libsensors, it respects the configuration in sensors.conf(5).

To print the legal info, execute the plugin in a terminal:

$ ./check_linux_sensors

In this case the program will always terminate with exit status 3 ("unknown") without actually checking anything.

Testing

If you want to actually execute a check inside a terminal, you have to connect the standard output of the plugin to anything other than a terminal – e.g. the standard input of another process:

$ ./check_linux_sensors |cat

In this case the exit code is likely to be the cat's one. This can be worked around like this:

bash $ set -o pipefail
bash $ ./check_linux_sensors |cat

Actual monitoring

Just integrate the plugin into the monitoring tool of your choice like any other check plugin. (Consult that tool's manual on how to do that.) It should work with any monitoring tool supporting the Nagio$ check plugin API.

The only limitation: check_linux_sensors must be run on the host to be monitored – either with an agent of your monitoring tool or by SSH. Otherwise it will monitor the host your monitoring tool runs on.

Icinga 2

This repository ships the check command definition as well as a service template and host example for Icinga 2.

The service definition will work in both correctly set up Icinga 2 clusters and Icinga 2 instances not being part of any cluster as long as the hosts are named after the endpoints.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL