In Need of Nagios / Nagiosgraph help


#1

Any help is appreciated
Nagios is up and running, but I tried to add nagiosgraph for graphing, not working

RRDtool installed ??? not sure if configured correctly :cry:

short version
/etc/nagios/main configs

/etc/nagios/nagiosgraph/rrd
all nagiosgraph filesare here and edited

/var/log/nagios/nagiosgraph.log
log file 0bytes

added info for serviceextinfo.cfg

added scriptalias

when I go to icon image from nagios i get this url
myservername/nagiosgraph/show.cg … om=350x100

and this result

Log file not writable

the log file is writeable… I tested that, by creating a user and writing to the logfile


#2

don’t know… i’m using nagiostat. works fine (after some tuning of the RRD files :slight_smile: )


#3

I get the same thing. For some reason the array that holds the configuration data doesn’t seem to work properly. If you run insert.pl from the command line it’ll bug out with the same error from the following line.
die “Log file $Config{logfile} not writable” unless -w $Config{logfile};

If the array was working then the error should read (in your case)
log file /var/log/nagios/nagiosgraph.log not writeable.

I’ll keep having a play and see if I can get it to work…


#4

I get the same thing. For some reason the array that holds the configuration data doesn’t seem to work properly. If you run insert.pl from the command line it’ll bug out with the same error from the following line.
die “Log file $Config{logfile} not writable” unless -w $Config{logfile};

If the array was working then the error should read (in your case)
log file /var/log/nagios/nagiosgraph.log not writeable.

I’ll keep having a play and see if I can get it to work…


#5

You need to edit the my $configfile entry in insert.pl and show.cgi with the path to your nagiosgraph.conf. My path is as below as below
my $configfile = ‘/usr/local/nagios/nagiosgraph/nagiosgraph.conf’;

It’ll probably moan about some other permissioning stuff but your a bit further on…


#6

Ok with your help I have made it a bit further and have the nagiosgraph.log in degug collecting data. I see it writing the data, but my issue from here is when I create the link in serviceext.info for PING the page displays except no GRAPH.

Url that is displayed :

servername/nagiosgraph/show.cgi? … NG,stratum

nagiosgraph page
Performance data for Host: XXXXXXX · Service: PING
Daily
X PING
jitter, offset
X PING
stratum

same for weekly monthly and yearly

any ideas?


#7

OK - I got this running but it does take a little bit of running around to do. The whole thing is dependant on some rather sneaky editing of the map file.
First thing to check is whether you have a load of rrd’s being created in your nagiosgraph/rrd directory?
If you do have rrds then you should be able to get the cgi to view them using
**your](http://your) nagios box/nagiosgraph/show.cgi?host=one of your monitored hosts1&service=Host+up

You can split the rta and pct loss grpahs using a structure like this
**your](http://your) nagios box/nagiosgraph/show.cgi?host=one of your monitored hosts&service=Host+up&db=ping,rta&db=ping,losspct

Replacing the ** **'ed parts of the above as required.

I’ve found the nagiosgraph fourm on sourceforge invaluable for sorting nagiosgraph out (seems to be down at the monet so I can get you a direct link)- take a look there as well.


#8

OK - I got this running but it does take a little bit of running around to do. The whole thing is dependant on some rather sneaky editing of the map file.
First thing to check is whether you have a load of rrd’s being created in your nagiosgraph/rrd directory?
If you do have rrds then you should be able to get the cgi to view them using
**your](http://your) nagios box/nagiosgraph/show.cgi?host=one of your monitored hosts1&service=Host+up

You can split the rta and pct loss grpahs using a structure like this
**your](http://your) nagios box/nagiosgraph/show.cgi?host=one of your monitored hosts&service=Host+up&db=ping,rta&db=ping,losspct

Replacing the ** **'ed parts of the above as required.

I’ve found the nagiosgraph fourm on sourceforge invaluable for sorting nagiosgraph out (seems to be down at the monet so I can get you a direct link)- take a look there as well.


#9

OK - I got this running but it does take a little bit of running around to do. The whole thing is dependant on some rather sneaky editing of the map file.
First thing to check is whether you have a load of rrd’s being created in your nagiosgraph/rrd directory?
If you do have rrds then you should be able to get the cgi to view them using
**your](http://your) nagios box/nagiosgraph/show.cgi?host=one of your monitored hosts1&service=Host+up

You can split the rta and pct loss grpahs using a structure like this
**your](http://your) nagios box/nagiosgraph/show.cgi?host=one of your monitored hosts&service=Host+up&db=ping,rta&db=ping,losspct

Replacing the ** **'ed parts of the above as required.

I’ve found the nagiosgraph fourm on sourceforge invaluable for sorting nagiosgraph out (seems to be down at the monet so I can get you a direct link)- take a look there as well.


#10

Sorry, should have said if you do
**your](http://your) nagios box/nagiosgraph/show.cgi?host=one of your monitored hosts

Then you get all of the items being monitored on that box. It’s pretty useless as you run into problems with scale on the x axis (no good trying to graph a 0.002 round trip time with 7645645 bytes free on a disk…)

Let me know how you get on…


#11

I too am having some troubles getting NagiosGraph to work. If I load insert.pl alone from a browser, I just get the scripts code displayed. Its chmod to 755. Also, is there a way to determine if RRDTool is installed correctly?

Where is that NagiosGraph for dummies book…


#12

The man pages for RRD should be installed. They are quite hard reading, but well worth it. You can test rrdtool by inserting values, creating the .rrd databases, etc, by using command line. I’m not familiar with nagiosgraph, so I’m going to stop there.


#13

people.ee.ethz.ch/~oetiker/webtools/rrdtool/

Here you find the man pages in HTML (easier to read) and some tutorials :slight_smile:

Luca