<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=840382819-14122007><FONT face=Arial
color=#0000ff size=2>I am running it as root.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> nagios-users-bounces@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] <B>On Behalf Of
</B>mark.potter@academy.com<BR><B>Sent:</B> Friday, December 14, 2007 1:27
PM<BR><B>To:</B> nagios-users@lists.sourceforge.net<BR><B>Subject:</B> Re:
[Nagios-users] SNMP Question<BR></FONT><BR></DIV>
<DIV></DIV><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></BODY></HTML>