<!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 5.5.2653.12">
<TITLE>how to get graphs in Nagios ...</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Trebuchet MS"> Hi Nagi Kings,</FONT>
</P>

<P><FONT SIZE=2 FACE="Trebuchet MS">I have installed nagios and monitoring is happening with out any problem. I want to see the graphs of monitoring components. I just installed RRD Tools and Apan.</FONT></P>

<P><FONT SIZE=2 FACE="Trebuchet MS">I am not getting the graph. What should I do ?</FONT>
</P>

<P><FONT SIZE=2 FACE="Trebuchet MS">The following things I have done in the Nagios server :</FONT>
</P>
<BR>

<P><B><FONT SIZE=2 FACE="Trebuchet MS">1. Services.cfg  has been edited with the following content</FONT></B>
</P>

<P><FONT SIZE=2 FACE="Trebuchet MS"># Service definition</FONT>
<BR><FONT SIZE=2 FACE="Trebuchet MS">define service{</FONT>
<BR>        <FONT SIZE=2 FACE="Trebuchet MS">use                             generic-service         ; Name of service template to use</FONT>
</P>

<P>        <FONT SIZE=2 FACE="Trebuchet MS">host_name                       PARAMANP</FONT>
<BR>        <FONT SIZE=2 FACE="Trebuchet MS">service_description             Ping </FONT>
<BR>        <FONT SIZE=2 FACE="Trebuchet MS">is_volatile                     0</FONT>
<BR>        <FONT SIZE=2 FACE="Trebuchet MS">check_period                    24x7</FONT>
<BR>        <FONT SIZE=2 FACE="Trebuchet MS">max_check_attempts              10</FONT>
<BR>        <FONT SIZE=2 FACE="Trebuchet MS">normal_check_interval           1</FONT>
<BR>        <FONT SIZE=2 FACE="Trebuchet MS">retry_check_interval            1</FONT>
<BR>        <FONT SIZE=2 FACE="Trebuchet MS">contact_groups                  nt-admins</FONT>
<BR>        <FONT SIZE=2 FACE="Trebuchet MS">notification_interval           120</FONT>
<BR>        <FONT SIZE=2 FACE="Trebuchet MS">notification_period             24x7</FONT>
<BR>        <FONT SIZE=2 FACE="Trebuchet MS">notification_options            c,r</FONT>
<BR>        <FONT SIZE=2 FACE="Trebuchet MS">name                            Ping</FONT>
<BR>        <FONT SIZE=2 FACE="Trebuchet MS">check_command           apan!ping!100.0,20%!500.0,60%</FONT>
<BR>        <FONT SIZE=2 FACE="Trebuchet MS">}</FONT>
</P>

<P><B><FONT SIZE=2 FACE="Trebuchet MS">2. RRD has been created with the following command.</FONT></B>
</P>

<P><FONT SIZE=2 FACE="Trebuchet MS">rrdtool create /usr/local/nagios/rrd/PARAMANP_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><B><FONT SIZE=2 FACE="Trebuchet MS">3. apan.cfg has been edited with the following content</FONT></B>
<BR><FONT SIZE=2 FACE="Trebuchet MS">PARAMANP;Ping;/usr/local/nagios/rrd/PARAMANP_ping.rrd;ping;ping:LINE2;Ping round-trip time;Seconds</FONT>
</P>

<P><B><FONT SIZE=2 FACE="Trebuchet MS">4.  cgi.cfg has been edited with the following content</FONT></B> 
</P>

<P><FONT SIZE=2 FACE="Trebuchet MS">define          serviceextinfo{</FONT>
<BR><FONT SIZE=2 FACE="Trebuchet MS">host_name       PARAMANP</FONT>
<BR><FONT SIZE=2 FACE="Trebuchet MS">service_description     Ping</FONT>
<BR><FONT SIZE=2 FACE="Trebuchet MS">notes_url       /nagios/cgi-bin/apan.cgi?host=PARAMANP&service=Ping</FONT>
<BR><FONT SIZE=2 FACE="Trebuchet MS">icon_image      graph.png</FONT>
<BR><FONT SIZE=2 FACE="Trebuchet MS">icon_image_alt  View graphs</FONT>
<BR><FONT SIZE=2 FACE="Trebuchet MS">}<BR>
</FONT>
<BR><B><FONT SIZE=2 FACE="Trebuchet MS">5. Nagios has been restarted.</FONT></B> 
</P>

<P><FONT SIZE=2 FACE="Trebuchet MS">How to go on this ?  Should I do anything else ? Any help will be appreciated. Thanks.</FONT>
</P>

<P><FONT SIZE=2 FACE="Trebuchet MS">with warm regards,</FONT>
<BR><FONT SIZE=2 FACE="Trebuchet MS">Paraman Pachaimuthu</FONT>
</P>
<BR>
<BR>
<BR>

</BODY>
</HTML>