[collectd] Sensors Plugin / syntax

HL webh at lange-online.net
Wed Apr 22 15:27:54 CEST 2020


Hello!

Collecting all sensors works fine and I get the following rrds:

sensors-acpitz-acpi-0:
temperature-temp1.rrd

sensors-coretemp-isa-0000:
'temperature-Core 0.rrd'  'temperature-Core 1.rrd' 'temperature-Core 
2.rrd'  'temperature-Core 3.rrd' 'temperature-Package id 0.rrd'

sensors-nct6796-isa-0290:
fanspeed-fan1.rrd  fanspeed-fan5.rrd temperature-AUXTIN2.rrd 
temperature-PCH_CHIP_TEMP.rrd  voltage-+3.3V.rrd voltage-in11.rrd  
voltage-in1.rrd  voltage-in9.rrd
fanspeed-fan2.rrd  fanspeed-fan7.rrd temperature-AUXTIN3.rrd 
temperature-PCH_CPU_TEMP.rrd   voltage-3VSB.rrd voltage-in12.rrd  
voltage-in4.rrd  voltage-Vbat.rrd
fanspeed-fan3.rrd  temperature-AUXTIN0.rrd temperature-CPUTIN.rrd 
temperature-PCH_MCH_TEMP.rrd   voltage-AVCC.rrd voltage-in13.rrd  
voltage-in5.rrd  voltage-Vcore.rrd
fanspeed-fan4.rrd  temperature-AUXTIN1.rrd 
temperature-PCH_CHIP_CPU_MAX_TEMP.rrd temperature-SYSTIN.rrd         
voltage-in10.rrd voltage-in14.rrd  voltage-in6.rrd


I want to log only some of my sensors with collectd. Therefore i want to 
pick the wanted onces for example like this:

<Plugin sensors>
        Sensor "sensors-coretemp-isa-0000/temperature-Core 0"
        Sensor "sensors-coretemp-isa-0000/temperature-Core 1"
        IgnoreSelected false
        UseLabels true
</Plugin>


I tried several combinations for the Sensor argument, but no one works 
out. What is the naming here? Is it correct to use one line for each sensor?

Thanx for ur help!

BR, Holger



The output of sensors look like this:

root at server-hh2:/etc/collectd# sensors -u
nct6796-isa-0290
Adapter: ISA adapter
Vcore:
   in0_input: 0.712
   in0_min: 0.000
   in0_max: 1.744
   in0_alarm: 0.000
   in0_beep: 0.000
in1:
   in1_input: 1.856
   in1_min: 0.000
   in1_max: 0.000
   in1_alarm: 1.000
   in1_beep: 0.000
AVCC:
   in2_input: 3.456
   in2_min: 2.976
   in2_max: 3.632
   in2_alarm: 0.000
   in2_beep: 0.000
+3.3V:
   in3_input: 3.440
   in3_min: 2.976
   in3_max: 3.632
   in3_alarm: 0.000
   in3_beep: 0.000
in4:
   in4_input: 1.680
   in4_min: 0.000
   in4_max: 0.000
   in4_alarm: 1.000
   in4_beep: 0.000
in5:
   in5_input: 0.232
   in5_min: 0.000
   in5_max: 0.000
   in5_alarm: 1.000
   in5_beep: 0.000
in6:
   in6_input: 0.192
   in6_min: 0.000
   in6_max: 0.000
   in6_alarm: 1.000
   in6_beep: 0.000
3VSB:
   in7_input: 3.456
   in7_min: 2.976
   in7_max: 3.632
   in7_alarm: 0.000
   in7_beep: 0.000
Vbat:
   in8_input: 3.184
   in8_min: 2.704
   in8_max: 3.632
   in8_alarm: 0.000
   in8_beep: 0.000
in9:
   in9_input: 0.000
   in9_min: 0.000
   in9_max: 0.000
   in9_alarm: 0.000
   in9_beep: 0.000
in10:
   in10_input: 0.184
   in10_min: 0.000
   in10_max: 0.000
   in10_alarm: 1.000
   in10_beep: 0.000
