Report that shows the length of an outage

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Report that shows the length of an outage

Post by snapon_admin »

We're looking for a way to report how long an outage lasts, but currently there doesn't seem to be a way to do that. We can run a state history report to see when the site (router) went down and then when it came back up, but the only way to caluclate the total outage time is to manually calculate it using that info. We'd like the ability to run a report that shows the up/down states for a host and also calculates the duration of the time between the down states and the next up state to give us a total outage time.
User avatar
jdunitz
Posts: 235
Joined: Wed Feb 05, 2020 2:50 pm

Re: Report that shows the length of an outage

Post by jdunitz »

Something that gets you close to what you're asking for might be the legacy host and service availability reports.
legacy-reports.PNG
From my example server, you can see that it was down for most of the last 24 hours:
MostlyDown.PNG
Otherwise, you can pull data out of the API and write something on your own to format it however you need to:
http://nagiosxiserver/nagiosxi/help/api ... ailability
and
http://nagiosxiserver/nagiosxi/help/api ... ailability


Does that help?
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.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: Report that shows the length of an outage

Post by snapon_admin »

Yeah this kind of works. It's a bit cludgy, though, since if you run this report on a hostgroup it only gives percentage but not the total time for each host. It should work for now, though.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Report that shows the length of an outage

Post by benjaminsmith »

Hi @snapon_admin,

Although not perfect, glad that you will work. Are we ok to close this thread or do you have any other questions?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked