Page 1 of 3

Scheduled downtime report

Posted: Thu Feb 13, 2014 10:43 am
by vhoover
I have an executive that wants to see a report of scheduled downtime history, and in that report they wish to see who and when it was scheduled, so they can match it up with the requests for changes to the production environment. How would I go about this? I have looked through every report option nagios contains (built-in) and through the exchange (http://exchange.nagios.org/directory) to find no way to go about this.

Re: Scheduled downtime report

Posted: Thu Feb 13, 2014 10:58 am
by slansing
Hmm, we do not currently have the ability to do this. What you could do, (and this is ugly) is if you have Enterprise edition you could schedule the Scheduled Downtime page as a recurring report. You would use the button shown below in the top right of the blue menu bar to do it.
Capture.PNG

Re: Scheduled downtime report

Posted: Thu Feb 13, 2014 11:02 am
by vhoover
I have seen that and I do have the enterprise edition, but wouldn't that only return information if there are any scheduled downtimes at the time the report kicks off?

Re: Scheduled downtime report

Posted: Thu Feb 13, 2014 11:16 am
by slansing
Correct, it would only be current downtime that is planned to be set in the future, or if used in the Recurring downtime section, it would show all recurring downtime. This can also be pulled from the nagios log by grepping for downtime:

Code: Select all

[1392307970] HOST DOWNTIME ALERT: localhost;STARTED; Host has entered a period of scheduled downtime
Though, that would not be pulled in a report in the web interface, unless you created one to pull that information into a report.

Re: Scheduled downtime report

Posted: Thu Feb 13, 2014 11:32 am
by vhoover
Unfortunately that will not work for me, thank you anyways though, I have placed a feature request in Mantis (http://tracker.nagios.com/view.php?id=501).

Re: Scheduled downtime report

Posted: Thu Feb 13, 2014 11:43 am
by abrist
You can get a list of previous scheduled downtimes in the event log. Go to Home --> event log --> set your timeframe and then search for 'DOWNTIME'.

Re: Scheduled downtime report

Posted: Thu Feb 13, 2014 12:59 pm
by vhoover
Yes thank you, however it does not state who or what the comment was for the scheduled downtime.

Re: Scheduled downtime report

Posted: Thu Feb 13, 2014 1:13 pm
by abrist
It should. For example, I ran a test of downtime with a comment. The event log shows:
Scheduled Downtime Start2014-02-13 10:11:36HOST DOWNTIME ALERT: localhost;STARTED; Host has entered a period of scheduled downtime
External Command2014-02-13 10:11:36EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;localhost;1392315063;1392322263;1;0;7200;Nagios Administrator;This is my comment

Re: Scheduled downtime report

Posted: Thu Feb 13, 2014 2:03 pm
by vhoover
How are you getting it then because all I see in addition to who was notified is:
2014-02-12 11:00:00HOST DOWNTIME ALERT: host01;STARTED; Host has entered a period of scheduled downtime

Re: Scheduled downtime report

Posted: Thu Feb 13, 2014 2:43 pm
by abrist
Are you configuring recurring downtime, or just a one-off scheduled downtime?