Nagiosgraph isn't graphing


#1

Hi,

I’m having trouble getting graphs to work with nagiosgraph. When I click the graph icon, the Nagios Graph page opens but there are no graphs - just the titles etc. Also, the /nagiosgraph/rrd directory is empty. I’ve checked the configuration and access rights and everything seems fine (to me at least). Can anyone help?

I’m running nagios 1.2 and rrdtool 1.0.49.

I ran a make clean, follwed by ./configure --with-default-perfdata, then make all, then make install for nagios.

I added the following lines to nagios.cfg:
process_performance_data=1
service_perfdata_command=process-service-perfdata

My misccommands.cfg has the following:

define command {
command_name process-service-perfdata
command_line /usr/local/nagios/nagiosgraph/insert.pl “$LASTCHECK$||$HOSTNAME$||$SERVICEDESC$||$OUTPUT$||$PERFDATA$”
}

My serviceextinfo.cfg has the following:

define serviceextinfo {
host_name TPCHNTAP1
service_description PING
notes_url /nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$
icon_image graph.png
icon_image_alt View graphs
}

My nagiosgraph.log file looks like this…

Wed Dec 8 11:59:31 2004 INSERT debug: Config logfile:/usr/local/nagios/var/nagiosgraph.log
Wed Dec 8 11:59:31 2004 INSERT debug: Config rrddir:/usr/local/nagios/nagiosgraph/rrd
Wed Dec 8 11:59:31 2004 INSERT debug: Config mapfile:/usr/local/nagios/nagiosgraph/map
Wed Dec 8 11:59:31 2004 INSERT debug: Config rrdtool:/usr/local/rrdtool-1.0.49/bin
Wed Dec 8 11:59:31 2004 INSERT debug: perfdata: 1102471159||TPCHNTAP1||PING||PING OK - Packet loss = 0%, RTA = 1.81 ms||
Wed Dec 8 11:59:31 2004 INSERT info: Input lastcheck:1102471159
Wed Dec 8 11:59:31 2004 INSERT info: Input hostname:TPCHNTAP1
Wed Dec 8 11:59:31 2004 INSERT info: Input perfdata:
Wed Dec 8 11:59:31 2004 INSERT info: Input servicedescr:PING
Wed Dec 8 11:59:31 2004 INSERT info: Input output:PING OK - Packet loss = 0%, RTA = 1.81 ms
Wed Dec 8 11:59:31 2004 INSERT debug: Checking /usr/local/nagios/nagiosgraph/rrd/TPCHNTAP1_PING_ping.rrd
Wed Dec 8 11:59:31 2004 INSERT info: System /usr/local/rrdtool-1.0.49/bin create /usr/local/nagios/nagiosgraph/rrd/TPCHNTAP1_PING_ping.rrd --start 1102471159 DS:losspct:GAUGE:600:U:U DS:rta:GAUGE:600:U:U RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797
Wed Dec 8 11:59:31 2004 INSERT info: System /usr/local/rrdtool-1.0.49/bin update /usr/local/nagios/nagiosgraph/rrd/TPCHNTAP1_PING_ping.rrd 1102471158:0:0.00181
Wed Dec 8 11:59:31 2004 INSERT debug: Config logfile:/usr/local/nagios/var/nagiosgraph.log
Wed Dec 8 11:59:31 2004 INSERT debug: Config rrddir:/usr/local/nagios/nagiosgraph/rrd
Wed Dec 8 11:59:31 2004 INSERT debug: Config mapfile:/usr/local/nagios/nagiosgraph/map
Wed Dec 8 11:59:31 2004 INSERT debug: Config rrdtool:/usr/local/rrdtool-1.0.49/bin

Is the blank ‘Input perfdata’ entry the problem?
I checked the web interface and Performance data is being processed.

Any help would be much appreciated…

Cheers AC


#2

Hi coxam,

Have you checked the path in insert.pl and show.cgi (in nagiosgraph dir)

example
my $configfile = ‘/usr/local/nagios/nagiosgraph/nagiosgraph.conf’;

And the paths in nagiosgraph.conf. If these are correct I think you have to edit the map file to work correct.

Hope this will help you.
Greetzz :slight_smile:


#3

Hi,

Turned out there were a few minor issues that have now been fixed. Details can be found here:

sourceforge.net/forum/forum.php? … _id=394748