Scheduled Downtimes

Ralph.Grothe at itdz-berlin.de Ralph.Grothe at itdz-berlin.de
Fri Oct 7 14:43:10 CEST 2005


Hi,

someone else asked today here about how to handle regular
scheduled downtimes.

Since their place, like ours, seemed to have well defined
intervals for maintenance of
different host groups he asked how to avoid always having to
click a link
and fill in a form within the web interface.

Someone replied to him to best define a custom notification
period that
excludes exactly the period of maintenance.

Well, this doesn't look quite feasible for our maintenance
intervals.
Or at least I cannot see how to cover them by usage of the
weekday directives,
because e.g. there is one host group that have their maintenance
every Wednesday
in an even week from 15:00 to 19:00 hrs.
while another only requires every Wednesday of the 1. uneven
week.


Isn't it possible to supply Nagios a custom downtime.dat file
whenever such scheduled downtime is due?

Having clicked one from the web interface for a test host
I found this file in the var directory:



$ cat var/downtime.dat 
########################################
#          NAGIOS DOWNTIME FILE
#
# THIS FILE IS AUTOMATICALLY GENERATED
# BY NAGIOS.  DO NOT MODIFY THIS FILE!
########################################

info {
        created=1128687420
        version=2.0b3
        }

hostdowntime {
        host_name=terra
        downtime_id=1
        entry_time=1128687420
        start_time=1128687265
        end_time=1136617200
        triggered_by=0
        fixed=1
        duration=7929935
        author=nagiosadmin
        comment=snooze
        }




Is there a description of the expected format of such a file,
lingering somewhere well concealed in the docs
(haven't found it yet)?

Is a hostgroup_name a valid directive in this context?

Can there be repeated hostdowntime {} blocks for other hostgroups
in this file to cover different requirements?

Will Nagios look automatically in its var dir before issuing
notifications,
or is there a way to signal it the existence of such a file?


Regards
Ralph








-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list