Lieberts UPS

Rejo Zenger subs-nagios.users at rz.xs4all.nl
Tue May 31 16:10:10 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

++ 31/05/05 09:26 -0400 - Subhendu Ghosh:
>>This is a check to see how many minutes are remaining on the UPS. What I
>>need is a warning if that one is less 22 minutes and a critical if it's
>>less than 20.
[...]
>Note - Nagios only looks at the return code for status - not the text 
>string in the output.  you need to check $? verify that the appropriate OK 
>code is being sent.

I have found what I was looking for:

        check_command check_snmp-get!.1.3.6.1.2.1.33.1.2.3.0!20:99!22:99!min

This will provide a warning when the answer of the UPC is *not* between
20 and 99 and will give a critical if the answer is not between 22 and
99. This will give a warning if only 22 or less minutes are remaining
and with only 20 or less minutes are remaining. So far, this has been
working perfectly.

- -- 
Rejo Zenger <rejo at rz.xs4all.nl> - http://rejo.zenger.nl - PGP 0x75FC50F3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFCnHBCHa9Q5nX8UPMRAjYrAKCNJqhGtKVpF+tHDCbSzvzScLVaxACfQw+x
ViafTHqxnmYU0hX4wMQagXw=
=2Cot
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
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