Page 1 of 1

nagiosgraph error

Posted: Thu Feb 20, 2014 6:57 am
by hellohaneef
Hi

I am getting following error after i tried to install nagioisgraph

Can't locate ngshared.pm in @INC (@INC contains: /usr/local/nagios/etc/nagiosgraph/ /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./insert.pl line 35.
BEGIN failed--compilation aborted at ./insert.pl line 35.

then after run the command yum install rrdtool rrdtool-perl, showing its already installed
updates/primary_db | 2.0 MB 00:05
Setting up Install Process
Package rrdtool-1.3.8-6.el6.x86_64 already installed and latest version
Package rrdtool-perl-1.3.8-6.el6.x86_64 already installed and latest version
Nothing to do

Re: nagiosgraph error

Posted: Thu Feb 20, 2014 10:52 am
by abrist
What guide did you follow to install nagiosgraph?
Lets see if the module exists on your server:

Code: Select all

yum install mlocate
updatedb
locate ngshared.pm

Re: nagiosgraph error

Posted: Sun Feb 23, 2014 12:29 am
by hellohaneef
Thanks for your reply,

i followed link http://sachinharma.blogspot.com/2013/08 ... -on_7.html

when i ran ./insert.pl

i got the following error

Can't locate ngshared.pm in @INC (@INC contains: /usr/local/nagios/etc/nagiosgraph/ /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./insert.pl line 35.
BEGIN failed--compilation aborted at ./insert.pl line 35.

Re: nagiosgraph error

Posted: Sun Feb 23, 2014 3:11 am
by hellohaneef
i did some modification, currently i am getting below error

Can't locate object method "croak" via package "cannot open /etc/nagiosgraph/map: No such file or directory" (perhaps you forgot to load "cannot open /etc/nagiosgraph/map: No such file or directory"?) at ./insert.pl line 52.

Re: nagiosgraph error

Posted: Sun Feb 23, 2014 3:56 am
by hellohaneef
Hi

After finding files, some how succeed compilation, currently i am facing below error

for testing placed URL

http://localhost/nagios/cgi-bin/show.cgi

nagiosgraph

ngshared.pm: ok
version: 1.4.4
nagiosgraph.conf: ok
RRD directory: ok
log file: fail file does not exist
CGI log file: fail file does not exist
map file: ok

Re: nagiosgraph error

Posted: Mon Feb 24, 2014 4:19 pm
by slansing
After finding files, some how succeed compilation, currently i am facing below error
Can you let us know what you did to resolve this portion, it may be key for fixing the next issue...

This is being output by show.cgi?