From: Peter Palfrader Date: Wed, 19 Dec 2012 12:34:24 +0000 (+0100) Subject: objects->conf.d X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=7a3d44e17da3ed689de02cda809e07da55a713b1;p=mirror%2Fdsa-nagios.git objects->conf.d --- diff --git a/config/static/conf.d/contacts.cfg b/config/static/conf.d/contacts.cfg deleted file mode 100644 index 13697cb..0000000 --- a/config/static/conf.d/contacts.cfg +++ /dev/null @@ -1,248 +0,0 @@ -############################################################################# -## THIS FILE IS COPIED TO THE FINAL LOCATION USING PUPPET -## ITS AUTHORITATIVE HOME IS THE DSA-NAGIOS CONFIGURATION GIT -############################################################################# -define contact{ - contact_name weasel - alias Peter Palfrader - service_notification_period 24x7 - host_notification_period 24x7 - service_notification_options w,u,c,r - host_notification_options d,r - service_notification_commands notify-service-by-email - host_notification_commands notify-host-by-email - email debian-nagios@palfrader.org - } - -define contact{ - contact_name joerg - alias Joerg Jaspert - service_notification_period 24x7 - host_notification_period 24x7 - service_notification_options w,u,c,r - host_notification_options d,r - service_notification_commands notify-service-by-email - host_notification_commands notify-host-by-email - email debiannagios@ganneff.de - } - -define contact{ - contact_name tjrc1 - alias Tim Cutts - service_notification_period 24x7 - host_notification_period 24x7 - service_notification_options w,u,c,r - host_notification_options d,r - service_notification_commands notify-service-by-email - host_notification_commands notify-host-by-email - email tjrc@sanger.ac.uk - } - -define contact{ - contact_name dave - alias Dave Holland - service_notification_period 24x7 - host_notification_period 24x7 - service_notification_options w,u,c,r - host_notification_options d,r - service_notification_commands notify-service-by-email - host_notification_commands notify-host-by-email - email dh3@sanger.ac.uk - } - -define contact{ - contact_name holger - alias Holger Levsen - service_notification_period 24x7 - host_notification_period 24x7 - service_notification_options w,u,c,r - host_notification_options d,r - service_notification_commands notify-service-by-email - host_notification_commands notify-host-by-email - email holger@layer-acht.org - } - -define contact{ - contact_name dannf - alias Dann Frazier - service_notification_period 24x7 - host_notification_period 24x7 - service_notification_options w,u,c,r - host_notification_options d,r - service_notification_commands notify-service-by-email - host_notification_commands notify-host-by-email - email dannf@dannf.org - } - -define contact{ - contact_name bzed - alias Bernd Zeimetz - service_notification_period 24x7 - host_notification_period 24x7 - service_notification_options w,u,c,r - host_notification_options d,r - service_notification_commands notify-service-by-email - host_notification_commands notify-host-by-email - email bernd+debnagios@bzed.de - } - -define contact{ - contact_name luk - alias Luk Claes - service_notification_period 24x7 - host_notification_period 24x7 - service_notification_options w,u,c,r - host_notification_options d,r - service_notification_commands notify-service-by-email - host_notification_commands notify-host-by-email - email luk.claes@ugent.be - } - -define contact{ - contact_name sfrost - alias Stephen Frost - service_notification_period 24x7 - host_notification_period 24x7 - service_notification_options w,u,c,r - host_notification_options d,r - service_notification_commands notify-service-by-email - host_notification_commands notify-host-by-email - email sfrost@snowman.net - } - -define contact{ - contact_name lfilipoz - alias Luca Filipozzi - service_notification_period 24x7 - host_notification_period 24x7 - service_notification_options w,u,c,r - host_notification_options d,r - service_notification_commands notify-service-by-email - host_notification_commands notify-host-by-email - email lfilipoz@emyr.net - } - -define contact{ - contact_name zobel - alias Martin Zobel-Helas - service_notification_period 24x7 - host_notification_period 24x7 - service_notification_options w,u,c,r - host_notification_options d,r - service_notification_commands notify-service-by-email - host_notification_commands notify-host-by-email - email zobel+debian-nagios@ftbfs.de - } -define contact{ - contact_name pkern - alias Philip Kern - service_notification_period 24x7 - host_notification_period 24x7 - service_notification_options w,u,c,r - host_notification_options d,r - service_notification_commands notify-service-by-email - host_notification_commands notify-host-by-email - email pkern@debian.org - } -define contact{ - contact_name HE - alias Marc Brockschmidt - service_notification_period 24x7 - host_notification_period 24x7 - service_notification_options w,u,c,r - host_notification_options d,r - service_notification_commands notify-service-by-email - host_notification_commands notify-host-by-email - email he@debian.org - } -define contact{ - contact_name sgran - alias Stephen Gran - service_notification_period never - host_notification_period never - service_notification_options n - host_notification_options n - service_notification_commands notify-service-by-email - host_notification_commands notify-host-by-email - email steve@lobefin.net - } -define contact{ - contact_name faw - alias Felipe Augusto van de Wiel - service_notification_period 24x7 - host_notification_period 24x7 - service_notification_options w,u,c,r - host_notification_options d,r - service_notification_commands notify-service-by-email - host_notification_commands notify-host-by-email - email faw@debian.org - } -define contact{ - contact_name tfheen - alias Tollef Fog Heen - service_notification_period never - host_notification_period never - service_notification_options n - host_notification_options n - service_notification_commands notify-service-by-email - host_notification_commands notify-host-by-email - email tfheen@debian.org - } -define contact{ - contact_name paravoid - alias Faidon Liambotis - service_notification_period never - host_notification_period never - service_notification_options n - host_notification_options n - service_notification_commands notify-service-by-email - host_notification_commands notify-host-by-email - email paravoid@debian.org - } -define contact{ - contact_name alioth-nsa - alias IRC bot for alioth notifications - service_notification_period 24x7 - host_notification_period 24x7 - service_notification_options w,u,c,r - host_notification_options d,r - service_notification_commands notify-service-by-email - host_notification_commands notify-host-by-email - email alioth-nagios@commit.noreply.org - } - - -############################################################################### -############################################################################### -# -# CONTACT GROUPS -# -############################################################################### -############################################################################### - -# We only have one contact in this simple configuration file, so there is -# no need to create more than one contact group. - -define contactgroup{ - contactgroup_name dsa - alias Debian System Administrators - members weasel, zobel, sgran, paravoid, tfheen, lfilipoz - } - -define contactgroup{ - contactgroup_name buildd - alias Debian Buildd Admins - members luk, pkern, HE - } - -define contactgroup{ - contactgroup_name gobby - alias Debian gobby Admins - members pkern -} - -define contactgroup{ - contactgroup_name alioth-admins - alias Debian Alioth admins - members sgran, tfheen, alioth-nsa - } diff --git a/config/static/conf.d/generic-host.cfg b/config/static/conf.d/generic-host.cfg deleted file mode 100644 index 0302c8b..0000000 --- a/config/static/conf.d/generic-host.cfg +++ /dev/null @@ -1,23 +0,0 @@ -############################################################################# -## THIS FILE IS COPIED TO THE FINAL LOCATION USING PUPPET -## ITS AUTHORITATIVE HOME IS THE DSA-NAGIOS CONFIGURATION GIT -############################################################################# -# Generic host definition template - This is NOT a real host, just a template! - -define host{ - name generic-host ; The name of this host template - notifications_enabled 1 ; Host notifications are enabled - event_handler_enabled 1 ; Host event handler is enabled - flap_detection_enabled 1 ; Flap detection is enabled - failure_prediction_enabled 1 ; Failure prediction is enabled - process_perf_data 1 ; Process performance data - retain_status_information 1 ; Retain status information across program restarts - retain_nonstatus_information 1 ; Retain non-status information across program restarts - #check_command check-host-alive - max_check_attempts 10 - notification_interval 1440 - notification_period 24x7 - notification_options d,u,r - contact_groups dsa - register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! - } diff --git a/config/static/conf.d/generic-service.cfg b/config/static/conf.d/generic-service.cfg deleted file mode 100644 index 93ec6c9..0000000 --- a/config/static/conf.d/generic-service.cfg +++ /dev/null @@ -1,31 +0,0 @@ -############################################################################# -## THIS FILE IS COPIED TO THE FINAL LOCATION USING PUPPET -## ITS AUTHORITATIVE HOME IS THE DSA-NAGIOS CONFIGURATION GIT -############################################################################# -# generic service template definition -define service{ - name generic-service ; The 'name' of this service template - active_checks_enabled 1 ; Active service checks are enabled - passive_checks_enabled 1 ; Passive service checks are enabled/accepted - parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) - obsess_over_service 1 ; We should obsess over this service (if necessary) - check_freshness 0 ; Default is to NOT check service 'freshness' - notifications_enabled 1 ; Service notifications are enabled - event_handler_enabled 1 ; Service event handler is enabled - flap_detection_enabled 1 ; Flap detection is enabled - failure_prediction_enabled 1 ; Failure prediction is enabled - process_perf_data 1 ; Process performance data - retain_status_information 1 ; Retain status information across program restarts - retain_nonstatus_information 1 ; Retain non-status information across program restarts - ; notification_interval 0 ; Only send notifications on status change by default. - notification_interval 300 - is_volatile 0 - check_period 24x7 - normal_check_interval 15 - retry_check_interval 2 - max_check_attempts 6 - notification_period 24x7 - notification_options w,u,c,r - contact_groups dsa - register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! - } diff --git a/config/static/conf.d/timeperiods.cfg b/config/static/conf.d/timeperiods.cfg deleted file mode 100644 index 2d269b9..0000000 --- a/config/static/conf.d/timeperiods.cfg +++ /dev/null @@ -1,28 +0,0 @@ -############################################################################# -## THIS FILE IS COPIED TO THE FINAL LOCATION USING PUPPET -## ITS AUTHORITATIVE HOME IS THE DSA-NAGIOS CONFIGURATION GIT -############################################################################# -############################################################################### -# timeperiods.cfg -############################################################################### - -# This defines a timeperiod where all times are valid for checks, -# notifications, etc. The classic "24x7" support nightmare. :-) - -define timeperiod{ - timeperiod_name 24x7 - alias 24 Hours A Day, 7 Days A Week - sunday 00:00-24:00 - monday 00:00-24:00 - tuesday 00:00-24:00 - wednesday 00:00-24:00 - thursday 00:00-24:00 - friday 00:00-24:00 - saturday 00:00-24:00 - } - -# This one is a favorite: never :) -define timeperiod{ - timeperiod_name never - alias Never - } diff --git a/config/static/objects/contacts.cfg b/config/static/objects/contacts.cfg new file mode 100644 index 0000000..13697cb --- /dev/null +++ b/config/static/objects/contacts.cfg @@ -0,0 +1,248 @@ +############################################################################# +## THIS FILE IS COPIED TO THE FINAL LOCATION USING PUPPET +## ITS AUTHORITATIVE HOME IS THE DSA-NAGIOS CONFIGURATION GIT +############################################################################# +define contact{ + contact_name weasel + alias Peter Palfrader + service_notification_period 24x7 + host_notification_period 24x7 + service_notification_options w,u,c,r + host_notification_options d,r + service_notification_commands notify-service-by-email + host_notification_commands notify-host-by-email + email debian-nagios@palfrader.org + } + +define contact{ + contact_name joerg + alias Joerg Jaspert + service_notification_period 24x7 + host_notification_period 24x7 + service_notification_options w,u,c,r + host_notification_options d,r + service_notification_commands notify-service-by-email + host_notification_commands notify-host-by-email + email debiannagios@ganneff.de + } + +define contact{ + contact_name tjrc1 + alias Tim Cutts + service_notification_period 24x7 + host_notification_period 24x7 + service_notification_options w,u,c,r + host_notification_options d,r + service_notification_commands notify-service-by-email + host_notification_commands notify-host-by-email + email tjrc@sanger.ac.uk + } + +define contact{ + contact_name dave + alias Dave Holland + service_notification_period 24x7 + host_notification_period 24x7 + service_notification_options w,u,c,r + host_notification_options d,r + service_notification_commands notify-service-by-email + host_notification_commands notify-host-by-email + email dh3@sanger.ac.uk + } + +define contact{ + contact_name holger + alias Holger Levsen + service_notification_period 24x7 + host_notification_period 24x7 + service_notification_options w,u,c,r + host_notification_options d,r + service_notification_commands notify-service-by-email + host_notification_commands notify-host-by-email + email holger@layer-acht.org + } + +define contact{ + contact_name dannf + alias Dann Frazier + service_notification_period 24x7 + host_notification_period 24x7 + service_notification_options w,u,c,r + host_notification_options d,r + service_notification_commands notify-service-by-email + host_notification_commands notify-host-by-email + email dannf@dannf.org + } + +define contact{ + contact_name bzed + alias Bernd Zeimetz + service_notification_period 24x7 + host_notification_period 24x7 + service_notification_options w,u,c,r + host_notification_options d,r + service_notification_commands notify-service-by-email + host_notification_commands notify-host-by-email + email bernd+debnagios@bzed.de + } + +define contact{ + contact_name luk + alias Luk Claes + service_notification_period 24x7 + host_notification_period 24x7 + service_notification_options w,u,c,r + host_notification_options d,r + service_notification_commands notify-service-by-email + host_notification_commands notify-host-by-email + email luk.claes@ugent.be + } + +define contact{ + contact_name sfrost + alias Stephen Frost + service_notification_period 24x7 + host_notification_period 24x7 + service_notification_options w,u,c,r + host_notification_options d,r + service_notification_commands notify-service-by-email + host_notification_commands notify-host-by-email + email sfrost@snowman.net + } + +define contact{ + contact_name lfilipoz + alias Luca Filipozzi + service_notification_period 24x7 + host_notification_period 24x7 + service_notification_options w,u,c,r + host_notification_options d,r + service_notification_commands notify-service-by-email + host_notification_commands notify-host-by-email + email lfilipoz@emyr.net + } + +define contact{ + contact_name zobel + alias Martin Zobel-Helas + service_notification_period 24x7 + host_notification_period 24x7 + service_notification_options w,u,c,r + host_notification_options d,r + service_notification_commands notify-service-by-email + host_notification_commands notify-host-by-email + email zobel+debian-nagios@ftbfs.de + } +define contact{ + contact_name pkern + alias Philip Kern + service_notification_period 24x7 + host_notification_period 24x7 + service_notification_options w,u,c,r + host_notification_options d,r + service_notification_commands notify-service-by-email + host_notification_commands notify-host-by-email + email pkern@debian.org + } +define contact{ + contact_name HE + alias Marc Brockschmidt + service_notification_period 24x7 + host_notification_period 24x7 + service_notification_options w,u,c,r + host_notification_options d,r + service_notification_commands notify-service-by-email + host_notification_commands notify-host-by-email + email he@debian.org + } +define contact{ + contact_name sgran + alias Stephen Gran + service_notification_period never + host_notification_period never + service_notification_options n + host_notification_options n + service_notification_commands notify-service-by-email + host_notification_commands notify-host-by-email + email steve@lobefin.net + } +define contact{ + contact_name faw + alias Felipe Augusto van de Wiel + service_notification_period 24x7 + host_notification_period 24x7 + service_notification_options w,u,c,r + host_notification_options d,r + service_notification_commands notify-service-by-email + host_notification_commands notify-host-by-email + email faw@debian.org + } +define contact{ + contact_name tfheen + alias Tollef Fog Heen + service_notification_period never + host_notification_period never + service_notification_options n + host_notification_options n + service_notification_commands notify-service-by-email + host_notification_commands notify-host-by-email + email tfheen@debian.org + } +define contact{ + contact_name paravoid + alias Faidon Liambotis + service_notification_period never + host_notification_period never + service_notification_options n + host_notification_options n + service_notification_commands notify-service-by-email + host_notification_commands notify-host-by-email + email paravoid@debian.org + } +define contact{ + contact_name alioth-nsa + alias IRC bot for alioth notifications + service_notification_period 24x7 + host_notification_period 24x7 + service_notification_options w,u,c,r + host_notification_options d,r + service_notification_commands notify-service-by-email + host_notification_commands notify-host-by-email + email alioth-nagios@commit.noreply.org + } + + +############################################################################### +############################################################################### +# +# CONTACT GROUPS +# +############################################################################### +############################################################################### + +# We only have one contact in this simple configuration file, so there is +# no need to create more than one contact group. + +define contactgroup{ + contactgroup_name dsa + alias Debian System Administrators + members weasel, zobel, sgran, paravoid, tfheen, lfilipoz + } + +define contactgroup{ + contactgroup_name buildd + alias Debian Buildd Admins + members luk, pkern, HE + } + +define contactgroup{ + contactgroup_name gobby + alias Debian gobby Admins + members pkern +} + +define contactgroup{ + contactgroup_name alioth-admins + alias Debian Alioth admins + members sgran, tfheen, alioth-nsa + } diff --git a/config/static/objects/generic-host.cfg b/config/static/objects/generic-host.cfg new file mode 100644 index 0000000..0302c8b --- /dev/null +++ b/config/static/objects/generic-host.cfg @@ -0,0 +1,23 @@ +############################################################################# +## THIS FILE IS COPIED TO THE FINAL LOCATION USING PUPPET +## ITS AUTHORITATIVE HOME IS THE DSA-NAGIOS CONFIGURATION GIT +############################################################################# +# Generic host definition template - This is NOT a real host, just a template! + +define host{ + name generic-host ; The name of this host template + notifications_enabled 1 ; Host notifications are enabled + event_handler_enabled 1 ; Host event handler is enabled + flap_detection_enabled 1 ; Flap detection is enabled + failure_prediction_enabled 1 ; Failure prediction is enabled + process_perf_data 1 ; Process performance data + retain_status_information 1 ; Retain status information across program restarts + retain_nonstatus_information 1 ; Retain non-status information across program restarts + #check_command check-host-alive + max_check_attempts 10 + notification_interval 1440 + notification_period 24x7 + notification_options d,u,r + contact_groups dsa + register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! + } diff --git a/config/static/objects/generic-service.cfg b/config/static/objects/generic-service.cfg new file mode 100644 index 0000000..93ec6c9 --- /dev/null +++ b/config/static/objects/generic-service.cfg @@ -0,0 +1,31 @@ +############################################################################# +## THIS FILE IS COPIED TO THE FINAL LOCATION USING PUPPET +## ITS AUTHORITATIVE HOME IS THE DSA-NAGIOS CONFIGURATION GIT +############################################################################# +# generic service template definition +define service{ + name generic-service ; The 'name' of this service template + active_checks_enabled 1 ; Active service checks are enabled + passive_checks_enabled 1 ; Passive service checks are enabled/accepted + parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) + obsess_over_service 1 ; We should obsess over this service (if necessary) + check_freshness 0 ; Default is to NOT check service 'freshness' + notifications_enabled 1 ; Service notifications are enabled + event_handler_enabled 1 ; Service event handler is enabled + flap_detection_enabled 1 ; Flap detection is enabled + failure_prediction_enabled 1 ; Failure prediction is enabled + process_perf_data 1 ; Process performance data + retain_status_information 1 ; Retain status information across program restarts + retain_nonstatus_information 1 ; Retain non-status information across program restarts + ; notification_interval 0 ; Only send notifications on status change by default. + notification_interval 300 + is_volatile 0 + check_period 24x7 + normal_check_interval 15 + retry_check_interval 2 + max_check_attempts 6 + notification_period 24x7 + notification_options w,u,c,r + contact_groups dsa + register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! + } diff --git a/config/static/objects/timeperiods.cfg b/config/static/objects/timeperiods.cfg new file mode 100644 index 0000000..2d269b9 --- /dev/null +++ b/config/static/objects/timeperiods.cfg @@ -0,0 +1,28 @@ +############################################################################# +## THIS FILE IS COPIED TO THE FINAL LOCATION USING PUPPET +## ITS AUTHORITATIVE HOME IS THE DSA-NAGIOS CONFIGURATION GIT +############################################################################# +############################################################################### +# timeperiods.cfg +############################################################################### + +# This defines a timeperiod where all times are valid for checks, +# notifications, etc. The classic "24x7" support nightmare. :-) + +define timeperiod{ + timeperiod_name 24x7 + alias 24 Hours A Day, 7 Days A Week + sunday 00:00-24:00 + monday 00:00-24:00 + tuesday 00:00-24:00 + wednesday 00:00-24:00 + thursday 00:00-24:00 + friday 00:00-24:00 + saturday 00:00-24:00 + } + +# This one is a favorite: never :) +define timeperiod{ + timeperiod_name never + alias Never + }