OP#436 start cgi.cfg

This commit is contained in:
2026-03-07 15:39:36 +01:00
parent 8d9a62a3a1
commit 3dca6fa347
3 changed files with 389 additions and 86 deletions

View File

@@ -336,6 +336,34 @@
# 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'.
# @param [String] ng_context_help Whether to enable context-sensitive
# help in Nagios. Default is '1'.
# @param [String] ng_pending_states Whether to use pending states in Nagios.
# Default is '1'.
# @param [String] ng_use_auth Whether to use authentication in Nagios.
# Default is '1'.
# @param [String] ng_use_ssl_auth Whether to use SSL authentication in Nagios.
# Default is '0'.
# @param [Boolean] ng_enable_def_user Whether to enable the default user in
# Nagios. Default is false.
# @param [String] ng_def_user_name The name of the default user in Nagios.
# Change to a suitable value.
# @param [String] ng_sysinfo_auth Additional username for the sysinfo
# authentication in Nagios. Choose a suitable value or leave empty
# @param [String] ng_confinfo_auth Additional username for the confinfo
# authentication in Nagios. Choose a suitable value or leave empty
# @param [String] ng_command_auth Additional username for the command
# authentication in Nagios. Choose a suitable value or leave empty
# @param [String] ng_hostview_auth Additional username for the host view
# authentication in Nagios. Choose a suitable value or leave empty
# @param [String] ng_serviceview_auth Additional username for the service view
# authentication in Nagios. Choose a suitable value or leave empty
# @param [String] ng_host_cmd_auth Additional username for the host command
# authentication in Nagios. Choose a suitable value or leave empty
# @param [String] ng_svc_cmd_auth Additional username for the service command
# authentication in Nagios. Choose a suitable value or leave empty
# @param [String] ng_readonly_auth Additional username for the read-only
# authentication in Nagios. Choose a suitable value or leave empty
################################################################################
class confdroid_nagios::params (
@@ -488,45 +516,59 @@ class confdroid_nagios::params (
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',
String $ng_load_ctl_options = 'jobs_max=100;backoff_limit=10;rampup_change=5',
# cgi.cfg
String $ng_context_help = '1',
String $ng_context_help = '1',
String $ng_pending_states = '1',
String $ng_use_auth = '1',
String $ng_use_ssl_auth = '0',
Boolean $ng_enable_def_user = false,
String $ng_def_user_name = 'ChangeME',
String $ng_sysinfo_auth = '',
String $ng_confinfo_auth = '',
String $ng_command_auth = '',
String $ng_hostview_auth = '',
String $ng_serviceview_auth = '',
String $ng_host_cmd_auth = '',
String $ng_svc_cmd_auth = '',
String $ng_readonly_auth = '' ,
# httpd
Boolean $ng_use_https = false,
Boolean $ng_use_https = false,
# check command parameters
## ping
String $ng_ping_warn = '100.0,20%',
String $ng_ping_crit = '500.0,60%',
String $ng_ping_ensure = 'present',
String $ng_ping_warn = '100.0,20%',
String $ng_ping_crit = '500.0,60%',
String $ng_ping_ensure = 'present',
## disk
String $ng_disk_warn = '20%',
String $ng_disk_crit = '10%' ,
String $ng_disk_ensure = 'present',
String $ng_disk_warn = '20%',
String $ng_disk_crit = '10%' ,
String $ng_disk_ensure = 'present',
# swap
String $ng_swap_warn = '20',
String $ng_swap_crit = '10',
String $ng_swap_ensure = 'present',
String $ng_swap_warn = '20',
String $ng_swap_crit = '10',
String $ng_swap_ensure = 'present',
# users
String $ng_users_warn = '20',
String $ng_users_crit = '50',
String $ng_users_ensure = 'present',
String $ng_users_warn = '20',
String $ng_users_crit = '50',
String $ng_users_ensure = 'present',
#total procs
String $ng_procs_tot_warn = '330',
String $ng_procs_tot_crit = '400',
String $ng_procs_tot_param = 'RDST',
String $ng_procs_tot_ens = 'present',
String $ng_procs_tot_warn = '330',
String $ng_procs_tot_crit = '400',
String $ng_procs_tot_param = 'RDST',
String $ng_procs_tot_ensure = 'present',
# zombie procs
String $ng_procs_z_warn = '10',
String $ng_procs_z_crit = '30',
String $ng_procs_z_param = 'Z',
String $ng_procs_z_ensure = 'present',
String $ng_procs_z_warn = '10',
String $ng_procs_z_crit = '30',
String $ng_procs_z_param = 'Z',
String $ng_procs_z_ensure = 'present',
# load
String $ng_load_warn = '5.00,4.00,3.00',
String $ng_load_crit = '10.00,6.00,4.00',
String $ng_load_ensure = 'present',
String $ng_load_warn = '5.00,4.00,3.00',
String $ng_load_crit = '10.00,6.00,4.00',
String $ng_load_ensure = 'present',
# single nagios checks
Boolean $ng_enable_swap_check = true,