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.
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ā¦)
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?
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.