From 1b1a8a2585d1714e3453e149d124aef1d7b38b87 Mon Sep 17 00:00:00 2001 From: 12ww1160 <12ww1160@confdroid.com> Date: Mon, 2 Mar 2026 00:08:55 +0100 Subject: [PATCH] OP#436 add timeperiods --- manifests/nagios/objects/add_timeperiod_rules.pp | 13 +++++++++++++ manifests/params.pp | 2 ++ 2 files changed, 15 insertions(+) diff --git a/manifests/nagios/objects/add_timeperiod_rules.pp b/manifests/nagios/objects/add_timeperiod_rules.pp index 1503d74..07ee596 100644 --- a/manifests/nagios/objects/add_timeperiod_rules.pp +++ b/manifests/nagios/objects/add_timeperiod_rules.pp @@ -41,5 +41,18 @@ class confdroid_nagios::nagios::objects::add_timeperiod_rules ( content => template($ng_tgt_timep_head_erb), order => '000', } + + # default timeperiod rule 24x7 + confdroid_nagios::nagios::objects::add_timeperiods { '24x7': + ng_timeperiod_name => '24x7', + ng_timeperiod_alias => '24x7', + ng_timep_monday => '00:00-24:00', + ng_timep_tuesday => '00:00-24:00', + ng_timep_wednesday => '00:00-24:00', + ng_timep_thursday => '00:00-24:00', + ng_timep_friday => '00:00-24:00', + ng_timep_saturday => '00:00-24:00', + ng_timep_sunday => '00:00-24:00', + } } } diff --git a/manifests/params.pp b/manifests/params.pp index 4636cff..222551a 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -101,6 +101,8 @@ # Default is 'nagios'. # @param [Boolean] ng_enable_target Whether to enable the generation of host and # service configuration files for the Nagios server. Default is true. +# @param [String] ng_contactgroup_members The members of the default contact +# group. Default is 'nagiosadmin'. ############################################################################### class confdroid_nagios::params (