<br><tt><font size=2>nagios-users-bounces@lists.sourceforge.net wrote on
12/14/2007 01:15:33 PM:<br>
<br>
> I am trying to view the status of port 1 on a Cisco 2970 switch.  <br>
> However, Nagios is giving me an UNKNOWN error.  I tried running
the <br>
> following from a command prompt:</font></tt>
<br><tt><font size=2>> ./check_snmp -H <IP of the switch> -C <string>
-o ifOperStatus.1 -r 1</font></tt>
<br><tt><font size=2>>  </font></tt>
<br><tt><font size=2>> I get the following response:</font></tt>
<br><tt><font size=2>> SNMP OK - up(1) | RFC1213-MIB::ifOperStatus.1=up(1)</font></tt>
<br><tt><font size=2>>  </font></tt>
<br><tt><font size=2>> If I am getting this response at the command
prompt, why isn't the <br>
> monitor coming up green in Nagios?</font></tt>
<br><tt><font size=2>>  </font></tt>
<br><tt><font size=2>> Thanks,</font></tt>
<br><tt><font size=2>> Mike</font></tt>
<br><tt><font size=2>>  </font></tt>
<br><tt><font size=2>Are you running the command as the nagios user when
you run it from the command line?</font></tt>