[collectd] Need help with sensors plugin
bruno at ioda-net.ch
Tue Apr 13 22:02:02 CEST 2010
On 04/13/2010 09:21 PM, Sebastian Harl wrote:
> Hi Bruno,
> On Tue, Apr 13, 2010 at 09:13:18PM +0200, Bruno Friedmann wrote:
>> I've a server which gives me this with sensors
>> Adapter: ACPI interface
>> Vcore Voltage: +1.09 V (min = +0.85 V, max = +1.60 V)
>> +3.3 Voltage: +3.26 V (min = +2.97 V, max = +3.63 V)
>> +5 Voltage: +5.12 V (min = +4.50 V, max = +5.50 V)
>> +12 Voltage: +12.16 V (min = +10.20 V, max = +13.80 V)
>> CPU FAN Speed: 0 RPM (min = 600 RPM)
>> CHASSIS FAN Speed: 0 RPM (min = 600 RPM)
>> POWER FAN Speed: 0 RPM (min = 600 RPM)
>> CPU Temperature: +42.0°C (high = +60.0°C, crit = +95.0°C)
>> MB Temperature: +39.0°C (high = +45.0°C, crit = +95.0°C)
>> (Don't worry about the FAN, they are water-cooled :-)
>> I've try to activate the sensors plugin but it return errors
>> Apr 9 18:39:51 chewbacca collectd: sensors plugin: lm_sensors reports no features. Data will not be collected.
>> Apr 9 18:39:51 chewbacca collectd: read-function of plugin `sensors' failed.
> Which versions of collectd and lm-sensors do you use? The sensors plugin
> is linked against libsensors. Which version is that (`ldd /path/to/
> sensors.so | grep sensors' should be sufficient)? The functionality of
> the sensors plugin is fairly limited in case you're using lm-sensors
> version 3.x and libsensors (soname) version 3 (lm-sensors 2.10), which
> might explain that behavior.
So here begin my trouble :-)
libsensors.so.3 libsensors.so.3.1.5 libsensors.so.4 libsensors.so.4.2.0
a sensors -v return
sensors version 3.1.1 with libsensors version 3.1.1
and finally the ldd
linux-vdso.so.1 => (0x00007fffac1ff000)
libsensors.so.3 => /usr/lib64/libsensors.so.3 (0x00007ff58e633000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007ff58e42f000)
libc.so.6 => /lib64/libc.so.6 (0x00007ff58e0d3000)
libm.so.6 => /lib64/libm.so.6 (0x00007ff58de7e000)
libsysfs.so.2 => /lib64/libsysfs.so.2 (0x00007ff58dc72000)
So everything like normal to me. But as you take about the v2 version.
I think I've no choice than waiting a new plugin or it's upgrade .
So I think I can use one of the table, tail regex and find a way to get values from there ...
More information about the collectd