check_lm_sensors is a Nagios plugin to monitor the values of on board sensors and hard
disk temperatures on Linux systems

usage:

  -h, --help                help

  -c, --check               specifies a sensor along with warn and crit values
                            -c fan1=1000,2000        checks if fan1 is above 1000 or 2000
                            -c vcore=1,2,12          checks if vcore is between 11-13 or 10-14 (12+-value)
                            sensors with a space in the name can be specified
                            - by escaping the space --check sda\ Temp=50,60
                            - by quoting the name --check 'sda Temp'=50,60
                            - by substituting the space by an underscore --check sda_Temp=50,60

  -d, --drive               check drive temperature

  -l, --list                list sensors

  --nosensors               do not check lm_sensors

  --nodrives                do not check drive temperature

  --hddtemp_bin             specifies the location of the hddtemp binary

  --sensors_bin             specified the location of the sensors binary

  --rename                  renames a sensor in the performance output (useful if you want to have common
                            names for similar sensors across machines)
                            example:
                            --rename cputemp=temp1

  --sanitize                sanitize sensor names (e.g., removing spaces)

  -v, --verbose             verbose output

  --version                 prints $prog_name's version and exits\n";
    
Example:

$ ./check_lm_sensors -v -c 'sda Temp'=30,5,10 -c '+2.5V'=0.2,0.3,2.5
found sensor +3.3V (3.39)
found sensor +2.5V (2.39)
found sensor VCore (1.19)
found sensor +5V (4.61)
found sensor +12V (11.96)
found sensor +3.3V (3.23)
found sensor Case Fan (0)
found sensor CPU Fan (0)
found sensor CPU Temp (62.1)
found sensor Int Temp (66.0)
found sensor vid (1.250)
found temperature for drive sda (51)
LM_SENSORS CRITICAL  sda Temp=51|'Case Fan'=0;;;; 'vid'=1.250;;;; '+5V'=4.61;;;; '+2.5V'=2.39;;;; 'Int Temp'=66.0;;;; '+12V'=11.96;;;; '+3.3V'=3.23;;;; 'VCore'=1.19;;;; 'CPU Temp'=62.1;;;; 'CPU Fan'=0;;;; 'sda Temp'=51;;;;
