Page 1 of 1

check win service in "inverse" way

Posted: Fri Aug 31, 2018 10:06 am
by emi65
I'm using
NagiosĀ® Coreā„¢
Version 4.3.4

I need to get a check to monitor a window service
But this check should work in a inverse way
It will move in critical when the service is running and it must be OK when the service is DOWN

Some one has an idea where to find this check =
thanks
Emilio

Re: check win service in "inverse" way

Posted: Fri Aug 31, 2018 10:18 am
by scottwilkerson
Depending on the plugin/agent you are using, usually you can change the warning/critical threshold to invert by adding the : symbol

for example

Code: Select all

-w 1: -c 1:
See Threshold and Ranges section:
https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT