state changes of a host in last 60 minutes

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cskang
Posts: 68
Joined: Sat Mar 05, 2011 4:13 pm

state changes of a host in last 60 minutes

Post by cskang »

Is there any way to find out the state changes of a host in last 60 minutes?
For example, there are five state changes if the state of a host changed as follow:
UP-->DOWN-->UP-->DOWN-->UP-->DOWN
I will need to know the initial state and the final state of the host due to the state change and when the state change has occurred for each state change.

Is there backendURL API (or any other means) to obtain such history of state changes for a host?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: state changes of a host in last 60 minutes

Post by scottwilkerson »

State history is available in the Reports section, but the minimum is 24 hours.

We do have a backend API component that can pull the state history but it doesn't filter by date/time.
http://exchange.nagios.org/directory/Ad ... nt/details

http://exchange.nagios.org/directory/Do ... PI/details

Also, it is undocumented yet, however, you can filter the results by host_name and service description by appending the following to the api URL

Code: Select all

&host_name=<YOUR_HOST>&service_description=<YOUR_SERVICE_DESCRIPTION>
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked