<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Re: Graph is not appearing in Nagios monitoring ...</TITLE>
<META content="MSHTML 6.00.2800.1226" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=746514006-11112003><FONT face=Arial color=#0000ff size=2>hi
rudy,</FONT></SPAN></DIV>
<DIV><SPAN class=746514006-11112003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=746514006-11112003><FONT face=Arial color=#0000ff size=2>enable
debugging in your apan.defs (CGIDEBUG) and see what's in the
logfile.</FONT></SPAN></DIV>
<DIV><SPAN class=746514006-11112003><FONT face=Arial color=#0000ff size=2>also
check your apache-log and error-log.</FONT></SPAN></DIV>
<DIV><SPAN class=746514006-11112003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=746514006-11112003><FONT face=Arial color=#0000ff
size=2>regards,</FONT></SPAN></DIV>
<DIV><SPAN class=746514006-11112003><FONT face=Arial color=#0000ff
size=2>chris</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Ursprüngliche Nachricht-----<BR><B>Von:</B> Rudy Montemayor
[mailto:RMontemayor@huntoil.com]<BR><B>Gesendet:</B> Dienstag, 11. November
2003 03:20<BR><B>An:</B> nagios-users@lists.sourceforge.net<BR><B>Betreff:</B>
[Nagios-users] Re: Graph is not appearing in Nagios monitoring
...<BR><BR></FONT></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>Folks,</FONT> </P>
<P><FONT face=Arial size=2>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 face=Arial size=2>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 face=Arial size=2><B> checkcommands.cfg</B></FONT> <BR><FONT
face=Arial size=2># apan.sh command definition</FONT> <BR><FONT face=Arial
size=2>define command{</FONT> <BR><FONT face=Arial
size=2>command_name apan</FONT> <BR><FONT face=Arial
size=2>command_line /usr/local/nagios/apan/apan.sh $ARG1$
$HOSTNAME$ "$SERVICEDESC$"</FONT> <BR><FONT face=Arial size=2> $TIMET$
$ARG2$ $ARG3$</FONT> <BR><FONT face=Arial size=2>}</FONT> </P>
<P><B><FONT face=Arial size=2>services.cfg</FONT></B> <BR><FONT face=Arial
size=2># Service definition of Graph-Ping</FONT> <BR><FONT face=Arial
size=2>define service{</FONT> <BR><FONT face=Arial
size=2>use
generic-service ; Name of service template to use</FONT> <BR><FONT face=Arial
size=2>host_name
HCISD1</FONT> <BR><FONT face=Arial
size=2>service_description Graph-Ping</FONT> <BR><FONT
face=Arial
size=2>is_volatile
0</FONT> <BR><FONT face=Arial
size=2>check_period
24x7</FONT> <BR><FONT face=Arial
size=2>max_check_attempts 10</FONT> <BR><FONT
face=Arial size=2>normal_check_interval 1</FONT> <BR><FONT
face=Arial size=2>retry_check_interval 1</FONT> <BR><FONT
face=Arial
size=2>contact_groups
unix-admins</FONT> <BR><FONT face=Arial
size=2>notification_interval 120</FONT> <BR><FONT face=Arial
size=2>notification_period 24x7</FONT> <BR><FONT
face=Arial size=2>notification_options c,r</FONT> <BR><FONT
face=Arial
size=2>name
Graph-Ping</FONT> <BR><FONT face=Arial
size=2>check_command
apan!ping!100.0,20%!500.0,60%</FONT> <BR><FONT face=Arial size=2>}</FONT> </P>
<P><B><FONT face=Arial size=2>apan.cfg</FONT></B> <BR><FONT face=Arial
size=2>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 face=Arial size=2>Created a RRD-file</FONT></B> <BR><FONT
face=Arial size=2>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 face=Arial size=2># ll
/usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd</FONT> <BR><FONT face=Arial
size=2>-rwxrwxrwx 1 nagios
nagios 754348 Nov 10 19:55
/usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd</FONT> </P>
<P><FONT face=Arial size=2>and the rrd file appears to be updating, from
looking at the apan.debug file:</FONT> </P>
<P><FONT face=Arial size=2>Mon Nov 10 19:52:22 CST 2003 Args: ping HCISD1
Graph-Ping 1068515542 100.0,20% 500.0,60%</FONT> <BR><FONT face=Arial
size=2>Inserting 'ping' , '1068515542:0' into
/usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd</FONT> <BR><FONT face=Arial
size=2>Mon Nov 10 19:53:22 CST 2003 Args: ping HCISD1 Graph-Ping 1068515602
100.0,20% 500.0,60%</FONT> <BR><FONT face=Arial size=2>Inserting 'ping' ,
'1068515602:0' into /usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd</FONT>
<BR><FONT face=Arial size=2>Mon Nov 10 19:54:22 CST 2003 Args: ping HCISD1
Graph-Ping 1068515662 100.0,20% 500.0,60%</FONT> <BR><FONT face=Arial
size=2>Inserting 'ping' , '1068515662:0' into
/usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd</FONT> <BR><FONT face=Arial
size=2>Mon Nov 10 19:55:22 CST 2003 Args: ping HCISD1 Graph-Ping 1068515722
100.0,20% 500.0,60%</FONT> <BR><FONT face=Arial size=2>Inserting 'ping' ,
'1068515722:0' into /usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd</FONT>
<BR><FONT face=Arial size=2>Mon Nov 10 19:56:22 CST 2003 Args: ping HCISD1
Graph-Ping 1068515782 100.0,20% 500.0,60%</FONT> <BR><FONT face=Arial
size=2>Inserting 'ping' , '1068515782:0' into
/usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd</FONT> </P>
<P><FONT face=Arial size=2>and the apancgi.debug file</FONT> </P>
<P><FONT face=Arial size=2>CONF:
HCISD1;Graph-Ping;/usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd;ping;ping:LINE2;Graph-Ping
round-trip time;Secon</FONT> <BR><FONT face=Arial size=2>ds</FONT> <BR><FONT
face=Arial size=2>CONF:
HCISD1;Graph-Ping;/usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd;ping;ping:LINE2;Graph-Ping
round-trip time;Secon</FONT> <BR><FONT face=Arial size=2>ds</FONT> <BR><FONT
face=Arial size=2>/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
face=Arial size=2>RAGE LINE2:var0#ff0000 #00ff00 #0000ff #ffff00 #ff00ff
#00ffff #ff8080 #808080 #8080ff:ping:</FONT> <BR><FONT face=Arial
size=2>/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
face=Arial size=2>ERAGE LINE2:var0#ff0000 #00ff00 #0000ff #ffff00 #ff00ff
#00ffff #ff8080 #808080 #8080ff:ping:</FONT> <BR><FONT face=Arial size=2>CONF:
HCISD1;Graph-Ping;/usr/local/nagios/rrd/HCISD1_Graph-Ping.rrd;ping;ping:LINE2;Graph-Ping
round-trip time;Secon</FONT> <BR><FONT face=Arial size=2>ds</FONT> </P>
<P><B><FONT face=Arial size=2>serviceextinfo.cfg</FONT></B> <BR><FONT
face=Arial size=2>define serviceextinfo{</FONT> <BR><FONT face=Arial
size=2>host_name
HCISD1</FONT> <BR><FONT face=Arial
size=2>service_description Graph-Ping</FONT> <BR><FONT
face=Arial
size=2>notes_url
/nagios/cgi-bin/apan.cgi?host=HCISD1&service=Graph-Ping</FONT> <BR><FONT
face=Arial
size=2>icon_image
graph.png</FONT> <BR><FONT face=Arial
size=2>icon_image_alt
View graphs</FONT> <BR><FONT face=Arial size=2>}</FONT> </P>
<P><FONT face=Arial size=2>In the cgi.cfg file I have added the line</FONT>
<BR><FONT face=Arial
size=2>xedtemplate_config_file=/usr/local/nagios/etc/serviceextinfo.cfg</FONT>
</P>
<P><FONT face=Arial size=2>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 color=#000000 size=2><IMG alt=ole0.bmp
src="No%20AttachName"></FONT></B> </P>
<P><FONT face=Arial size=2>Rudy Montemayor</FONT> <BR><FONT face=Arial
size=2>rmontemayor@huntoil.com</FONT><B></B> </P></BLOCKQUOTE></BODY></HTML>