From: Rejo Z. <sub...@rz...> - 2005-05-31 14:10:22
|
-----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 <re...@rz...> - http://rejo.zenger.nl - PGP 0x75FC50F3 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFCnHBCHa9Q5nX8UPMRAjYrAKCNJqhGtKVpF+tHDCbSzvzScLVaxACfQw+x ViafTHqxnmYU0hX4wMQagXw= =2Cot -----END PGP SIGNATURE----- |