Force immediate check of multiple services

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

Force immediate check of multiple services

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

Re: Force immediate check of multiple services

Post by scottwilkerson »

In the latest version of XI you can do this from
Home -> Incident Management -> Mass Immediate Check
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

Re: Force immediate check of multiple services

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

Re: Force immediate check of multiple services

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

Re: Force immediate check of multiple services

Post by hbouma »

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

Post by scottwilkerson »

hbouma wrote:Thank you. I was able to alter this to use the API and force this check.
Great!
Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked