Sensors
Monitoring of sensors output is based on regexp. To be clear enought here an example:
Sensors output on my server:
adt7463-i2c-0-2d Adapter: SMBus I801 adapter at 1480 V1.5: +3.23 V (min = +0.00 V, max = +3.32 V) VCore: +1.24 V (min = +1.10 V, max = +1.49 V) V3.3: +3.33 V (min = +2.80 V, max = +3.78 V) V5: +4.99 V (min = +4.25 V, max = +5.75 V) V12: +0.11 V (min = +0.00 V, max = +15.94 V) CPU_Fan: 0 RPM (min = 0 RPM) fan2: 10671 RPM (min = 8095 RPM) fan3: 0 RPM (min = 0 RPM) fan4: 0 RPM (min = 0 RPM) CPU Temp: +69.5°C (low = +2.0°C, high = +91.0°C) Board Temp: +32.5°C (low = +2.0°C, high = +83.0°C) Remote Temp: +31.2°C (low = +2.0°C, high = +58.0°C) cpu0_vid: +1.338 V
adt7463-i2c-0-2e Adapter: SMBus I801 adapter at 1480 V1.5: +3.21 V (min = +0.00 V, max = +3.32 V) VCore: +1.28 V (min = +1.10 V, max = +1.49 V) V3.3: +3.32 V (min = +2.80 V, max = +3.78 V) V5: +4.95 V (min = +0.00 V, max = +6.64 V) V12: +0.11 V (min = +0.00 V, max = +15.94 V) CPU_Fan: 10843 RPM (min = 8095 RPM) fan2: 0 RPM (min = 0 RPM) fan3: 9642 RPM (min = 8095 RPM) fan4: 0 RPM (min = 0 RPM) CPU Temp: +57.2°C (low = +2.0°C, high = +91.0°C) Board Temp: +35.2°C (low = +2.0°C, high = +91.0°C) Remote Temp: +35.8°C (low = +2.0°C, high = +58.0°C) cpu0_vid: +1.338 V
Following the sensors kernel module load you could have more or less output than that. To monitor all sensors CPUs temperature on my server I need to add the following lines into sysusage.cfg:
sensors:CPU Temp:75 sensors:Board Temp:45 sensors:Remote Temp:45
This will create 3 graphs based on lines matching 'CPU Temp', an other with lines matching 'Board Temp' and the last with lines matching 'Remote Temp'. As I have 2 CPUs for each graph there will be 2 values. You can not report more than 3 values per graph, this is hard coded into sysusage. So if you have more CPUs you will not see more than 3 values. Here it will sent alarm when temperature exceed the given values (75,45,45).
To monitor fan speed, I just add lines like this in the configuration file:
sensors:fan2:11000:8095 sensors:fan3:11000:8095
This whil create 2 graphs for fan 2 and fan 3. With an alarm sent when speed exceed 11000 RPM or is lower than 8095 RPM.
On my personal computer (/etc/sysconfig/lm_sensors => modprobe coretemp) sensors output is:
coretemp-isa-0000 Adapter: ISA adapter Core 0: +53.0°C (high = +78.0°C, crit = +100.0°C)
coretemp-isa-0001 Adapter: ISA adapter Core 1: +50.0°C (high = +78.0°C, crit = +100.0°C)
To monitor CPU temprature, I just add this line in my sysusage.cfg:
sensors:Core:70
This will generate a graph with 2 graphed data for Core 0 and Core 1.
Copyright (c) 2003-2017 Gilles Darold - All rights reserved. (GPL v3).