Obtaining Availability Report Data Via API

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

Re: Obtaining Availability Report Data Via API

Post by awilson »

Just to be clear, the only way to programmatically extract the same results as the XI availability report is to use the curl and chrome developer approach to identify the exact parameters?

Thanks.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Obtaining Availability Report Data Via API

Post by npolovenko »

@awilson, From the API reports you can get the availability data for a host, service, hostgroup or a servicegroup and in the output you'll see total_time_down and time_down_scheduled. If you deduct total_time_down - time_down_scheduled you'll get the availability time without scheduled downtime.
That's the only way I could think of.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

Re: Obtaining Availability Report Data Via API

Post by awilson »

Thank you. Do you know which release added the hostavailability and serviceavailability endpoints?

Thanks!
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Obtaining Availability Report Data Via API

Post by npolovenko »

@awilson, We added these API endpoints in XI 5.5.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

Re: Obtaining Availability Report Data Via API

Post by awilson »

Thanks. You can close this. I appreciate the help.
Locked