| 1 |
check_lm_sensors is a Nagios plugin to monitor the values of on board |
| 2 |
sensors and hard disk temperatures on Linux systems |
| 3 |
|
| 4 |
------------------------------------------------------------------------------ |
| 5 |
usage: |
| 6 |
|
| 7 |
-?, --help help |
| 8 |
|
| 9 |
-l, --low specifies a check for a sensor value which is too low. |
| 10 |
Example: |
| 11 |
--low fan1=2000,1000 |
| 12 |
will give a warning if the value of the fan1 sensor drops |
| 13 |
below 2000 RPMs and a critical status if it drops below |
| 14 |
1000 RPMs |
| 15 |
|
| 16 |
-h, --high specifies a check for a sensor value which is too high. |
| 17 |
Example: |
| 18 |
--high temp1=50,60 |
| 19 |
will give a warning if the value of the temp1 sensor reaches |
| 20 |
50 degrees and a critical status if it reaches 60 degrees |
| 21 |
|
| 22 |
-r, --range specifies a check for a sensor value which should stay |
| 23 |
in a given range. |
| 24 |
Example: |
| 25 |
--range v1=1,2,12 |
| 26 |
will give a warning if the value of the sensor gets outside |
| 27 |
the 11-13 range (12+-1) and a critical status if the value is |
| 28 |
outside the 10-14 range (12+-2) |
| 29 |
|
| 30 |
--rename renames a sensor in the performance output (useful if you |
| 31 |
want to have common names for similar sensors across different |
| 32 |
machines) |
| 33 |
Example: |
| 34 |
--rename cputemp=temp1 |
| 35 |
|
| 36 |
--list list all available sensors |
| 37 |
|
| 38 |
--nosensors disable checks on check lm_sensors |
| 39 |
|
| 40 |
--nodrives disable checks on drive temperatures |
| 41 |
|
| 42 |
-d, --drives enable checks on drive temperature |
| 43 |
|
| 44 |
--hddtemp_bin manually specifies the location of the hddtemp binary |
| 45 |
|
| 46 |
--sensors_bin manually specified the location of the sensors binary |
| 47 |
|
| 48 |
-v, --verbose verbose output |
| 49 |
|
| 50 |
--version prints $prog_name's version and exits |
| 51 |
|
| 52 |
------------------------------------------------------------------------------ |
| 53 |
Values |
| 54 |
(see also Documentation/hwmon/sysfs-interface in the kernel documentation) |
| 55 |
|
| 56 |
lm-sensors supports the following sensors |
| 57 |
|
| 58 |
* 'in' voltage channel in millivolt |
| 59 |
* 'cpu' CPU core reference voltage in millivolt |
| 60 |
* 'fan' fan speed in revolutions per minute (RPM) |
| 61 |
* 'pwm' pulse width modulation (255 is 100%) |
| 62 |
* 'temp' temperature in millidegree Celsius (or millivolt) |
| 63 |
* 'curr' current in milliampere |
| 64 |
* 'power' in microWatt |
| 65 |
* 'energy' in microJoule |
| 66 |
|
| 67 |
|
| 68 |
------------------------------------------------------------------------------ |
| 69 |
Example: |
| 70 |
|
| 71 |
$ check_lm_sensors --high it8718_temp1=20000,30000 --range it8718_in0=100,200,1200 -v |
| 72 |
hddtemp found at /usr/bin/hddtemp |
| 73 |
Looking for drives in /proc/partitions |
| 74 |
found temperature for drive sda (sda = 47) |
| 75 |
warning: temperature for /dev/sdd not available |
| 76 |
warning: temperature for /dev/sde not available |
| 77 |
found sensor k8temp_temp1 (11000) |
| 78 |
found sensor k8temp_temp2 (7000) |
| 79 |
found sensor k8temp_temp3 (5000) |
| 80 |
found sensor k8temp_temp4 (2000) |
| 81 |
found sensor it8718_in0 (1152) |
| 82 |
found sensor it8718_in1 (0) |
| 83 |
found sensor it8718_in2 (3392) |
| 84 |
found sensor it8718_in3 (3008) |
| 85 |
found sensor it8718_in4 (3024) |
| 86 |
found sensor it8718_in5 (3200) |
| 87 |
found sensor it8718_in6 (3696) |
| 88 |
found sensor it8718_in7 (4016) |
| 89 |
found sensor it8718_in8 (3360) |
| 90 |
found sensor it8718_temp1 (13000) |
| 91 |
found sensor it8718_temp2 (32000) |
| 92 |
found sensor it8718_temp3 (58000) |
| 93 |
found sensor it8718_fan1 (2288) |
| 94 |
found sensor it8718_fan2 (0) |
| 95 |
found sensor it8718_fan3 (0) |
| 96 |
LM_SENSORS OK - it8718_temp1=13000 it8718_in0=1152|it8718_temp1=13000;20000;30000;; it8718_in0=1152;100;200;; |