Page 1 of 1
Report that shows the length of an outage
Posted: Thu Mar 05, 2020 4:41 pm
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.
Re: Report that shows the length of an outage
Posted: Fri Mar 06, 2020 12:59 pm
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?
Re: Report that shows the length of an outage
Posted: Tue Mar 10, 2020 10:23 am
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.
Re: Report that shows the length of an outage
Posted: Tue Mar 10, 2020 5:07 pm
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?