In Need of Nagios / Nagiosgraph help

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

donā€™t knowā€¦ iā€™m using nagiostat. works fine (after some tuning of the RRD files :slight_smile: )

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ā€¦

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ā€¦

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ā€¦

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?

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.

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.

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.

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ā€¦

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ā€¦

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.

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

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

Luca