<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>how to get graphs in Nagios ...</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=367070714-30102003>u've 
to put this line in cgi.cfg:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=367070714-30102003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=367070714-30102003>xedtemplate_config_file=/usr/local/nagios/etc/serviceextinfo.cfg<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=367070714-30102003>Then, 
create file /usr/local/nagios/etc/serviceextinfo.cfg and put in: 
</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=367070714-30102003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=367070714-30102003><FONT 
face="Trebuchet MS" color=#000000>define  
        serviceextinfo{</FONT><FONT 
color=#000000><FONT face="Times New Roman" size=3> <BR></FONT><FONT 
face="Trebuchet MS" size=2>host_name       
PARAMANP</FONT></FONT><FONT color=#000000><FONT face="Times New Roman" size=3> 
<BR></FONT><FONT face="Trebuchet MS" 
size=2>service_description     Ping</FONT></FONT><FONT 
color=#000000><FONT face="Times New Roman" size=3> <BR></FONT><FONT 
face="Trebuchet MS" size=2>notes_url       
/nagios/cgi-bin/apan.cgi?host=PARAMANP&service=Ping</FONT></FONT><FONT 
color=#000000><FONT face="Times New Roman" size=3> <BR></FONT><FONT 
face="Trebuchet MS" size=2>icon_image      
graph.png</FONT></FONT><FONT color=#000000><FONT face="Times New Roman" size=3> 
<BR></FONT><FONT face="Trebuchet MS" size=2>icon_image_alt  View 
graphs</FONT></FONT><FONT face="Times New Roman" color=#000000 size=3> 
<BR></FONT><FONT face="Trebuchet MS" size=2><FONT 
color=#000000>}</FONT><BR></FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=367070714-30102003><FONT 
face="Trebuchet MS" size=2>Regards</DIV></FONT></SPAN></FONT>
<BLOCKQUOTE>
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Mensaje original-----<BR><B>De:</B> 
  nagios-users-admin@lists.sourceforge.net 
  [mailto:nagios-users-admin@lists.sourceforge.net]<B>En nombre de </B>Paraman 
  Pachaimuthu<BR><B>Enviado el:</B> jueves, 30 de octubre de 2003 
  13:42<BR><B>Para:</B> 'nagios-users@lists.sourceforge.net'<BR><B>Asunto:</B> 
  [Nagios-users] how to get graphs in Nagios ...<BR><B>Importancia:</B> 
  Alta<BR><BR></FONT></DIV>
  <P><FONT face="Trebuchet MS" size=2> Hi Nagi Kings,</FONT> </P>
  <P><FONT face="Trebuchet MS" size=2>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 face="Trebuchet MS" size=2>I am not getting the graph. What should I 
  do ?</FONT> </P>
  <P><FONT face="Trebuchet MS" size=2>The following things I have done in the 
  Nagios server :</FONT> </P><BR>
  <P><B><FONT face="Trebuchet MS" size=2>1. Services.cfg  has been edited 
  with the following content</FONT></B> </P>
  <P><FONT face="Trebuchet MS" size=2># Service definition</FONT> <BR><FONT 
  face="Trebuchet MS" size=2>define service{</FONT> 
  <BR>        <FONT face="Trebuchet MS" 
  size=2>use             
          
          generic-service 
          ; Name of service template to 
  use</FONT> </P>
  <P>        <FONT face="Trebuchet MS" 
  size=2>host_name       
          
          PARAMANP</FONT> 
  <BR>        <FONT face="Trebuchet MS" 
  size=2>service_description     
          Ping 
  </FONT><BR>        <FONT 
  face="Trebuchet MS" size=2>is_volatile     
          
          0</FONT> 
  <BR>        <FONT face="Trebuchet MS" 
  size=2>check_period    
          
          24x7</FONT> 
  <BR>        <FONT face="Trebuchet MS" 
  size=2>max_check_attempts      
          10</FONT> 
  <BR>        <FONT face="Trebuchet MS" 
  size=2>normal_check_interval   
          1</FONT> 
  <BR>        <FONT face="Trebuchet MS" 
  size=2>retry_check_interval    
          1</FONT> 
  <BR>        <FONT face="Trebuchet MS" 
  size=2>contact_groups          
          nt-admins</FONT> 
  <BR>        <FONT face="Trebuchet MS" 
  size=2>notification_interval   
          120</FONT> 
  <BR>        <FONT face="Trebuchet MS" 
  size=2>notification_period     
          24x7</FONT> 
  <BR>        <FONT face="Trebuchet MS" 
  size=2>notification_options    
          c,r</FONT> 
  <BR>        <FONT face="Trebuchet MS" 
  size=2>name            
          
          Ping</FONT> 
  <BR>        <FONT face="Trebuchet MS" 
  size=2>check_command           
  apan!ping!100.0,20%!500.0,60%</FONT> 
  <BR>        <FONT face="Trebuchet MS" 
  size=2>}</FONT> </P>
  <P><B><FONT face="Trebuchet MS" size=2>2. RRD has been created with the 
  following command.</FONT></B> </P>
  <P><FONT face="Trebuchet MS" size=2>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 face="Trebuchet MS" size=2>3. apan.cfg has been edited with the 
  following content</FONT></B> <BR><FONT face="Trebuchet MS" 
  size=2>PARAMANP;Ping;/usr/local/nagios/rrd/PARAMANP_ping.rrd;ping;ping:LINE2;Ping 
  round-trip time;Seconds</FONT> </P>
  <P><B><FONT face="Trebuchet MS" size=2>4.  cgi.cfg has been edited with 
  the following content</FONT></B> </P>
  <P><FONT face="Trebuchet MS" size=2>define  
          serviceextinfo{</FONT> <BR><FONT 
  face="Trebuchet MS" size=2>host_name       
  PARAMANP</FONT> <BR><FONT face="Trebuchet MS" 
  size=2>service_description     Ping</FONT> <BR><FONT 
  face="Trebuchet MS" size=2>notes_url       
  /nagios/cgi-bin/apan.cgi?host=PARAMANP&service=Ping</FONT> <BR><FONT 
  face="Trebuchet MS" size=2>icon_image      
  graph.png</FONT> <BR><FONT face="Trebuchet MS" size=2>icon_image_alt  
  View graphs</FONT> <BR><FONT face="Trebuchet MS" 
  size=2>}<BR></FONT><BR><B><FONT face="Trebuchet MS" size=2>5. Nagios has been 
  restarted.</FONT></B> </P>
  <P><FONT face="Trebuchet MS" size=2>How to go on this ?  Should I do 
  anything else ? Any help will be appreciated. Thanks.</FONT> </P>
  <P><FONT face="Trebuchet MS" size=2>with warm regards,</FONT> <BR><FONT 
  face="Trebuchet MS" size=2>Paraman Pachaimuthu</FONT> 
</P><BR><BR><BR></BLOCKQUOTE></BODY></HTML>