<br><font size=2 face="sans-serif">Reformatted due to top posting.<br>
</font>
<br><tt><font size=2> <br>
> 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: <br>
> > >./check_snmp -H <IP of the switch> -C <string>
-o ifOperStatus.1 -r 1 <br>
> > <br>
> > >I get the following response: <br>
> > >SNMP OK - up(1) | RFC1213-MIB::ifOperStatus.1=up(1) <br>
> > > <br>
> > > If I am getting this response at the command prompt, why
isn't the <br>
> > > monitor coming up green in Nagios? <br>
> > > <br>
> > > Thanks, <br>
> > > Mike <br>
> > > <br>
> >Are you running the command as the nagios user when you run it
from <br>
> >the command line?</font></tt>
<br><tt><font size=2><br>
> I am running it as root.</font></tt>
<br><tt><font size=2>> </font></tt>
<br>
<br><tt><font size=2>You will not be able to troubleshoot when running
plugins as root. Root has different permissions than the nagios user. Try
running it as the nagios user. Also, you will have to put the MIB somewhere
nagios can use it otherwise use the numeric for SNMP.</font></tt>
<br>