Page 1 of 1

Force immediate check of multiple services

Posted: Mon Jul 01, 2019 8:02 am
by hbouma
We have a specific service on all monitored Windows servers called "Windows Uptime". I am being asked if there is a way to force all these services to recheck in bulk, like after a patching cycle, using the API.

Re: Force immediate check of multiple services

Posted: Mon Jul 01, 2019 9:56 am
by scottwilkerson
In the latest version of XI you can do this from
Home -> Incident Management -> Mass Immediate Check

Re: Force immediate check of multiple services

Posted: Mon Jul 01, 2019 10:21 am
by hbouma
That would work if they were all on one server. In this case, they are spread across 6 servers. We are hoping to have something we can script to automatically run after patching, followed by a script we already wrote that pulls the value of the services for each of these checks.

Re: Force immediate check of multiple services

Posted: Mon Jul 01, 2019 12:36 pm
by scottwilkerson
If you would like to script it you can pass the external command using the following as an example

https://assets.nagios.com/downloads/nag ... and_id=129

Re: Force immediate check of multiple services

Posted: Tue Jul 02, 2019 7:41 am
by hbouma
Thank you. I was able to alter this to use the API and force this check.

Re: Force immediate check of multiple services

Posted: Tue Jul 02, 2019 8:03 am
by scottwilkerson
hbouma wrote:Thank you. I was able to alter this to use the API and force this check.
Great!
Locking thread