<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1264" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>
<H3><FONT face=Arial size=2>Using the below example can you use snmpgetnext 
instead of snmpget? (in the service definition)  Seems that snmpget won't 
work with w2k boxes but snmpgetnext will?</FONT></H3>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This is the net-usage example?</FONT></DIV>
<H3><FONT face=Arial size=2></FONT> </H3>
<H3><FONT face=Arial size=2>Measure bandwith-usage</FONT></H3>
<TABLE cols=2 border=0>
  <TBODY>
  <TR>
    <TD vAlign=top colSpan=2><FONT face=Arial color=red size=2>1. Create a 
      service-definition in Nagios:</FONT></TD></TR>
  <TR>
    <TD width=20><FONT face=Arial size=2></FONT></TD>
    <TD><PRE><FONT face=Arial size=2>define service {
host_name                      server
service_description            Net-usage
check_command                  apan!snmpget!10!20
use                            generic-service
normal_check_interval          1
}</FONT></PRE><FONT size=2><FONT face=Arial><I>Note that the last two 
      arguments in the check_command not are used by this 
      plugin.</I><BR><BR></FONT></FONT></TD></TR>
  <TR>
    <TD vAlign=top colSpan=2><FONT face=Arial color=red size=2>2. Create a 
      RRD:</FONT></TD></TR>
  <TR>
    <TD><FONT face=Arial size=2></FONT></TD>
    <TD><FONT size=2><FONT face=Arial><TT>rrdtool create 
      /usr/local/nagios/rrd/server_Net-usage.rrd -s 60 DS:IN:COUNTER:300:0:U 
      DS:OUT:COUNTER:300:0:U RRA:AVERAGE:0.5:1:50400 
      RRA:AVERAGE:0.5:60:43800</TT> <BR><BR></FONT></FONT></TD></TR>
  <TR>
    <TD vAlign=top colSpan=2><FONT face=Arial color=red size=2>3. Add a line 
      in apan.cfg:</FONT></TD></TR>
  <TR>
    <TD><FONT face=Arial size=2></FONT></TD>
    <TD><FONT size=2><FONT 
      face=Arial><TT>server;Net-usage;/usr/local/nagios/rrd/server_Net-usage.rrd;public:.1.3.6.1.2.1.2.2.1.10.2|public:.1.3.6.1.2.1.2.2.1.16.2;IN:LINE2 
      OUT:LINE2;Network throughput;Bytes/sek;</TT> <BR><BR></FONT></FONT></TD></TR>
  <TR>
    <TD vAlign=top colSpan=2><FONT face=Arial color=red size=2>4. Add an icon 
      and a link as extended service-info:</FONT></TD></TR>
  <TR>
    <TD><FONT face=Arial size=2></FONT></TD>
    <TD><PRE><FONT face=Arial size=2>define serviceextinfo{
host_name               server
service_description     Net-usage
notes_url               /nagios/cgi-bin/apan.cgi?host=server&service=Net-usage
icon_image              graph.png
icon_image_alt          View graphs
}</FONT></PRE></TD></TR></TBODY></TABLE></DIV></BODY></HTML>