OP#436 finish nagios.cfg

This commit is contained in:
2026-03-07 15:01:06 +01:00
parent 69fec002be
commit c9acdb87e0
2 changed files with 107 additions and 284 deletions

View File

@@ -287,6 +287,55 @@
# Nagios. Default is '5.0'.
# @param [String] ng_high_h_flap_threshold The high host flap threshold for
# Nagios. Default is '20.0'.
# @param [String] ng_date_format The date format for Nagios. Default is 'euro'.
# @param [Boolean] ng_use_timezone_offset Whether to use timezone offset in
# Nagios. Default is false.
# @param [String] ng_use_timezone The timezone to use in Nagios if timezone
# offset is enabled. Default is 'UTC'.
# @param [String] ng_illegal_obj_name_chars A string of characters that are not
# allowed in object names in Nagios. Default is '~!$%^&*|\'"<>?,()='.
# @param [String] ng_ill_macro_output_chars A string of characters that are not
# allowed in macro output in Nagios. Default is '`~$&|\'"<>?,()='.
# @param [String] ng_use_regexp_matching Whether to use regular expression
# matching in Nagios. Default is '0'.
# @param [String] ng_true_regexp_matching Whether to use true regular expression
# matching in Nagios. Default is '0'.
# @param [String] ng_mail_user The email address for the Nagios administrator.
# Default is 'nagios@localhost'.
# @param [String] ng_page_user The pager address for the Nagios administrator.
# Default is 'nagios@localhost'.
# @param [String] ng_daemon_dumps_core Whether to allow the Nagios daemon to dump
# core files. Default is '0'.
# @param [String] ng_use_large_inst_tweaks Whether to use large instance tweaks
# in Nagios. Default is '0'.
# @param [String] ng_enable_env_macros Whether to enable environment macros in
# Nagios. Default is '0'.
# @param [String] ng_free_child_process_mem Whether to free child process memory
# after processing checks in Nagios. Default is '1'.
# @param [String] ng_child_proc_fork_twice Whether to fork child processes twice
# in Nagios. Default is '1'.
# @param [String] ng_debug_level The debug level for Nagios. Default is '0'.
# @param [String] ng_debug_verbosity The debug verbosity for Nagios. Default is '1'.
# @param [String] ng_max_debug_file_size The maximum debug file size for Nagios.
# Default is '1000000'.
# @param [String] ng_allow_empty_hostgroups Whether to allow empty hostgroup
# assignments in Nagios. Default is '1'.
# @param [String] ng_check_workers The number of check worker processes for Nagios.
# Default is '3'.
# @param [String] ng_host_down_svc_checks Whether to disable service checks when
# a host is down in Nagios. Default is '0'.
# @param [String] ng_svc_skip_chk_dep_status The status to skip for dependency checks
# in Nagios. Default is '-1'.
# @param [String] ng_svc_skip_chk_par_status The status to skip for parent checks
# in Nagios. Default is '-1'.
# @param [String] ng_svc_skip_chk_par_h_d_sts The status to skip for parent
# host down checks in Nagios. Default is '-1'.
# @param [String] ng_host_skip_chk_dep_status The status to skip for host
# dependency checks in Nagios. Default is '-1'.
# @param [Boolean] ng_enable_load_ctl_options Whether to enable load control
# options in Nagios. Default is false.
# @param [String] ng_load_ctl_options The load control options for Nagios.
# Default is 'jobs_max=100;backoff_limit=10;rampup_change=5'.
################################################################################
class confdroid_nagios::params (
@@ -414,6 +463,32 @@ class confdroid_nagios::params (
String $ng_high_svc_flap_threshold = '20.0',
String $ng_low_h_flap_threshold = '5.0',
String $ng_high_h_flap_threshold = '20.0',
String $ng_date_format = 'euro',
Boolean $ng_use_timezone_offset = false,
String $ng_use_timezone = 'UTC',
String $ng_illegal_obj_name_chars = '~!$%^&*|\'"<>?,()=',
String $ng_ill_macro_output_chars = '`~$&|\'"<>',
String $ng_use_regexp_matching = '0',
String $ng_true_regexp_matching = '0',
String $ng_mail_user = 'nagios@localhost',
String $ng_page_user = 'nagios@localhost',
String $ng_daemon_dumps_core = '0',
String $ng_use_large_inst_tweaks = '0',
String $ng_enable_env_macros = '0',
String $ng_free_child_process_mem = '1',
String $ng_child_proc_fork_twice = '1',
String $ng_debug_level = '0',
String $ng_debug_verbosity = '1',
String $ng_max_debug_file_size = '1000000',
String $ng_allow_empty_hostgroups = '1',
String $ng_check_workers = '3',
String $ng_host_down_svc_checks = '0',
String $ng_svc_skip_chk_dep_status = '-1',
String $ng_svc_skip_chk_par_status = '-1',
String $ng_svc_skip_chk_par_h_d_sts = '-1',
String $ng_host_skip_chk_dep_status = '-1',
Boolean $ng_enable_load_ctl_options = false,
String $ng_load_ctl_options = 'jobs_max=100;backoff_limit=10;rampup_change=5',
# cgi.cfg
String $ng_context_help = '1',
@@ -536,6 +611,7 @@ class confdroid_nagios::params (
$ng_state_retention_file = "${ng_spool_dir}/retention.dat"
$ng_host_perfdata_file = "${ng_log_dir}/host-perfdata"
$ng_svc_perfdata_file = "${ng_log_dir}/service-perfdata"
$ng_debug_file = "${ng_log_dir}/nagios.debug"
## old
# $ng_taccgi_erb = 'confdroid_nagios/selinux/taccgi.erb'