in11:
   in11_input: 0.192
   in11_min: 0.000
   in11_max: 0.000
   in11_alarm: 1.000
   in11_beep: 0.000
in12:
   in12_input: 0.208
   in12_min: 0.000
   in12_max: 0.000
   in12_alarm: 1.000
   in12_beep: 0.000
in13:
   in13_input: 0.184
   in13_min: 0.000
   in13_max: 0.000
   in13_alarm: 1.000
   in13_beep: 0.000
in14:
   in14_input: 1.728
   in14_min: 0.000
   in14_max: 0.000
   in14_alarm: 1.000
   in14_beep: 0.000
fan1:
   fan1_input: 1102.000
   fan1_min: 0.000
   fan1_alarm: 0.000
   fan1_beep: 0.000
   fan1_pulses: 2.000
fan2:
   fan2_input: 1689.000
   fan2_min: 0.000
   fan2_alarm: 0.000
   fan2_beep: 0.000
   fan2_pulses: 2.000
fan3:
   fan3_input: 0.000
   fan3_min: 0.000
   fan3_alarm: 0.000
   fan3_beep: 0.000
   fan3_pulses: 2.000
fan4:
   fan4_input: 0.000
   fan4_min: 0.000
   fan4_alarm: 0.000
   fan4_beep: 0.000
   fan4_pulses: 2.000
fan5:
   fan5_input: 0.000
   fan5_min: 0.000
   fan5_alarm: 0.000
   fan5_beep: 0.000
   fan5_pulses: 2.000
fan7:
   fan7_input: 0.000
   fan7_min: 0.000
   fan7_pulses: 2.000
SYSTIN:
   temp1_input: 36.000
   temp1_max: 80.000
   temp1_max_hyst: 75.000
   temp1_alarm: 0.000
   temp1_type: 4.000
   temp1_offset: 0.000
   temp1_beep: 0.000
CPUTIN:
   temp2_input: 33.000
   temp2_max: 80.000
   temp2_max_hyst: 75.000
   temp2_alarm: 0.000
   temp2_type: 4.000
   temp2_offset: 0.000
   temp2_beep: 0.000
AUXTIN0:
   temp3_input: 94.500
   temp3_type: 4.000
   temp3_offset: 0.000
AUXTIN1:
   temp4_input: 104.000
   temp4_type: 4.000
   temp4_offset: 0.000
AUXTIN2:
   temp5_input: 104.000
   temp5_type: 4.000
   temp5_offset: 0.000
AUXTIN3:
   temp6_input: -16.000
   temp6_type: 4.000
   temp6_offset: 0.000
PCH_CHIP_CPU_MAX_TEMP:
   temp7_input: 0.000
PCH_CHIP_TEMP:
   temp8_input: 0.000
PCH_CPU_TEMP:
   temp9_input: 0.000
PCH_MCH_TEMP:
   temp10_input: 0.000
intrusion0:
   intrusion0_alarm: 1.000
   intrusion0_beep: 0.000
intrusion1:
   intrusion1_alarm: 1.000
   intrusion1_beep: 0.000
beep_enable:
   beep_enable: 0.000

acpitz-acpi-0
Adapter: ACPI interface
temp1:
   temp1_input: 38.000
   temp1_crit: 95.000

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:
   temp1_input: 40.000
   temp1_max: 105.000
   temp1_crit: 105.000
   temp1_crit_alarm: 0.000
Core 0:
   temp2_input: 40.000
   temp2_max: 105.000
   temp2_crit: 105.000
   temp2_crit_alarm: 0.000
Core 1:
   temp3_input: 40.000
   temp3_max: 105.000
   temp3_crit: 105.000
   temp3_crit_alarm: 0.000
Core 2:
   temp4_input: 40.000
   temp4_max: 105.000
   temp4_crit: 105.000
   temp4_crit_alarm: 0.000
Core 3:
   temp5_input: 40.000
   temp5_max: 105.000
   temp5_crit: 105.000
   temp5_crit_alarm: 0.000




More information about the collectd mailing list