diff options
-rw-r--r-- | debian/changelog | 2 | ||||
-rw-r--r-- | nagios-templates.cfg | 28 |
2 files changed, 30 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 9596ae6..8412a74 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,8 @@ sitesummary (0.0.56) UNRELEASED; urgency=low * Replace Nagios main config file with one based on the current one from Nagios v3 instead of the old one which was based on debian-edu- config. + * Provide more time periods (workhours, nonworkhours, never) for the + Nagios configuration -- Petter Reinholdtsen <pere@debian.org> Tue, 19 Jan 2010 10:07:24 +0100 diff --git a/nagios-templates.cfg b/nagios-templates.cfg index f5826d3..36ab796 100644 --- a/nagios-templates.cfg +++ b/nagios-templates.cfg @@ -10,6 +10,34 @@ define timeperiod { saturday 00:00-24:00 } +define timeperiod { + timeperiod_name workhours + alias Standard Work Hours + monday 09:00-17:00 + tuesday 09:00-17:00 + wednesday 09:00-17:00 + thursday 09:00-17:00 + friday 09:00-17:00 +} + +define timeperiod { + timeperiod_name nonworkhours + alias Non-Work Hours + sunday 00:00-24:00 + monday 00:00-09:00,17:00-24:00 + tuesday 00:00-09:00,17:00-24:00 + wednesday 00:00-09:00,17:00-24:00 + thursday 00:00-09:00,17:00-24:00 + friday 00:00-09:00,17:00-24:00 + saturday 00:00-24:00 +} + +define timeperiod { + timeperiod_name never + alias Never +} + + define command { command_name notify-by-nothing command_line /bin/true |