Nagiosgraph is not working
Novin Jaiswal
novin.jaiswal at ishisystems.com
Tue Nov 11 21:04:42 CET 2008
Hi James,
Thanks for your help.
I have pasted into ngshared.pm
use lib '/usr/local/lib/perl/5.8.5/i386-linux-thread-multi/';
Now there is no error when I execute that perl script from cmd prompt.
But when I click from Nagios webinterface for nagiosgraph link of that
service. It open a new browser with following error
Nagiosgraph has detected an error in the configuration file:
/usr/local/lib/perl/5.8.5/i386-linux-thread-multi//nagiosgraph.conf.
/usr/local/lib/perl/5.8.5/i386-linux-thread-multi//nagiosgraph.conf not
found
Looks like it try to find nagiosgraph.conf inside the use lib
One more thing to share with you When I go through documentation the
required packages needed for nagiosgraph I don't have perl-CGI, and
perl-rrdtool.
How to know whether these 2 packages are installed or not? I have
installed rrdtool as per the instruction of its site.
Thanks & Regards
Novin Jaiswal
Ishi Systems Inc.
732-318-8156(cell)
-----Original Message-----
From: James Pratt [mailto:jpratt at norwich.edu]
Sent: Tuesday, November 11, 2008 2:33 PM
To: Novin Jaiswal; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Nagiosgraph is not working
From: Novin Jaiswal [mailto:novin.jaiswal at ishisystems.com]
Sent: Tuesday, November 11, 2008 2:22 PM
To: Paulus, Jake; nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Nagiosgraph is not working
/usr/local/nagiosgraph/insert.pl
"1226534492||stage8.ishisystems.com||AllCOMPONENT PEGCOUNT||138||"
Can't locate RRDs.pm in @INC (@INC contains: /usr/local/nagiosgraph
/usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4
/usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4
/usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl .) at /usr/local/nagiosgraph/ngshared.pm line
65.
BEGIN failed--compilation aborted at /usr/local/nagiosgraph/ngshared.pm
line 65.
Compilation failed in require at /usr/local/nagiosgraph/insert.pl line
119.
BEGIN failed--compilation aborted at /usr/local/nagiosgraph/insert.pl
line 119.
---
Not sure of your linux distro, but sounds like you need the package:
librrds-perl
(If you used source, you can modify "@INC" like this within within your
perl script, adjust to version/path you have)..
use lib '/usr/local/rrdtool-1.0.33/lib/perl/';
regards
jamie
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list