[collectd] Collection3 can't locate unixsock.pm

Lao Wai laowai at live.com
Wed Mar 24 00:34:09 CET 2010


Hi, I am trying to get collection3 to work on Ubuntu (tried both 8.04 and 10.4). Here is the error message I get when I go to http://localhost/collection3/bin/index.cgi:

Software error:

Can't locate Collectd/Unixsock.pm in @INC (@INC contains: ../lib /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at ../lib/Collectd/Graph/Common.pm line 8.
BEGIN failed--compilation aborted at ../lib/Collectd/Graph/Common.pm line 8.
Compilation failed in require at ../lib/Collectd/Graph/Type.pm line 34.
BEGIN failed--compilation aborted at ../lib/Collectd/Graph/Type.pm line 34.
Compilation failed in require at ../lib/Collectd/Graph/TypeLoader.pm line 31.
BEGIN failed--compilation aborted at ../lib/Collectd/Graph/TypeLoader.pm line 31.
Compilation failed in require at /var/www/collection3/bin/index.cgi line 32.
BEGIN failed--compilation aborted at /var/www/collection3/bin/index.cgi line 32.

For help, please send mail to the webmaster (webmaster at localhost), giving this error message and the time and date of the error.

Now the thing is that /usr/share/perl5/Collectd/Unixsock.pm exists, and the error message indicates that /usr/share/perl5 is part of the search path, so I can't understand why it can't locate the file:

root at domU-12-31-39-0E-C4-36:~# ls -l /usr/share/perl5/Collectd
total 16
-rw-r--r-- 1 root root 13066 2009-12-18 08:51 Unixsock.pm
root at domU-12-31-39-0E-C4-36:~#

Here is how I have installed everything:

apt-get install apache2
apt-get install collectd
apt-get install librrds-perl libconfig-general-perl libhtml-parser-perl  libregexp-common-perl
/etc/init.d/apache2 reload

Contents of /etc/apache2/conf.d/collection3.conf:

<Directory 
"/usr/share/doc/collectd-core/examples/collection3/bin">
   
Options ExecCGI
   AllowOverride None
   Order allow,deny
   
Allow from all
</Directory>


Does anyone have any suggestions?

Thanks!

 		 	   		  
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/210850553/direct/01/


More information about the collectd mailing list