Check_Service exclude "delayed" services in Windows

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Check_Service exclude "delayed" services in Windows

Postby gkramps » Mon May 14, 2018 2:21 pm

I am trying to write service to monitor Windows services using check_nrpe and check_service. I have a lot of services I've excluded, but I would like to also exclude "delayed" services that are stopped. I can't figure out the context to use and I can't find any documentation or examples.

I don't know the context on how to exclude "start_type". Below is what I have besides a laundry list of services I'm excluding. I just need to know how to exclude 'delayed'.

check_service "filter=start_type = 'auto'"
Posts: 1
Joined: Tue Apr 17, 2018 9:47 am

Re: Check_Service exclude "delayed" services in Windows

Postby scottwilkerson » Tue May 15, 2018 10:12 am

I this what you are looking for is something like this

"critical=state = not state_is_ok()"

From ... ck_service

Code: Select all
Check if the state is ok, i.e. all running services are running delayed services are allowed to be stopped)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
Posts: 9157
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 23 guests