Check_SNMP question
Aaron Segura
Aaron.Segura at cabelas.com
Tue Nov 7 21:15:41 CET 2006
Probably the best/easiest thing would be to write a small wrapper
script.
-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Israel
Brewster
Sent: Tuesday, November 07, 2006 12:25 PM
To: Nagios Users mailinglist
Subject: [Nagios-users] Check_SNMP question
In the help for the check_snmp plugin, there are -w and -c switches
which you can give ranges to "not return warning" and "not return
critical". If I am reading the documentation correctly, you can also
give a range as max:min to invert the meaning to something like
"return warning only for this range". Is there any way to do non-
contiguous ranges? My situation is as follows: the OID that I am
querying returns the following list of possible integer values:
other(1),
none(2),
normal(3),
bypass(4),
battery(5),
booster(6),
reducer(7)
Now what I want is an OK result if the return value is 3, critical if
5 or 2, and warning if anything else. Is this possible? On a related
note, is there a way to append a specific status string depending on
the return value? For example, if I get a 5 I want to set the info
text in nagios to be something like "UPS on battery power". Thanks.
-----------------------------------------------
Israel Brewster
Computer Support Technician
Frontier Flying Service INC.
5245 Airport Industrial Rd
Fairbanks, AK 99709
-----------------------------------------------
------------------------------------------------------------------------
-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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