SNMP Question

mark.potter at academy.com mark.potter at academy.com
Fri Dec 14 20:54:00 CET 2007


Reformatted due to top posting.

 
> nagios-users-bounces at lists.sourceforge.net wrote on 12/14/2007 01:15:33 
PM:
> 
> > >I am trying to view the status of port 1 on a Cisco 2970 switch. 
> > >However, Nagios is giving me an UNKNOWN error.  I tried running the 
> > >following from a command prompt: 
> > >./check_snmp -H <IP of the switch> -C <string> -o ifOperStatus.1 -r 1 

> > 
> > >I get the following response: 
> > >SNMP OK - up(1) | RFC1213-MIB::ifOperStatus.1=up(1) 
> > > 
> > > If I am getting this response at the command prompt, why isn't the 
> > > monitor coming up green in Nagios? 
> > > 
> > > Thanks, 
> > > Mike 
> > > 
> >Are you running the command as the nagios user when you run it from 
> >the command line?

> I am running it as root.
> 

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071214/eee95367/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list