collectd's sensor plugin not loading

Bug #378200 reported by Barry Kolts
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
collectd (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: collectd

lsb_release -rd
Description: Ubuntu 8.04.2
Release: 8.04

uname -a
Linux wu 2.6.24-23-server #1 SMP Wed Apr 1 22:14:30 UTC 2009 x86_64 GNU/Linux

apt-cache policy collectd
collectd:
  Installed: 4.3.0-1
  Candidate: 4.3.0-1
  Version table:
 *** 4.3.0-1 0
        500 http://us.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status

Problem:
collectd -t -C /etc/collectd/collectd.conf
lt_dlopen failed: libsensors.so.3: cannot open shared object file: No such file or directory
Unable to load plugin sensors.

locate sensors.so
/usr/lib/libsensors.so.4
/usr/lib/libsensors.so.4.0.0
/usr/lib/collectd/sensors.so

Collectd is looking for libsensors.so.3 but libsensors.so.4 is installed on this machine with lm-sensors so the sensors plugin does not work. It does not create a sensors directory in the RRD directory so it doesn't collect any statistics

Please contact me if you need some more information.

Thanks,
Barry

Updated information:

Upon further investigation I discovered on my 32 bit Hardy I have both libsensors.so.3 and libsensors.so.4

uname -a
Linux test-server 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i586 GNU/Linux

lsb_release -rb
Description: Ubuntu 8.04.2
Release: 8.04

locate sensors.so
/usr/lib/libsensors.so.3
/usr/lib/libsensors.so.3.1.4
/usr/lib/libsensors.so.4
/usr/lib/libsensors.so.4.0.0
/usr/lib/collectd/sensors.so

Apparently my 32 bit, which started out at version 8.04 and upgraded to 8.04.2, updated to libsensors.so.4 and my 64 bit which started at version 8.04.2 never had libsensors.so.3.

So is it possibly to have the package updated to a newer version of collectd? If possibly could collectd be upgraded to a version that includes the Notify Email plugin? According to collectd website Notfiy Email was introduced in version 4.5. I realize I could compile the newest version myself but I prefer to use deb packges for Ubuntu to keep things 'tidy'. Unfortunately I am still new enough at this that I don't know how to make my own deb packages yet.

Thanks,
Barry

Barry Kolts (bhkolts)
description: updated
Revision history for this message
Shimon Rura (shimon) wrote :

Barry,

I ran into the same problem but, with the help of your report, found a workaround.

1. Install the libsensors3 package. This allows "collectd -t -C /etc/collectd/collectd.conf" to complete successfully (i.e. the sensors plugin is loaded).

2. symlink /etc/sensors.conf to /etc/sensors3.conf -- the sensors plugin seems to look for /etc/sensors.conf, and won't run if it can't find that file.

After that, it worked for me (also on 8.04).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.