check_snmp problem -- UNKNOWN status when no data received from host

Assaf Flatto assaf.flatto at ssp.uk.com
Tue Sep 16 18:06:57 CEST 2008


have you tried the check_snmp options for regex ?

-s, --string=STRING
    Return OK state (for that OID) if STRING is an exact match
 -r, --ereg=REGEX
    Return OK state (for that OID) if extended regular expression REGEX matches
 -R, --eregi=REGEX
    Return OK state (for that OID) if case-insensitive extended REGEX matches

Since you know what the string is , you specify it and if it is not the one you need - it should 
create a warning .

example :

check_snmp -H x.x.x.x -C public -o 1.3.6.1.2.1.2.2.1.8.13 -w 1 -c 1 -l "BlueSocket Interface 
13" -s "BlueSocket Interface 13"  
should give the output similar to " BlueSocket Interface 13 problem - No data received from host"

Assaf

On Tuesday 16 September 2008 15:59:22 mhunter at jfku.edu wrote:
> Hello,
>
> I am having a problem getting my Nagios 2.x installation to alert me when
> one of our BlueSocket wireless access points goes down. These are accessed
> via a BlueSocket controller, which speaks SNMP.
>
> Nagios is issuing this command:
> check_snmp -H x.x.x.x -C public -o 1.3.6.1.2.1.2.2.1.8.13 -w 1 -c 1 -l
> "BlueSocket Interface 13"
>
> It returns this and an OK status when it is up: BlueSocket Interface 13 OK
> - 1
>
> It returns this and an UNKNOWN status when it is down: BlueSocket Interface
> 13 problem - No data received from host
>
> I need for it to alert when it is down, and preferably show a status of
> DOWN, but no matter what I specify for the critical and warning values (it
> will return a 1 if everything is OK) I can't get it to alert when there is
> no data received from the host.
>
> Thank you for your assistance!
>
>
> - Mary
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge Build the coolest Linux based applications with Moblin SDK & win
> great prizes Grand prize is a trip for two to an Open Source event anywhere
> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> 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






IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY
 
 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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