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
check win service in "inverse" way
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check win service in "inverse" way
Depending on the plugin/agent you are using, usually you can change the warning/critical threshold to invert by adding the : symbol
for example
See Threshold and Ranges section:
https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT
for example
Code: Select all
-w 1: -c 1:https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT