<!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.2800.1106" name=GENERATOR></HEAD>
<BODY>
<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></BODY></HTML>