Force immediate check of multiple services
Force immediate check of multiple services
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Force immediate check of multiple services
In the latest version of XI you can do this from
Home -> Incident Management -> Mass Immediate Check
Home -> Incident Management -> Mass Immediate Check
Re: Force immediate check of multiple services
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Force immediate check of multiple services
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
https://assets.nagios.com/downloads/nag ... and_id=129
Re: Force immediate check of multiple services
Thank you. I was able to alter this to use the API and force this check.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Force immediate check of multiple services
Great!hbouma wrote:Thank you. I was able to alter this to use the API and force this check.
Locking thread