added parameter documentation
This commit is contained in:
@@ -25,6 +25,9 @@
|
|||||||
# ng_hostgroup_name => 'example_hostgroup',
|
# ng_hostgroup_name => 'example_hostgroup',
|
||||||
# ng_hostgroup_alias => 'Example Hostgroup',
|
# ng_hostgroup_alias => 'Example Hostgroup',
|
||||||
# }
|
# }
|
||||||
|
# @param [string] ng_hostgroup_name Specify the hostgroup short name.
|
||||||
|
# @param [string] ng_hostgroup_alias Specify the hostgroup alias (long name).
|
||||||
|
# @param [string] ng_hostgroup_register Whether to register the hostgroup.
|
||||||
###############################################################################
|
###############################################################################
|
||||||
define cd_nagios::nagios::objects::add_hostgroups (
|
define cd_nagios::nagios::objects::add_hostgroups (
|
||||||
|
|
||||||
|
|||||||
@@ -18,8 +18,8 @@
|
|||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# @summary Class manages /etc/nagios/conf.d/nagios_timeperiods_add.cfg. incl.
|
# @summary Class manages /etc/nagios_conf.d/nagios_timeperiods_add.cfg and
|
||||||
# additional timeperiods via define.
|
# add. hostgroups through external Puppet rules via define.
|
||||||
# cd_nagios::nagios::objects::add_timeperiods { 'example_timeperiod':
|
# cd_nagios::nagios::objects::add_timeperiods { 'example_timeperiod':
|
||||||
# ng_timeperiod_name => 'example_timeperiod',
|
# ng_timeperiod_name => 'example_timeperiod',
|
||||||
# ng_timeperiod_alias => 'Example timeperiod',
|
# ng_timeperiod_alias => 'Example timeperiod',
|
||||||
|
|||||||
@@ -24,6 +24,13 @@
|
|||||||
# cd_nagios::nagios::objects::add_timeperiods { 'example_timeperiod':
|
# cd_nagios::nagios::objects::add_timeperiods { 'example_timeperiod':
|
||||||
# ng_timeperiod_name => 'example_timeperiod',
|
# ng_timeperiod_name => 'example_timeperiod',
|
||||||
# ng_timeperiod_alias => 'Example timeperiod',
|
# ng_timeperiod_alias => 'Example timeperiod',
|
||||||
|
# ng_timep_monday => '00:00-00:00',
|
||||||
|
# ng_timep_tuesday => '00:00-00:00',
|
||||||
|
# ng_timep_wednesday => '00:00-00:00',
|
||||||
|
# ng_timep_thursday => '00:00-00:00',
|
||||||
|
# ng_timep_friday => '00:00-00:00',
|
||||||
|
# ng_timep_saturday => '00:00-00:00',
|
||||||
|
# ng_timep_sunday => '00:00-00:00',
|
||||||
# }
|
# }
|
||||||
# @param [string] ng_timep_name Specify the timeperiod short name.
|
# @param [string] ng_timep_name Specify the timeperiod short name.
|
||||||
# @param [string] ng_timep_alias Specify the timeperiod alias (long name)
|
# @param [string] ng_timep_alias Specify the timeperiod alias (long name)
|
||||||
|
|||||||
@@ -96,7 +96,6 @@
|
|||||||
# @param [string] ng_retry_interval Re-check the service every x minutes
|
# @param [string] ng_retry_interval Re-check the service every x minutes
|
||||||
# until a hard state can be determined.
|
# until a hard state can be determined.
|
||||||
# @param [string] ng_host_check_command the check command for host checks
|
# @param [string] ng_host_check_command the check command for host checks
|
||||||
# @param [string]
|
|
||||||
################################################################################
|
################################################################################
|
||||||
define cd_nagios::nagios::objects::templates (
|
define cd_nagios::nagios::objects::templates (
|
||||||
$ng_template_object = undef,
|
$ng_template_object = undef,
|
||||||
|
|||||||
@@ -892,7 +892,6 @@ $ng_check_workers = '',
|
|||||||
$ng_host_down_svc_checks = '0',
|
$ng_host_down_svc_checks = '0',
|
||||||
$ng_enable_load_ctl_options = false,
|
$ng_enable_load_ctl_options = false,
|
||||||
$ng_loadctl_options = 'jobs_max=100;backoff_limit=10;rampup_change=5',
|
$ng_loadctl_options = 'jobs_max=100;backoff_limit=10;rampup_change=5',
|
||||||
$ng_nagios_service_cmd = 'check_nagios!/var/log/nagios/status.dat!5!/usr/sbin/nagios',
|
|
||||||
|
|
||||||
) {
|
) {
|
||||||
|
|
||||||
@@ -991,7 +990,7 @@ $ng_tgt_contactgroup_add = "${ng_conf_d_dir}/nagios_contactgroup_add.cfg"
|
|||||||
$ng_cntctgrps_head_erb = 'cd_nagios/nagios/contactgroups_cfg_head.erb'
|
$ng_cntctgrps_head_erb = 'cd_nagios/nagios/contactgroups_cfg_head.erb'
|
||||||
$ng_cntctgrps_rule_erb = 'cd_nagios/nagios/contactgroups_cfg_rule.erb'
|
$ng_cntctgrps_rule_erb = 'cd_nagios/nagios/contactgroups_cfg_rule.erb'
|
||||||
$ng_target_command = "${ng_conf_d_dir}/nagios_commands_base.cfg"
|
$ng_target_command = "${ng_conf_d_dir}/nagios_commands_base.cfg"
|
||||||
|
$ng_nagios_service_cmd = 'check_nagios!/var/log/nagios/status.dat!5!/usr/sbin/nagios',
|
||||||
|
|
||||||
# includes must be last
|
# includes must be last
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user