check_snmp output

Subhendu Ghosh sghosh at sghosh.org
Tue Feb 18 16:21:46 CET 2003


Hi Babak

Sorry about that.  Have you tried the current CVS version?

$ snmpwalk wave community ifInDiscards
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInDiscards.2 = Counter32: 0
$ ./check_snmp -H wave -C community -o ifInDiscards.1 -w 0:20 -c :40
SNMP OK - 0

-sg

On Tue, 18 Feb 2003, Babak Pasdar wrote:

> 
> Subhendu,
> 
> Thank you for your response.  I actually did list the output of the command line
> 
> # check_snmp -H 192.168.1.1 -w 0:20 -c :40 -o .1.3.6.1.2.1.2.2.1.13.1 -C bphome -d 32:
> SNMP WARNING - *0*
> 
> Here it is in verbose mode
> 
> # check_snmp -H 192.168.1.1 -w 0:20 -c :40 -o .1.3.6.1.2.1.2.2.1.13.1 -C bphome -d 32: -v
> /usr/local/bin/snmpget -m ALL -v 1 -c bphome 192.168.1.1:161  .1.3.6.1.2.1.2.2.1.13.1
> RFC1213-MIB::ifInDiscards.1 = Counter32: 0
> 
> SNMP WARNING - *0*
> 
> Here is snmpget output:
> 
> # snmpget 192.168.1.1:161 -c bphome -m ALL -v 1 ifInDiscards.1
> RFC1213-MIB::ifInDiscards.1 = Counter32: 0
> 
> 
> Granted I am not an SNMP expert, however I just want to be able to track interface error and discard output.
> 
> Babak
> 
> Subhendu Ghosh wrote:
> > On Mon, 17 Feb 2003, Babak Pasdar wrote:
> > 
> > > 
> > > 
> > > OK I am having a problem with check_snmp.  When I try it with just plain
> > > snmpget I get the desired result, however with check_snmp I keep getting
> > > an SNMP WARNING with the results.
> > > 
> > > Here is my exact syntac:
> > > 
> > > check_snmp -H 192.168.1.1 -o ifInErrors.1 -C XXX -w 0:20 -c :40 
> > > 
> > > results in:
> > > 
> > > SNMP WARNING - 0
> > > 
> > > It keep stelling me everything is at a warning level, even though the
> > > result is the desired result.
> > > 
> > > Any help would be appreciated.
> > > 
> > > Thanks
> > > 
> > > Babak
> > > 
> > 
> > When you run on snmpget on the  command line you probably get a bunch of 
> > MIB formatting errors.  Either fix those or use -m \" \"
> > 
> > Also posting the actual output of the command line would be useful.
> > 
> > Finally: please wrap your message lines to less than 80 characters.
> > 
> > -- 
> > 
> > -sg
> > 
> > 
> > 
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > 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
> > 
> 
> --
> Babak Pasdar
> Founder/CTO
> IGX Global
> 389 Main St.
> Hackensack, NJ 07601
> www.igxglobal.com
> (201) 498-0555 ext. 2205
> 
> The electronic message that you have received and any attachments are solely intended for the use of the addressee(s) and may contain information that is confidential.  
> 
> If you receive this email in error, please advise us by responding to NOC at igxglobal.com. You are required to delete the contents and destroy any copies immediately.  IGX Global is not liable for the views expressed in this electronic message or for the consequences of any computer viruses that may be unknowingly transmitted within this message.
>         
> This electronic message is also subject to standard copyright/ownership laws. It is not intended to be reproduced, or re-transmitted without the consent of the originator.
> 
> www.igxglobal.com 
> 

-- 




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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