<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6487.1">
<TITLE>Re: Graph is not appearing in Nagios monitoring ...</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Folks,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">First my apologies for the long email but I wanted to make sure that I included all necessary info to make the problem easier to solve.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">I have been reviewing some of the threads in this mailing list concerning graphs and have yet made it to work. Here is what I have:</FONT></P>
<P><FONT SIZE=2 FACE="Arial"><B> checkcommands.cfg</B></FONT>
<BR><FONT SIZE=2 FACE="Arial"># apan.sh command definition</FONT>
<BR><FONT SIZE=2 FACE="Arial">define command{</FONT>
<BR><FONT SIZE=2 FACE="Arial">command_name apan</FONT>
<BR><FONT SIZE=2 FACE="Arial">command_line /usr/local/nagios/apan/apan.sh $ARG1$ $HOSTNAME$ "$SERVICEDESC$"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> $TIMET$ $ARG2$ $ARG3$</FONT>
<BR><FONT SIZE=2 FACE="Arial">}</FONT>
</P>
<P><B><FONT SIZE=2 FACE="Arial">services.cfg</FONT></B>
<BR><FONT SIZE=2 FACE="Arial"># Service definition of Graph-Ping</FONT>
<BR><FONT SIZE=2 FACE="Arial">define service{</FONT>
<BR><FONT SIZE=2 FACE="Arial">use generic-service ; Name of service template to use</FONT>
<BR><FONT SIZE=2 FACE="Arial">host_name HCISD1</FONT>
<BR><FONT SIZE=2 FACE="Arial">service_description Graph-Ping</FONT>
<BR><FONT SIZE=2 FACE="Arial">is_volatile 0</FONT>
<BR><FONT SIZE=2 FACE="Arial">check_period 24x7</FONT>
<BR><FONT SIZE=2 FACE="Arial">max_check_attempts 10</FONT>
<BR><FONT SIZE=2 FACE="Arial">normal_check_interval 1</FONT>
<BR><FONT SIZE=2 FACE="Arial">retry_check_interval 1</FONT>
<BR><FONT SIZE=2 FACE="Arial">contact_groups unix-admins</FONT>
<BR><FONT SIZE=2 FACE="Arial">notification_interval 120</FONT>
<BR><FONT SIZE=2 FACE="Arial">notification_period 24x7</FONT>
<BR><FONT SIZE=2 FACE="Arial">notification_options c,r</FONT>
<BR><FONT SIZE=2 FACE="Arial">name Graph-Ping</FONT>
<BR><FONT SIZE=2 FACE="Arial">check_command apan!ping!100.0,20%!500.0,60%</FONT>
<BR><FONT SIZE=2 FACE="Arial">}</FONT>
</P>
<P><B><FONT SIZE=2 FACE="Arial">apan.cfg</FONT></B>
<BR><FONT SIZE=2 FACE="Arial">HCISD1;Graph-Ping;/usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd;ping;ping:LINE2;Graph-Ping round-trip time;Seconds</FONT>
</P>
<P><B><FONT SIZE=2 FACE="Arial">Created a RRD-file</FONT></B>
<BR><FONT SIZE=2 FACE="Arial">rrdtool create /usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd -s 60 DS:ping:GAUGE:300:0:U RRA:AVERAGE:0.5:1:50400 RRA:AVERAGE:0.5:60:43800</FONT></P>
<P><FONT SIZE=2 FACE="Arial"># ll /usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd</FONT>
<BR><FONT SIZE=2 FACE="Arial">-rwxrwxrwx 1 nagios nagios 754348 Nov 10 19:55 /usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">and the rrd file appears to be updating, from looking at the apan.debug file:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Mon Nov 10 19:52:22 CST 2003 Args: ping HCISD1 Graph-Ping 1068515542 100.0,20% 500.0,60%</FONT>
<BR><FONT SIZE=2 FACE="Arial">Inserting 'ping' , '1068515542:0' into /usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd</FONT>
<BR><FONT SIZE=2 FACE="Arial">Mon Nov 10 19:53:22 CST 2003 Args: ping HCISD1 Graph-Ping 1068515602 100.0,20% 500.0,60%</FONT>
<BR><FONT SIZE=2 FACE="Arial">Inserting 'ping' , '1068515602:0' into /usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd</FONT>
<BR><FONT SIZE=2 FACE="Arial">Mon Nov 10 19:54:22 CST 2003 Args: ping HCISD1 Graph-Ping 1068515662 100.0,20% 500.0,60%</FONT>
<BR><FONT SIZE=2 FACE="Arial">Inserting 'ping' , '1068515662:0' into /usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd</FONT>
<BR><FONT SIZE=2 FACE="Arial">Mon Nov 10 19:55:22 CST 2003 Args: ping HCISD1 Graph-Ping 1068515722 100.0,20% 500.0,60%</FONT>
<BR><FONT SIZE=2 FACE="Arial">Inserting 'ping' , '1068515722:0' into /usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd</FONT>
<BR><FONT SIZE=2 FACE="Arial">Mon Nov 10 19:56:22 CST 2003 Args: ping HCISD1 Graph-Ping 1068515782 100.0,20% 500.0,60%</FONT>
<BR><FONT SIZE=2 FACE="Arial">Inserting 'ping' , '1068515782:0' into /usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">and the apancgi.debug file</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">CONF: HCISD1;Graph-Ping;/usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd;ping;ping:LINE2;Graph-Ping round-trip time;Secon</FONT>
<BR><FONT SIZE=2 FACE="Arial">ds</FONT>
<BR><FONT SIZE=2 FACE="Arial">CONF: HCISD1;Graph-Ping;/usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd;ping;ping:LINE2;Graph-Ping round-trip time;Secon</FONT>
<BR><FONT SIZE=2 FACE="Arial">ds</FONT>
<BR><FONT SIZE=2 FACE="Arial">/opt/rrd/bin/rrdtool graph - -s -600 -a PNG -v Seconds DEF:var0=/usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd:ping:AVE</FONT>
<BR><FONT SIZE=2 FACE="Arial">RAGE LINE2:var0#ff0000 #00ff00 #0000ff #ffff00 #ff00ff #00ffff #ff8080 #808080 #8080ff:ping:</FONT>
<BR><FONT SIZE=2 FACE="Arial">/opt/rrd/bin/rrdtool graph - -s -3600 -a PNG -v Seconds DEF:var0=/usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd:ping:AV</FONT>
<BR><FONT SIZE=2 FACE="Arial">ERAGE LINE2:var0#ff0000 #00ff00 #0000ff #ffff00 #ff00ff #00ffff #ff8080 #808080 #8080ff:ping:</FONT>
<BR><FONT SIZE=2 FACE="Arial">CONF: HCISD1;Graph-Ping;/usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd;ping;ping:LINE2;Graph-Ping round-trip time;Secon</FONT>
<BR><FONT SIZE=2 FACE="Arial">ds</FONT>
</P>
<P><B><FONT SIZE=2 FACE="Arial">serviceextinfo.cfg</FONT></B>
<BR><FONT SIZE=2 FACE="Arial">define serviceextinfo{</FONT>
<BR><FONT SIZE=2 FACE="Arial">host_name HCISD1</FONT>
<BR><FONT SIZE=2 FACE="Arial">service_description Graph-Ping</FONT>
<BR><FONT SIZE=2 FACE="Arial">notes_url /nagios/cgi-bin/apan.cgi?host=HCISD1&service=Graph-Ping</FONT>
<BR><FONT SIZE=2 FACE="Arial">icon_image graph.png</FONT>
<BR><FONT SIZE=2 FACE="Arial">icon_image_alt View graphs</FONT>
<BR><FONT SIZE=2 FACE="Arial">}</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">In the cgi.cfg file I have added the line</FONT>
<BR><FONT SIZE=2 FACE="Arial">xedtemplate_config_file=/usr/local/nagios/etc/serviceextinfo.cfg</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I have stopped and restarted nagios. Everything appears to work execept when I click on the service graph icon I get the following web page:</FONT></P>
<P><B><FONT FACE="Arial" SIZE=2 COLOR="#000000">
<IMG SRC="No%20AttachName" alt="ole0.bmp"></FONT></B>
</P>
<P><FONT SIZE=2 FACE="Arial">Rudy Montemayor</FONT>
<BR><FONT SIZE=2 FACE="Arial">rmontemayor@huntoil.com</FONT><B></B>
</P>
</BODY>
</HTML>