diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2010-01-19 09:11:37 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2010-01-19 09:11:37 +0000 |
commit | 8c4919e83635d06ffb55566f213bf06f96176aef (patch) | |
tree | f030bbf8e97a700e74408d90dbdf002102bd2595 | |
parent | 6a55cce816189f2ca39462a89b396a559cbc09da (diff) | |
download | sitesummary-8c4919e83635d06ffb55566f213bf06f96176aef.tar.gz sitesummary-8c4919e83635d06ffb55566f213bf06f96176aef.tar.bz2 sitesummary-8c4919e83635d06ffb55566f213bf06f96176aef.tar.xz |
Provide more time periods (workhours, nonworkhours, never) for the
Nagios configuration
-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 |