check win service in "inverse" way

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
emi65
Posts: 129
Joined: Fri Aug 17, 2012 3:41 am

check win service in "inverse" way

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check win service in "inverse" way

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked