<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=049320700-31102002>It 
works for me..</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=049320700-31102002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=049320700-31102002>bash-2.05a$ ../libexec/check_snmp -H msweb00 -o 
sysUpTime.0 -C public<BR>SNMP OK - Timeticks: (62851802) 7 days, 
6:35:18.02<BR>bash-2.05a$<BR></SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Jeff Rendl 
  [mailto:jeff.rendl@ifsna.com] <BR><B>Sent:</B> Wednesday, October 30, 2002 
  2:57 PM<BR><B>To:</B> 'nagios-users@lists.sourceforge.net'<BR><B>Subject:</B> 
  [Nagios-users] check_snmp Strangeness<BR><BR></FONT></DIV>
  <DIV><SPAN class=659554922-30102002><FONT face=Arial size=2>My check_snmp 
  appears to be sending the wrong command line to "snmpget".  I test the 
  command from the libexec dir with the following:</FONT></SPAN></DIV>
  <DIV><SPAN class=659554922-30102002><FONT face=Arial 
  size=2></FONT></SPAN> </DIV>
  <DIV><SPAN class=659554922-30102002><FONT face=Arial size=2>[root@blah 
  libexec]# ./check_snmp -H 192.168.1.1 -o sysUpTime.0 -C 
  public</FONT></SPAN></DIV>
  <DIV><SPAN class=659554922-30102002><FONT face=Arial 
  size=2></FONT></SPAN> </DIV>
  <DIV><SPAN class=659554922-30102002><FONT face=Arial size=2>and it replies 
  with:</FONT></SPAN></DIV>
  <DIV><SPAN class=659554922-30102002><FONT face=Arial size=2>SNMP problem - No 
  data received from host</FONT></SPAN></DIV>
  <DIV><SPAN class=659554922-30102002><FONT face=Arial size=2>CMD: 
  /usr/bin/snmpget -m ALL -v 1 192.168.1.1 public -c 
  sysUpTime.0</FONT></SPAN></DIV>
  <DIV><SPAN class=659554922-30102002><FONT face=Arial 
  size=2></FONT></SPAN> </DIV>
  <DIV><SPAN class=659554922-30102002><FONT face=Arial size=2>Which is true 
  because that command doesn't work with snmpget, the format that works 
  is:</FONT></SPAN></DIV>
  <DIV><SPAN class=659554922-30102002><FONT face=Arial 
  size=2></FONT></SPAN> </DIV>
  <DIV><SPAN class=659554922-30102002><FONT face=Arial size=2>snmpget -m ALL -v 
  1 192.168.1.1 -c public sysUpTime.0</FONT></SPAN></DIV>
  <DIV><SPAN class=659554922-30102002><FONT face=Arial 
  size=2></FONT></SPAN> </DIV>
  <DIV><SPAN class=659554922-30102002><FONT face=Arial size=2>If I modify the 
  check_snmp request to:</FONT></SPAN></DIV>
  <DIV><SPAN class=659554922-30102002><FONT face=Arial 
  size=2></FONT></SPAN> </DIV>
  <DIV><SPAN class=659554922-30102002><FONT face=Arial size=2>
  <DIV><SPAN class=659554922-30102002><FONT face=Arial size=2>[root@blah 
  libexec]# ./check_snmp -H 192.168.1.1 -o sysUpTime.0 -C "-c 
  public"</FONT></SPAN></DIV>
  <DIV><SPAN class=659554922-30102002></SPAN> </DIV>
  <DIV><SPAN class=659554922-30102002>It works.</SPAN></DIV>
  <DIV><SPAN class=659554922-30102002></SPAN> </DIV>
  <DIV><SPAN class=659554922-30102002>Is there a way to change what check_snmp 
  sends to snmpget?</SPAN></DIV>
  <DIV><SPAN class=659554922-30102002></SPAN> </DIV>
  <DIV><SPAN 
  class=659554922-30102002>Thanks,<BR>Jeff</SPAN></DIV></FONT></SPAN></DIV></BLOCKQUOTE></BODY></HTML>