nagiosgraph error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
hellohaneef
Posts: 6
Joined: Sun Jan 19, 2014 8:16 am

nagiosgraph error

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagiosgraph error

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
hellohaneef
Posts: 6
Joined: Sun Jan 19, 2014 8:16 am

Re: nagiosgraph error

Post 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.
hellohaneef
Posts: 6
Joined: Sun Jan 19, 2014 8:16 am

Re: nagiosgraph error

Post 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.
hellohaneef
Posts: 6
Joined: Sun Jan 19, 2014 8:16 am

Re: nagiosgraph error

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: nagiosgraph error

Post 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?
Locked