[smokeping-users] Smokeping error Help please.

Dan Hamilton dhamilton at wecreate.com
Tue Jun 10 17:38:17 CEST 2008


Hi Kissima,

Looks like smokeping can't find your RRDtool perl module.

Try adding something like:

use lib qw(/usr/local/rrdtool-1.2.27/lib/perl)

in /usr/local/bin/smokeping, substituting the correct path to your 
rrdtool installation.

It looks like you've installed rrdtool as an RPM package, so you could 
do something like "rpm -ql rrdtool" to find out where the perl module is 
installed.

Regards,
Dan

kissima camara wrote:
> Hello,
> 
> Installed smokeping on fedora9
> Those are steps i  took:
> 
> |yum install rrdtool|
> 
> *perl-CGI-SpeedyCGI*
> 
> |yum install perl-CGI-SpeedyCGI|
> 
> *fping*
> 
> |yum install fping|
> 
> *Or do them all together:*
> 
> |yum install rrdtool perl-CGI-SpeedyCGI fping|
> 
> *Smokeping*
> 
> |wget http://people.ee.ethz.ch/~oetiker/webtools/smokeping/pub/smokeping-2.0.9.tar.gz|
> 
> 
> |tar xvzf smokeping-2.0.9.tar.gz|
> 
> |mv smokeping-2.0.9 /usr/local/smokeping|
> 
> |chown -R root:root /usr/local/smokeping|
> 
> 
> |cd /usr/local/smokeping/bin|
> 
> |for foo in *.dist; do cp $foo `basename $foo .dist`; done|
> 
> |cd  /usr/local/smokeping/etc/|
> 
> 
> |for foo in *.dist; do cp $foo `basename $foo .dist`; done|
> 
> |cd /usr/local/smokeping/htdocs|
> 
> |for foo in *.dist; do cp $foo `basename $foo .dist`; done
> 
> 
> 
> and i configured like this:
> _____________________________________________________________
> #!/usr/bin/perl5.10.0 -w
> # -*-perl-*-
> 
> use lib qw(/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi);
> 
> 
> use lib qw(/usr/local/smokeping/lib);
> 
> use Smokeping 2.003006;
> 
> Smokeping::main("/usr/local/smokeping/etc/config.");
> 
> 
> _____________________________________________________________ 
> #!/usr/bin/speedy -w
> 
> # -*-perl-*-
> 
> use lib qw(/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi);
> use lib qw(/usr/local/smokeping/lib);
> use CGI::Carp qw(fatalsToBrowser);
> 
> use Smokeping 2.003006;
> 
> Smokeping::cgi("/usr/local/smokeping/etc/config.");
> 
> _____________________________________________________________
> 
> I keep getting this error:
> [root at localhost bin]# ./smokeping
> Can't locate RRDs.pm in @INC (@INC contains: /usr/local/smokeping/lib /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl .) at /usr/local/smokeping/lib/Smokeping.pm line 13.
> 
> BEGIN failed--compilation aborted at /usr/local/smokeping/lib/Smokeping.pm line 13.
> Compilation failed in require at ./smokeping line 8.
> BEGIN failed--compilation aborted at ./smokeping line 8.
> 
> Can someone help?
> 
> -- 
> Kissima M. Camara
> 



More information about the smokeping-users mailing list