[Nagiosplug-help] regarding check_nt, can critical threshold be a MINIMUM threshold?

Ian Rarity Ian.Rarity at espc.com
Thu Jun 3 23:12:54 CEST 2010


You can use the 'negate' plugin to reverse the result; I do the same thing for services that shouldn't be running.

________________________________
From: Benny Hauk
To: nagiosplug-help at lists.sourceforge.net
Sent: Thu Jun 03 19:18:52 2010
Subject: [Nagiosplug-help] regarding check_nt, can critical threshold be a MINIMUM threshold?

When I run the Nagios service represented by this command:
check_nt -H 10.10.1.1 -s "" -p 12489 -v COUNTER -l "\\System\\System Up Time","Server has been up %.f seconds" -w 0 -c 300

Nagios reports that the host is in a critical state if it's been powered on for more than 5 minutes (300 seconds).  I am wanting to report on the opposite behavior.  I want an alert to go out when the server has been restarted in some way or another in the past 5 minutes.  Since some of our virtual machines reboot faster than our checking intervals, to do that I would like an alert to be triggerred whenever the "System Up Time" counter is LESS THAN 300 seconds, indicating some kind of system restart has occurred.  The critical threshold seems to only be able to be a "Maximum" threashold (meaning anything greater puts the service at a "critical" status).  Anyone know how to reverse that so that the 300 is a "minimum" critical threshold?  Some kind of a "NOT" parameter perhaps?

Thanks!
Benny
Nashville




Click here<https://www.mailcontrol.com/sr/jFQWguD0N5bTndxI!oX7UkeXb26O9kdwWQ56jYQ2YwJwccgVX4zGrXOkkkhaM7TGCVKKGKVYlBTi5jK2rp2Ftw==> to report this email as spam.

________________________________
Follow us on Twitter at http://twitter.com/espc

Private and Confidential: This e-mail transmission is strictly confidential and intended solely for the addressee. It may contain privileged and confidential information and if you are not the intended recipient, you must not copy, disclose, distribute or take any action in reliance on it. If you have received this e-mail in error, please delete it and notify our E-mail Systems Administrator on +44 (0) 131 624 8000. ESPC (UK) Ltd does not accept any liability for any harm that may be caused to the recipient's system or data by this message or any attachment.

ESPC (UK) Ltd is a company registered under the Companies Acts in Scotland (Registered Number SC203585), and having its registered office at 90A George Street, Edinburgh, Midlothian EH2 3DF.

ESPC (UK) Ltd is an Appointed Representative of Accord Consultancy which is authorised and regulated by the Financial Services Authority.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20100603/d5eec5a7/attachment.html>


More information about the Help mailing list