Nagiostat graph icon missing


#1

Hello forum,
I have some diffculty getting the nagios graphicon to diplay on the nagios web interface.I am using nagios 2.5 and nagiostat 1.0 on a Red Hat9.0
Here are my config files:
**httpd.conf **
ScriptAlias /nagiostat/ /usr/local/nagios/nagiostat/
<Directory /usr/local/nagios/nagiostat>
AllowOverride AuthConfig
Options +ExecCGI
Order allow,deny
Allow from all

debug.log
Fri Dec 1 14:32:53 2006
**INCOMING PERFDATA:
LASTCHECK=1164979963
HOSTNAME=Core-Server
SERVICEDESCR="Ping"
SERVICESTATE=“OK"
OUTPUT=“PING OK - Packet loss = 0%, RTA = 32.12 ms"
PERFDATA=””
+VALUE: 32.12
+VALUE: 0
=INSERT into ‘Core-Server-ping.rrd’: 32.12,0 DSA-names=rta,pktloss
!RRDCMDLINE: /usr/bin/rrdtool update /usr/local/nagios/nagiostat/archives//Core-Server-ping.rrd --template rta:Pktloss 1164979963:32.12:0
Fri Dec 1 14:32:53 2006
**INCOMING PERFDATA:
LASTCHECK=1164979963
HOSTNAME=Access-Server
SERVICEDESCR="Ping"
SERVICESTATE=“OK"
OUTPUT=“PING OK - Packet loss = 0%, RTA = 102.62 ms"
PERFDATA=””
+VALUE: 102.62
+VALUE: 0
=INSERT into ‘Access-Server-ping.rrd’: 102.62,0 DSA-names=rta,pktloss
!RRDCMDLINE: /usr/bin/rrdtool update /usr/local/nagios/nagiostat/archives//Access-Server-ping.rrd --template rta:Pktloss 1164979963:102.62:0

Fri Dec 1 14:32:54 2006
**INCOMING PERFDATA:
LASTCHECK=1164979964
HOSTNAME=Marina-Sector
SERVICEDESCR="Ping"
SERVICESTATE=“OK"
OUTPUT=“PING OK - Packet loss = 0%, RTA = 4.69 ms"
PERFDATA=””
+VALUE: 4.69
+VALUE: 0
=INSERT into ‘Marina-Sector-ping.rrd’: 4.69,0 DSA-names=rta,pktloss
!RRDCMDLINE: /usr/bin/rrdtool update /usr/local/nagios/nagiostat/archives//Marina-Sector-ping.rrd --template rta:Pktloss 1164979964:4.69:0

[[email protected] nagiostat]# ll archives/
total 620
-rw-r–r-- 1 nagios nagios 118948 Dec 1 15:38 Access-Server-ping.rrd
-rw-r–r-- 1 nagios nagios 118948 Dec 1 15:38 Core-Server-ping.rrd
-rw-r–r-- 1 nagios nagios 118948 Dec 1 15:38 Homeagent-ping.rrd
-rw-r–r-- 1 nagios nagios 118948 Dec 1 15:38 Marina-Sector-ping.rrd
-rw-r–r-- 1 nagios nagios 118948 Dec 1 15:35 SNS-ping.rrd
**
serviceextinfo.cfg**

define serviceextinfo {
host_name Access-Server
service_description Ping
notes_url /nagiostat/nagiostat.cgi?graph_name=Access-Server_Ping
icon_image graph.gif
icon_image_alt Access-Server Ping Graph
}

define serviceextinfo {
host_name Core-Server
service_description Ping
notes_url /nagiostat/nagiostat.cgi?graph_name=Core-Server_Ping
icon_image graph.gif
icon_image_alt Core-Server Ping Graph
}

define serviceextinfo {
host_name Homeagent
service_description Ping
notes_url /nagiostat/nagiostat.cgi?graph_name=Homeagent_Ping
icon_image /usr/local/nagios/share/images/logos/graph.gif
icon_image_alt Homeagent Ping Graph

I have added the “xedtemplate_config_file=/usr/local/nagios/etc/serviceextinfo.cfg” to my nagios.cfg file.

Below are the file permissions in the nagiostat directory
[[email protected] nagiostat]# ll
drwxrwxrwx 2 nagios root 4096 Nov 29 15:27 archives
-rw-rw-rw- 1 nagios root 51279 Dec 1 15:35 debug.log
-rw-r–r-- 1 root root 18381 Aug 31 2003 GPL.txt
-rw-r–r-- 1 root root 964 Aug 25 2003 graph.gif
drwxr-xr-x 2 root root 4096 Nov 23 18:01 html-templates
-rw-r–r-- 1 root root 323 Jul 6 2004 Makefile
-rwxr-xr-x 1 root root 19769 Nov 29 10:45 nagiostat
lrwxrwxrwx 1 root root 9 Nov 23 18:01 nagiostat.cgi -> nagiostat
-rw-r–r-- 1 root root 11618 Nov 30 08:54 nagiostat.conf
-rwxr-xr-x 1 root root 19706 Nov 29 10:41 nagiostat.old
-rw-r–r-- 1 root root 4031 Nov 24 18:25 README

I will appreciate any assistance.
Many thanks


#2

Are you talking about that little histogrom icon that shows next to your service? If so, that’s an html problem and is fixed is some other forum post. I guess we will have to look around for it.


#3

Yes.I can’t get the icon to display


#4

"I have added the “xedtemplate_config_file=/usr/local/nagios/etc/serviceextinfo.cfg” to my nagios.cfg file."
That is a 1.x directive and is not valid in nagios 2.x so remove it.
nagios.sourceforge.net/docs/2_0/ … iceextinfo

You must put the location of your file in nagios.cfg.
cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg

FYI, you have 2 slashes in your output, so check your configs. i.e.
"/usr/bin/rrdtool update /usr/local/nagios/nagiostat/archives//Marina-Sector-ping.rrd"