[smokeping-users] opendir /Smokeping/probes: No such file or directory

Andrew Hall andyjohnhall at gmail.com
Mon Jan 29 20:06:17 CET 2007


Hi again.

OK - I just removed the RRDtool RPM and installed from source instead,
and no longer get the error about RRDs.pm. Smokeping now runs without
any complaints.

However, when I hit the smokeping.cgi through my webserver I get this error...

opendir /Smokeping/probes: No such file or directory at
/usr/local/smokeping/lib/Smokeping.pm line 1276

It seems that the subroutine find_libdir is searching the perl path,
and when it finds /Smokeping/probes/FPing.pm it returns the path up to
that point and assigns it as a variable.

This variable is then pre-pended to /Smokeping/probes and the
directory is used in opendir.

I can confirm that in my bin/smokeping and smokeping.cgi files I have
this entry...

use lib qw(/usr/local/smokeping/lib);

...and indeed the directory /usr/local/smokeping/lib/Smokeping/probes
does exist.

However, I do not see /usr/local/smokeping/lib in my perl path...

[user at machine bin]# perl -e "print qq(@INC)" | grep smokeping
[user at machine bin]#

Is there a way for me to permanently add /usr/local/smokeping/lib to @INC ?

I can't think what the actual problem is, but I imagine this may solve it.

Any suggestions greatly appreciated! Thanks,

Andrew Hall.



More information about the smokeping-users mailing list