Puppet Class: confdroid_nagios::params

Summary

Class holds all parameters for the confdroid_nagios module and is inherited by all classes except defines.

Overview

confdroid_nagios::params Module name: confdroid_nagios Author: 12ww1160 (12ww1160@confdroid.com) @param [String] ng_use_ssl_auth Whether to use SSL authentication in Nagios. Default is ‘0’.

Parameters:

  • ng_nagios_server (String) (defaults to: 'nagios.example.net')

    The hostname or IP address of the Nagios server. This will determine the installation selection and the of the clients to connect to the Nagios server.

  • ng_reqpackages_server (Array) (defaults to: ['nagios','nagios-devel'])

    An array of packages to be installed on the Nagios server.

  • ng_reqpackages_client (Array) (defaults to: ['net-snmp-utils','nagios-plugins','nagios-plugins-all','nagios-plugins-nrpe','nagios-common'])

    An array of packages to be installed on the Nagios clients.

  • ng_pkg_ensure (String) (defaults to: 'present')

    The ensure value for all packages. Default is ‘present’.

  • ng_include_nrpe (Boolean) (defaults to: true)

    Whether to include the NRPE client on the Nagios clients. Default is true.

  • ng_use_https (Boolean) (defaults to: false)

    Whether to configure the Nagios web interface to use HTTPS. Default is false. We recommend using a reverse proxy with SSL termination in front of the Nagios web interface, so this is disabled by default.

  • ng_main_user (String) (defaults to: 'nagios')

    The username for the Nagios web interface. Default is $ng_users.

  • ng_main_password (String) (defaults to: 'nagios')

    The encrypted password for the Nagios web interface. Default is $ng_users. Must be properly encrypted using the htpasswd utility.

  • ng_context_help (String) (defaults to: '1')

    Whether to enable the context help in the Nagios web interface. Default is ‘1’.

  • ng_log_file (String) (defaults to: '/var/log/nagios/nagios.log')

    The path to the Nagios log file. Default is ‘/var/log/nagios/nagios.log’.

  • ng_ping_warn (String) (defaults to: '100.0,20%')

    The warning threshold for the check_ping command. Default is ‘100.0,20%’.

  • ng_ping_crit (String) (defaults to: '500.0,60%')

    The critical threshold for the check_ping command. Default is ‘500.0,60%’.

  • ng_ping_ensure (String) (defaults to: 'present')

    The ensure value for the check_ping command. Default is ‘present’.

  • ng_disk_warn (String) (defaults to: '20%')

    The warning threshold for the check_disk command. Default is ‘20%’.

  • ng_disk_crit (String) (defaults to: '10%')

    The critical threshold for the check_disk command. Default is ‘10%’.

  • ng_disk_ensure (String) (defaults to: 'present')

    The ensure value for the check_disk command. Default is ‘present’.

  • ng_swap_warn (String) (defaults to: '20')

    The warning threshold for the check_swap command. Default is ‘20’.

  • ng_swap_crit (String) (defaults to: '10')

    The critical threshold for the check_swap command. Default is ‘10’.

  • ng_swap_ensure (String) (defaults to: 'present')

    The ensure value for the check_swap command. Default is ‘present’.

  • ng_users_warn (String) (defaults to: '20')

    The warning threshold for the check_users command. Default is ‘20’.

  • ng_users_crit (String) (defaults to: '50')

    The critical threshold for the check_users command. Default is ‘50’.

  • ng_users_ensure (String) (defaults to: 'present')

    The ensure value for the check_users command. Default is ‘present’.

  • ng_procs_tot_warn (String) (defaults to: '330')

    The warning threshold for the check_procs command with total processes. Default is ‘330’.

  • ng_procs_tot_crit (String) (defaults to: '400')

    The critical threshold for the check_procs command with total processes. Default is ‘400’.

  • ng_procs_tot_param (String) (defaults to: 'RDST')

    The parameters for the check_procs command with total processes. Default is ‘RDST’.

  • ng_procs_tot_ensure (String) (defaults to: 'present')

    The ensure value for the check_procs command with total processes. Default is ‘present’.

  • ng_procs_z_warn (String) (defaults to: '10')

    The warning threshold for the check_procs command with zombie processes. Default is ‘10’.

  • ng_procs_z_crit (String) (defaults to: '30')

    The critical threshold for the check_procs command with zombie processes. Default is ‘30’.

  • ng_procs_z_param (String) (defaults to: 'Z')

    The parameters for the check_procs command with zombie processes. Default is ‘Z’.

  • ng_procs_z_ensure (String) (defaults to: 'present')

    The ensure value for the check_procs command with zombie processes. Default is ‘present’.

  • ng_load_warn (String) (defaults to: '5.00,4.00,3.00')

    The warning threshold for the check_load command. Default is ‘5.00,4.00,3.00’.

  • ng_load_crit (String) (defaults to: '10.00,6.00,4.00')

    The critical threshold for the check_load command. Default is ‘10.00,6.00,4.00’.

  • ng_load_ensure (String) (defaults to: 'present')

    The ensure value for the check_load command. Default is ‘present’.

  • ng_contactgroup_name (String) (defaults to: 'admins')

    The name of the default contact group. Default is ‘admins’.

  • ng_contactgroup_alias (String) (defaults to: 'Nagios Administrators')

    The alias of the default contact group. Default is ‘Nagios Administrators’.

  • ng_contact_name (String) (defaults to: 'nagiosadmin')

    The name of the default contact. Default is ‘nagiosadmin’.

  • ng_contact_alias (String) (defaults to: 'Nagios Admin')

    The alias of the default contact. Default is ‘Nagios Admin’.

  • ng_contact_groups (String) (defaults to: 'admins')

    The contact groups for the default contact. Default is ‘admins’.

  • ng_contact_email (String) (defaults to: 'nagiosadmin@example.net')

    The email address for the default contact. Default is ‘nagiosadmin@example.net’.

  • ng_hostgroup_name (String) (defaults to: 'linux-servers')

    The name of the default host group. Default is ‘linux-servers’.

  • ng_hostgroup_alias (String) (defaults to: 'Linux Servers')

    The alias of the default host group. Default is ‘Linux Servers’.

  • ng_max_check_attempts (String) (defaults to: '10')

    The maximum number of check attempts before a host or service is considered down. Default is ‘10’.

  • ng_enable_swap_check (Boolean) (defaults to: true)

    Whether to enable the check_swap command. Default is true.

  • ng_status_upd_interval (String) (defaults to: '10')

    The interval in seconds for Nagios to update the status file. Default is ‘10’.

  • ng_check_ext_commands (String) (defaults to: '1')

    Whether to allow external commands to be submitted to Nagios. Default is ‘1’.

  • ng_user (String) (defaults to: 'nagios')

    The user to run the Nagios service as. Default is ‘nagios’.

  • ng_enable_target (Boolean) (defaults to: true)

    Whether to enable the generation of host and service configuration files for the Nagios server. Default is true.

  • ng_contactgroup_members (String) (defaults to: 'nagiosadmin')

    The members of the default contact group. Default is ‘nagiosadmin’.

  • ng_purge_target (Boolean) (defaults to: true)

    Whether to purge unmanaged host and services configuration files. Default is true.

  • ng_event_broker_options (String) (defaults to: '-1')

    The event broker options for Nagios. Default is ‘-1’.

  • ng_enable_query_handler (Boolean) (defaults to: false)

    Whether to enable the Nagios query handler. Default is false.

  • ng_event_broker_module (Array) (defaults to: [])

    The event broker modules for Nagios. Default is [].

  • ng_log_rotation_method (String) (defaults to: 'd')

    The log rotation method for Nagios. Default is ‘d’.

  • ng_use_syslog (String) (defaults to: '1')

    Whether to use syslog for logging in Nagios. Default is ‘1’.

  • ng_log_notifications (String) (defaults to: '1')

    Whether to log notifications in Nagios. Default is ‘1’.

  • ng_log_service_retries (String) (defaults to: '1')

    Whether to log service check retries in Nagios. Default is ‘1’.

  • ng_log_host_retries (String) (defaults to: '1')

    Whether to log host check retries in Nagios. Default is ‘1’.

  • ng_log_event_handlers (String) (defaults to: '1')

    Whether to log event handlers in Nagios. Default is ‘1’.

  • ng_log_initial_states (String) (defaults to: '0')

    Whether to log initial states in Nagios. Default is ‘0’.

  • ng_log_current_states (String) (defaults to: '1')

    Whether to log current states in Nagios. Default is ‘1’.

  • ng_log_external_commands (String) (defaults to: '1')

    Whether to log external commands in Nagios. Default is ‘1’.

  • ng_log_passive_checks (String) (defaults to: '1')

    Whether to log passive checks in Nagios. Default is ‘1’.

  • ng_glob_host_evt_handler (Array) (defaults to: [])

    An array of global host event handlers for Nagios. Default is [].

  • ng_glob_svc_evt_handler (Array) (defaults to: [])

    An array of global service event handlers for Nagios. Default is [].

  • ng_svc_int_check_delay (String) (defaults to: 's')

    The service inter-check delay method for Nagios. Default is ‘s’.

  • ng_max_svc_check_spread (String) (defaults to: '30')

    The maximum service check spread for Nagios. Default is ‘30’.

  • ng_svc_interleave_factor (String) (defaults to: 's')

    The service interleave factor for Nagios. Default is ‘s’.

  • ng_host_int_check_delay (String) (defaults to: 's')

    The host inter-check delay method for Nagios. Default is ‘s’.

  • ng_max_host_check_spread (String) (defaults to: '30')

    The maximum host check spread for Nagios. Default is ‘30’.

  • ng_max_concurrent_checks (String) (defaults to: '0')

    The maximum number of concurrent checks for Nagios. Default is ‘0’.

  • ng_check_res_reaper_freq (String) (defaults to: '10')

    The check result reaper frequency for Nagios. Default is ‘10’.

  • ng_max_check_res_reap_time (String) (defaults to: '30')

    The maximum check result reaper time for Nagios. Default is ‘30’.

  • ng_max_check_res_file_age (String) (defaults to: '3600')

    The maximum check result file age for Nagios. Default is ‘3600’.

  • ng_cached_h_check_horizon (String) (defaults to: '15')

    The cached host check horizon for Nagios. Default is ‘15’.

  • ng_cached_s_check_horizon (String) (defaults to: '15')

    The cached service check horizon for Nagios. Default is ‘15’.

  • ng_pred_host_dep_checks (String) (defaults to: '1')

    Whether to enable predictive host dependency checks in Nagios. Default is ‘1’.

  • ng_pred_svc_dep_checks (String) (defaults to: '1')

    Whether to enable predictive service dependency checks in Nagios. Default is ‘1’.

  • ng_soft_state_dependencies (String) (defaults to: '0')

    Whether to enable soft state dependencies in Nagios. Default is ‘0’.

  • ng_time_change_threshold (String) (defaults to: '900')

    The time change threshold for Nagios. Default is ‘900’.

  • ng_auto_reschedule_checks (String) (defaults to: '1')

    Whether to automatically reschedule checks in Nagios. Default is ‘1’.

  • ng_auto_reschedule_intval (String) (defaults to: '30')

    The interval for automatically rescheduling checks in Nagios. Default is ‘30’.

  • ng_auto_reschedule_window (String) (defaults to: '180')

    The window for automatically rescheduling checks in Nagios. Default is ‘180’.

  • ng_service_check_timeout (String) (defaults to: '60')

    The service check timeout for Nagios. Default is ‘60’.

  • ng_host_check_timeout (String) (defaults to: '30')

    The host check timeout for Nagios. Default is ‘30’.

  • ng_event_handler_timeout (String) (defaults to: '30')

    The event handler timeout for Nagios. Default is ‘30’.

  • ng_notification_timeout (String) (defaults to: '30')

    The notification timeout for Nagios. Default is ‘30’.

  • ng_ocsp_timeout (String) (defaults to: '5')

    The OCSP timeout for Nagios. Default is ‘5’.

  • ng_ochp_timeout (String) (defaults to: '5')

    The OCHP timeout for Nagios. Default is ‘5’.

  • ng_perfdata_timeout (String) (defaults to: '5')

    The performance data timeout for Nagios. Default is ‘5’.

  • ng_retain_state_inf (String) (defaults to: '1')

    Whether to retain state information in Nagios. Default is ‘1’.

  • ng_retention_update_intval (String) (defaults to: '60')

    The retention update interval for Nagios. Default is ‘60’.

  • ng_use_ret_program_state (String) (defaults to: '1')

    Whether to use the retention program state in Nagios. Default is ‘1’.

  • ng_use_ret_scheduling_info (String) (defaults to: '1')

    Whether to use retained scheduling info in Nagios. Default is ‘1’.

  • ng_ret_host_attr_mask (String) (defaults to: '0')

    The retention host attribute mask for Nagios. Default is ‘0’.

  • ng_ret_service_attr_mask (String) (defaults to: '0')

    The retention service attribute mask for Nagios. Default is ‘0’.

  • ng_ret_proc_host_attr_mask (String) (defaults to: '0')

    The retention process host attribute mask for Nagios. Default is ‘0’.

  • ng_ret_proc_svc_attr_mask (String) (defaults to: '0')

    The retention process service attribute mask for Nagios. Default is ‘0’.

  • ng_ret_contact_h_attr_mask (String) (defaults to: '0')

    The retention contact host attribute mask for Nagios. Default is ‘0’.

  • ng_ret_contact_s_attr_mask (String) (defaults to: '0')

    The retention contact service attribute mask for Nagios. Default is ‘0’.

  • ng_interval_length (String) (defaults to: '60')

    The interval length for Nagios. Default is ‘60’.

  • ng_check_for_updates (String) (defaults to: '1')

    Whether to check for updates in Nagios. Default is ‘1’.

  • ng_bare_update_check (String) (defaults to: '1')

    Whether to perform a bare update check in Nagios. Default is ‘1’.

  • ng_use_aggr_host_checking (String) (defaults to: '0')

    Whether to use aggressive host checking in Nagios. Default is ‘0’.

  • ng_execute_service_checks (String) (defaults to: '1')

    Whether to execute service checks in Nagios at initial start. Default is ‘1’.

  • ng_accept_pass_svc_checks (String) (defaults to: '1')

    Whether to accept passive service checks in Nagios. Default is ‘1’.

  • ng_execute_host_checks (String) (defaults to: '1')

    Whether to execute host checks in Nagios at initial start. Default is ‘1’.

  • ng_accept_pass_host_checks (String) (defaults to: '1')

    Whether to accept passive host checks in Nagios. Default is ‘1’.

  • ng_enable_notifications (String) (defaults to: '1')

    Whether to enable notifications in Nagios when it is initially started. Default is ‘1’.

  • ng_enable_event_handlers (String) (defaults to: '1')

    Whether to enable event handlers in Nagios when it is initially started. Default is ‘1’.

  • ng_process_perf_data (String) (defaults to: '0')

    Whether to process performance data in Nagios when it is initially started. Default is ‘0’.

  • ng_host_perfdata_command (String) (defaults to: 'process-host-perfdata')

    The command to process host performance data in Nagios. Default is ‘process-host-perfdata’.

  • ng_svc_perfdata_command (String) (defaults to: 'process-service-perfdata')

    The command to process service performance data in Nagios. Default is ‘process-service-perfdata’.

  • ng_host_perfdata_template (String) (defaults to: '[HOSTPERFDATA]\t$TIMET$\t$HOSTNAME$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$')

    The template for host performance data in Nagios.

  • ng_svc_perfdata_template (String) (defaults to: '[SERVICEPERFDATA]\t$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEEXECUTIONTIME$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$')

    The template for service performance data in Nagios.

  • ng_host_perfdata_file_mode (String) (defaults to: 'a')

    The file mode for host performance data in Nagios. Default is ‘a’.

  • ng_svc_perfdata_file_mode (String) (defaults to: 'a')

    The file mode for service performance data in Nagios. Default is ‘a’.

  • ng_h_perfdata_proc_intval (String) (defaults to: '0')

    The interval for processing host performance data in Nagios. Default is ‘0’.

  • ng_s_perfdata_proc_intval (String) (defaults to: '0')

    The interval for processing service performance data in Nagios. Default is ‘0’.

  • ng_h_perfdata_proc_cmd (String) (defaults to: 'process-host-perfdata')

    The command to process host performance data in Nagios. Default is ‘process-host-perfdata’.

  • ng_s_perfdata_proc_cmd (String) (defaults to: 'process-service-perfdata')

    The command to process service performance data in Nagios. Default is ‘process-service-perfdata’.

  • ng_h_perfdata_proc_e_result (String) (defaults to: '0')

    The expected result for processing host performance data in Nagios. Default is ‘0’.

  • ng_s_perfdata_proc_e_result (String) (defaults to: '0')

    The expected result for processing service performance data in Nagios. Default is ‘0’.

  • ng_obsess_over_services (String) (defaults to: '0')

    Whether to enable obsessing over services in Nagios. Default is ‘0’.

  • ng_ocsp_command (String) (defaults to: 'somecommand')

    The command to run for obsessive compulsive service processing in Nagios. Default is ‘somecommand’.

  • ng_obsess_over_hosts (String) (defaults to: '0')

    Whether to enable obsessing over hosts in Nagios. Default is ‘0’.

  • ng_ochp_command (String) (defaults to: 'somecommand')

    The command to run for obsessive compulsive host processing in Nagios. Default is ‘somecommand’.

  • ng_translate_pass_h_checks (String) (defaults to: '0')

    Whether to translate passive host checks in Nagios. Default is ‘0’.

  • ng_pass_h_checks_are_soft (String) (defaults to: '0')

    Whether to treat passive host checks as soft in Nagios. Default is ‘0’.

  • ng_check_orphaned_svc (String) (defaults to: '1')

    Whether to check for orphaned service checks in Nagios. Default is ‘1’.

  • ng_check_orphaned_hosts (String) (defaults to: '1')

    Whether to check for orphaned host checks in Nagios. Default is ‘1’.

  • ng_check_service_freshness (String) (defaults to: '1')

    Whether to check for service freshness in Nagios. Default is ‘1’.

  • ng_svc_fresh_check_intval (String) (defaults to: '60')

    The interval for checking service freshness in Nagios. Default is ‘60’.

  • ng_svc_check_timeout_state (String) (defaults to: 'c')

    The state to set a service to when it times out in Nagios. Default is ‘c’.

  • ng_check_host_freshness (String) (defaults to: '1')

    Whether to check for host freshness in Nagios. Default is ‘1’.

  • ng_host_fresh_check_intval (String) (defaults to: '60')

    The interval for checking host freshness in Nagios. Default is ‘60’.

  • ng_add_freshness_latency (String) (defaults to: '15')

    The additional latency threshold for freshness checks in Nagios. Default is ‘15’.

  • ng_enable_flap_detection (String) (defaults to: '1')

    Whether to enable flap detection in Nagios. Default is ‘1’.

  • ng_low_svc_flap_threshold (String) (defaults to: '5.0')

    The low service flap threshold for Nagios. Default is ‘5.0’.

  • ng_high_svc_flap_threshold (String) (defaults to: '20.0')

    The high service flap threshold for Nagios. Default is ‘20.0’.

  • ng_low_h_flap_threshold (String) (defaults to: '5.0')

    The low host flap threshold for Nagios. Default is ‘5.0’.

  • ng_high_h_flap_threshold (String) (defaults to: '20.0')

    The high host flap threshold for Nagios. Default is ‘20.0’.

  • ng_date_format (String) (defaults to: 'euro')

    The date format for Nagios. Default is ‘euro’.

  • ng_use_timezone_offset (Boolean) (defaults to: false)

    Whether to use timezone offset in Nagios. Default is false.

  • ng_use_timezone (String) (defaults to: 'UTC')

    The timezone to use in Nagios if timezone offset is enabled. Default is ‘UTC’.

  • ng_illegal_obj_name_chars (String) (defaults to: '~!$%^&*|\'"<>?,()=')

    A string of characters that are not allowed in object names in Nagios. Default is ‘~!$%^&*|'“<>?,()=’.

  • ng_ill_macro_output_chars (String) (defaults to: '`~$&|\'"<>')

    A string of characters that are not allowed in macro output in Nagios. Default is ‘`~$&|'“<>?,()=’.

  • ng_use_regexp_matching (String) (defaults to: '0')

    Whether to use regular expression matching in Nagios. Default is ‘0’.

  • ng_true_regexp_matching (String) (defaults to: '0')

    Whether to use true regular expression matching in Nagios. Default is ‘0’.

  • ng_mail_user (String) (defaults to: 'nagios@localhost')

    The email address for the Nagios administrator. Default is ‘nagios@localhost’.

  • ng_page_user (String) (defaults to: 'nagios@localhost')

    The pager address for the Nagios administrator. Default is ‘nagios@localhost’.

  • ng_daemon_dumps_core (String) (defaults to: '0')

    Whether to allow the Nagios daemon to dump core files. Default is ‘0’.

  • ng_use_large_inst_tweaks (String) (defaults to: '0')

    Whether to use large instance tweaks in Nagios. Default is ‘0’.

  • ng_enable_env_macros (String) (defaults to: '0')

    Whether to enable environment macros in Nagios. Default is ‘0’.

  • ng_free_child_process_mem (String) (defaults to: '1')

    Whether to free child process memory after processing checks in Nagios. Default is ‘1’.

  • ng_child_proc_fork_twice (String) (defaults to: '1')

    Whether to fork child processes twice in Nagios. Default is ‘1’.

  • ng_debug_level (String) (defaults to: '0')

    The debug level for Nagios. Default is ‘0’.

  • ng_debug_verbosity (String) (defaults to: '1')

    The debug verbosity for Nagios. Default is ‘1’.

  • ng_max_debug_file_size (String) (defaults to: '1000000')

    The maximum debug file size for Nagios. Default is ‘1000000’.

  • ng_allow_empty_hostgroups (String) (defaults to: '1')

    Whether to allow empty hostgroup assignments in Nagios. Default is ‘1’.

  • ng_check_workers (String) (defaults to: '3')

    The number of check worker processes for Nagios. Default is ‘3’.

  • ng_host_down_svc_checks (String) (defaults to: '0')

    Whether to disable service checks when a host is down in Nagios. Default is ‘0’.

  • ng_svc_skip_chk_dep_status (String) (defaults to: '-1')

    The status to skip for dependency checks in Nagios. Default is ‘-1’.

  • ng_svc_skip_chk_par_status (String) (defaults to: '-1')

    The status to skip for parent checks in Nagios. Default is ‘-1’.

  • ng_svc_skip_chk_par_h_d_sts (String) (defaults to: '-1')

    The status to skip for parent host down checks in Nagios. Default is ‘-1’.

  • ng_host_skip_chk_dep_status (String) (defaults to: '-1')

    The status to skip for host dependency checks in Nagios. Default is ‘-1’.

  • ng_enable_load_ctl_options (Boolean) (defaults to: false)

    Whether to enable load control options in Nagios. Default is false.

  • ng_load_ctl_options (String) (defaults to: 'jobs_max=100;backoff_limit=10;rampup_change=5')

    The load control options for Nagios. Default is ‘jobs_max=100;backoff_limit=10;rampup_change=5’.

  • ng_pending_states (String) (defaults to: '1')

    Whether to use pending states in Nagios. Default is ‘1’.

  • ng_use_auth (String) (defaults to: '1')

    Whether to use authentication in Nagios. Default is ‘1’.

  • ng_enable_def_user (Boolean) (defaults to: false)

    Whether to enable the default user in Nagios. Default is false.

  • ng_def_user_name (String) (defaults to: 'ChangeME')

    The name of the default user in Nagios. Change to a suitable value.

  • ng_sysinfo_auth (Optional[String]) (defaults to: undef)

    Additional username for the sysinfo authentication in Nagios. Choose a suitable value or leave empty

  • ng_confinfo_auth (Optional[String]) (defaults to: undef)

    Additional username for the confinfo authentication in Nagios. Choose a suitable value or leave empty

  • ng_command_auth (Optional[String]) (defaults to: undef)

    Additional username for the command authentication in Nagios. Choose a suitable value or leave empty

  • ng_hostview_auth (Optional[String]) (defaults to: undef)

    Additional username for the host view authentication in Nagios. Choose a suitable value or leave empty

  • ng_serviceview_auth (Optional[String]) (defaults to: undef)

    Additional username for the service view authentication in Nagios. Choose a suitable value or leave empty

  • ng_host_cmd_auth (Optional[String]) (defaults to: undef)

    Additional username for the host command authentication in Nagios. Choose a suitable value or leave empty

  • ng_svc_cmd_auth (Optional[String]) (defaults to: undef)

    Additional username for the service command authentication in Nagios. Choose a suitable value or leave empty

  • ng_readonly_auth (Optional[String]) (defaults to: undef)

    Additional username for the read-only authentication in Nagios. Choose a suitable value or leave empty

  • ng_use_colormap (Boolean) (defaults to: false)

    Whether to use colormap in Nagios. Default is false.

  • ng_colormap_red (String) (defaults to: '255')

    The color code for red in the colormap for Nagios. Default is ‘255’.

  • ng_colormap_green (String) (defaults to: '255')

    The color code for green in the colormap for Nagios. Default is ‘255’.

  • ng_colormap_blue (String) (defaults to: '255')

    The color code for blue in the colormap for Nagios. Default is ‘255 ’.

  • ng_statusmap_layout (String) (defaults to: '6')

    The layout for the status map in Nagios. Default is ‘6’.

  • ng_wrl_layout (String) (defaults to: '4')

    The layout for the WRL in Nagios. Default is ‘4’.

  • ng_incl_own_wrl (Boolean) (defaults to: false)

    Whether to include own WRL in Nagios. Default is false.

  • ng_statuswrl_incl (Optional[String]) (defaults to: undef)

    The WRL file to include in Nagios. Default is empty.

  • ng_ping_syntax (String) (defaults to: '/bin/ping -n -U -c 5 $HOSTADDRESS$')

    The syntax for the check_ping command in Nagios. Default is ‘/bin/ping -n -U -c 5 $HOSTADDRESS$’.

  • ng_refresh_rate (String) (defaults to: '90')

    The refresh rate for the Nagios CGIs. Default is ‘90’.

  • ng_enable_page_tour (String) (defaults to: '1')

    Whether to enable the page tour in the Nagios web interface. Default is ‘1’.

  • ng_result_limit (String) (defaults to: '100')

    The result limit for the Nagios CGIs. Default is ‘100’.

  • ng_escape_html_tags (String) (defaults to: '1')

    Whether to escape HTML tags in the Nagios web interface. Default is ‘1’.

  • ng_statusmap_img (Optional[String]) (defaults to: undef)

    The image to use for the status map in Nagios. Choose a suitable value or leave empty to use the default image.

  • ng_use_sound (Boolean) (defaults to: false)

    Whether to use sound in the Nagios web interface. Default is false.

  • ng_host_unreachable (String) (defaults to: 'hostdown.wav')

    The sound file to play when a host is unreachable. Default is ‘hostdown.wav’.

  • ng_host_down (String) (defaults to: 'hostdown.wav')

    The sound file to play when a host is down. Default is ‘hostdown.wav’.

  • ng_svc_critical (String) (defaults to: 'critical.wav')

    The sound file to play when a service is critical. Default is ‘critical.wav’.

  • ng_svc_warn (String) (defaults to: 'warning.wav')

    The sound file to play when a service is warning. Default is ‘warning.wav’.

  • ng_svc_unknown (String) (defaults to: 'warning.wav')

    The sound file to play when a service is unknown. Default is ‘warning.wav’.

  • ng_normal_sound (String) (defaults to: 'noproblem.wav')

    The sound file to play when a host or service returns to normal. Default is ‘noproblem.wav’.

  • ng_action_url_target (String) (defaults to: '_blank')

    The target for action URLs in the Nagios web interface. Default is ‘_blank’.

  • ng_notes_url_target (String) (defaults to: '_blank')

    The target for notes URLs in the Nagios web interface. Default is ‘_blank’.

  • ng_lock_author_names (String) (defaults to: '1')

    Whether to lock author names in the Nagios web interface. Default is ‘1’.

  • ng_enable_splunk (Boolean) (defaults to: false)

    Whether to enable Splunk integration in Nagios. Default is false.

  • ng_splunk_url (String) (defaults to: 'https://splunk.example.net:8000')

    The URL for the Splunk instance in Nagios. Default is ‘splunk.example.net:8000’.

  • ng_navbar_addresses (String) (defaults to: '1')

    Whether to enable navbar search for addresses in Nagios. Default is ‘1’.

  • ng_navbar_aliases (String) (defaults to: '1')

    Whether to enable navbar search for aliases in Nagios. Default is ‘1’.

  • ng_ack_no_sticky (String) (defaults to: '0')

    Whether to allow non-sticky acknowledgements in Nagios. Default is ‘1’.

  • ng_ack_no_send (String) (defaults to: '0')

    Whether to allow non-send acknowledgements in Nagios. Default is ‘1’.

  • ng_tac_cgi_hard_only (String) (defaults to: '0')

    Whether to show only HARD states in the Tactical Overview in Nagios. Default is ‘0’.

  • ng_use_ssl_auth (String) (defaults to: '0')


427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
# File 'manifests/params.pp', line 427

class confdroid_nagios::params (

# main
  String $ng_nagios_server              = 'nagios.example.net',
  Array $ng_reqpackages_server          = ['nagios','nagios-devel'],
  Array $ng_reqpackages_client          = ['net-snmp-utils','nagios-plugins','nagios-plugins-all','nagios-plugins-nrpe','nagios-common'],
  String $ng_pkg_ensure                 = 'present',
  Boolean $ng_include_nrpe              = true,
  String $ng_main_user                  = 'nagios',
  String $ng_main_password              = 'nagios',
  String $ng_max_check_attempts         = '10',
  String $ng_status_upd_interval        = '10',
  String $ng_check_ext_commands         = '1',
  String $ng_user                       = 'nagios',
  Boolean $ng_enable_target             = true,
  Boolean $ng_purge_target              = true,

# contact groups
  String $ng_contactgroup_name          = 'admins',
  String $ng_contactgroup_alias         = 'Nagios Administrators',
  String $ng_contactgroup_members       = 'nagiosadmin',

# contacts
  String $ng_contact_name               = 'nagiosadmin',
  String $ng_contact_alias              = 'Nagios Admin',
  String $ng_contact_groups             = 'admins',
  String $ng_contact_email              = 'nagiosadmin@example.net',

# hostgroups
  String $ng_hostgroup_name             = 'linux-servers',
  String $ng_hostgroup_alias            = 'Linux Servers',

# nagios.cfg
  String $ng_log_file                   = '/var/log/nagios/nagios.log',
  String $ng_event_broker_options       = '-1',
  Boolean $ng_enable_query_handler      = false,
  Array $ng_event_broker_module         = [],
  String $ng_log_rotation_method        = 'd',
  String $ng_use_syslog                 = '1',
  String $ng_log_notifications          = '1',
  String $ng_log_service_retries        = '1',
  String $ng_log_host_retries           = '1',
  String $ng_log_event_handlers         = '1',
  String $ng_log_initial_states         = '0',
  String $ng_log_current_states         = '1',
  String $ng_log_external_commands      = '1',
  String $ng_log_passive_checks         = '1',
  Array $ng_glob_host_evt_handler       = [],
  Array $ng_glob_svc_evt_handler        = [],
  String $ng_svc_int_check_delay        = 's',
  String $ng_max_svc_check_spread       = '30',
  String $ng_svc_interleave_factor      = 's',
  String $ng_host_int_check_delay       = 's',
  String $ng_max_host_check_spread      = '30',
  String $ng_max_concurrent_checks      = '0',
  String $ng_check_res_reaper_freq      = '10',
  String $ng_max_check_res_reap_time    = '30',
  String $ng_max_check_res_file_age     = '3600',
  String $ng_cached_h_check_horizon     = '15',
  String $ng_cached_s_check_horizon     = '15',
  String $ng_pred_host_dep_checks       = '1',
  String $ng_pred_svc_dep_checks        = '1',
  String $ng_soft_state_dependencies    = '0',
  String $ng_time_change_threshold      = '900',
  String $ng_auto_reschedule_checks     = '1',
  String $ng_auto_reschedule_intval     = '30',
  String $ng_auto_reschedule_window     = '180',
  String $ng_service_check_timeout      = '60',
  String $ng_host_check_timeout         = '30',
  String $ng_event_handler_timeout      = '30',
  String $ng_notification_timeout       = '30',
  String $ng_ocsp_timeout               = '5',
  String $ng_ochp_timeout               = '5',
  String $ng_perfdata_timeout           = '5',
  String $ng_retain_state_inf           = '1',
  String $ng_retention_update_intval    = '60',
  String $ng_use_ret_program_state      = '1',
  String $ng_use_ret_scheduling_info    = '1',
  String $ng_ret_host_attr_mask         = '0',
  String $ng_ret_service_attr_mask      = '0',
  String $ng_ret_proc_host_attr_mask    = '0',
  String $ng_ret_proc_svc_attr_mask     = '0',
  String $ng_ret_contact_h_attr_mask    = '0',
  String $ng_ret_contact_s_attr_mask    = '0',
  String $ng_interval_length            = '60',
  String $ng_check_for_updates          = '1',
  String $ng_bare_update_check          = '1',
  String $ng_use_aggr_host_checking     = '0',
  String $ng_execute_service_checks     = '1',
  String $ng_accept_pass_svc_checks     = '1',
  String $ng_execute_host_checks        = '1',
  String $ng_accept_pass_host_checks    = '1',
  String $ng_enable_notifications       = '1',
  String $ng_enable_event_handlers      = '1',
  String $ng_process_perf_data          = '0',
  String $ng_host_perfdata_command      = 'process-host-perfdata',
  String $ng_svc_perfdata_command       = 'process-service-perfdata',
  String $ng_host_perfdata_template     = '[HOSTPERFDATA]\t$TIMET$\t$HOSTNAME$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$',
  String $ng_svc_perfdata_template      = '[SERVICEPERFDATA]\t$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEEXECUTIONTIME$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$',
  String $ng_host_perfdata_file_mode    = 'a',
  String $ng_svc_perfdata_file_mode     = 'a',
  String $ng_h_perfdata_proc_intval     = '0',
  String $ng_s_perfdata_proc_intval     = '0',
  String $ng_h_perfdata_proc_cmd        = 'process-host-perfdata',
  String $ng_s_perfdata_proc_cmd        = 'process-service-perfdata',
  String $ng_h_perfdata_proc_e_result   = '0',
  String $ng_s_perfdata_proc_e_result   = '0',
  String $ng_obsess_over_services       = '0',
  String $ng_ocsp_command               = 'somecommand',
  String $ng_obsess_over_hosts          = '0',
  String $ng_ochp_command               = 'somecommand',
  String $ng_translate_pass_h_checks    = '0',
  String $ng_pass_h_checks_are_soft     = '0',
  String $ng_check_orphaned_svc         = '1',
  String $ng_check_orphaned_hosts       = '1',
  String $ng_check_service_freshness    = '1',
  String $ng_svc_fresh_check_intval     = '60',
  String $ng_svc_check_timeout_state    = 'c',
  String $ng_check_host_freshness       = '1',
  String $ng_host_fresh_check_intval    = '60',
  String $ng_add_freshness_latency      = '15',
  String $ng_enable_flap_detection      = '1',
  String $ng_low_svc_flap_threshold     = '5.0',
  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',
  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',
  Optional[String] $ng_sysinfo_auth     = undef,
  Optional[String] $ng_confinfo_auth    = undef,
  Optional[String] $ng_command_auth     = undef,
  Optional[String] $ng_hostview_auth    = undef,
  Optional[String] $ng_serviceview_auth = undef,
  Optional[String] $ng_host_cmd_auth    = undef,
  Optional[String] $ng_svc_cmd_auth     = undef,
  Optional[String] $ng_readonly_auth    = undef,
  Optional[String] $ng_statusmap_img    = undef,
  Boolean $ng_use_colormap              = false,
  String $ng_colormap_red               = '255',
  String $ng_colormap_green             = '255',
  String $ng_colormap_blue              = '255',
  String $ng_statusmap_layout           = '6',
  String $ng_wrl_layout                 = '4',
  Boolean $ng_incl_own_wrl              = false,
  Optional[String] $ng_statuswrl_incl   = undef,
  String $ng_ping_syntax                = '/bin/ping -n -U -c 5 $HOSTADDRESS$',
  String $ng_refresh_rate               = '90',
  String $ng_enable_page_tour           = '1',
  String $ng_result_limit               = '100',
  String $ng_escape_html_tags           = '1',
  Boolean $ng_use_sound                 = false,
  String $ng_host_unreachable           = 'hostdown.wav',
  String $ng_host_down                  = 'hostdown.wav',
  String $ng_svc_critical               = 'critical.wav',
  String $ng_svc_warn                   = 'warning.wav',
  String $ng_svc_unknown                = 'warning.wav',
  String $ng_normal_sound               = 'noproblem.wav',
  String $ng_action_url_target          = '_blank',
  String $ng_notes_url_target           = '_blank',
  String $ng_lock_author_names          = '1',
  Boolean $ng_enable_splunk             = false,
  String $ng_splunk_url                 = 'https://splunk.example.net:8000',
  String $ng_navbar_addresses           = '1',
  String $ng_navbar_aliases             = '1',
  String $ng_ack_no_sticky              = '0',
  String $ng_ack_no_send                = '0',
  String $ng_tac_cgi_hard_only          = '0',

# httpd
  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',
## disk
  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',
# users
  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_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',
# 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',

# single nagios checks
  Boolean $ng_enable_swap_check         = true,

) {
# Default facts
  $fqdn                     = $facts['networking']['fqdn']
  $hostname                 = $facts['networking']['hostname']
  $domain                   = $facts['networking']['domain']
  $os_name                  = $facts['os']['name']
  $os_release               = $facts['os']['release']['major']

# service
  $ng_service               = 'nagios'

# directories
  $ng_main_dir                = '/etc/nagios'
  $ng_conf_d_dir              = "${ng_main_dir}/conf.d"
  $ng_objects_dir             = "${ng_main_dir}/objects"
  $ng_private_dir             = "${ng_main_dir}/private"
  $ng_usr_incl                = '/usr/include/nagios'
  $ng_lib_dir                 = '/usr/lib64/nagios'
  $ng_log_dir                 = '/var/log/nagios'
  $ng_log_archives            = "${ng_log_dir}/archives"
  $ng_spool_dir               = '/var/spool/nagios'
  $ng_usr_share               = '/usr/share/nagios'
  $ng_share_html              = "${ng_usr_share}/html"
  $ng_run_dir                 = '/var/run/nagios'
  $ng_cmd_dir                 = "${ng_spool_dir}/cmd"
  $ng_checkresults_dir        = "${ng_spool_dir}/checkresults"

# files
  $ng_nagios_cfg_file         = "${ng_main_dir}/nagios.cfg"
  $ng_nagios_cfg_erb          = 'confdroid_nagios/nagios/nagios_cfg.erb'
  $ng_cgi_cfg_file            = "${ng_main_dir}/cgi.cfg"
  $ng_cgi_cfg_erb             = 'confdroid_nagios/nagios/cgi_cfg.erb'

# nagios
  $ng_target_templates        = "${ng_conf_d_dir}/nagios_templates.cfg"
  $ng_templates_head_erb      = 'confdroid_nagios/nagios/templates_cfg_head.erb'
  $ng_templates_rule_erb      = 'confdroid_nagios/nagios/templates_cfg_rule.erb'
  $ng_tgt_timeperiods_base    = "${ng_conf_d_dir}/nagios_timeperiods.cfg"
  $ng_tgt_timep_add           = "${ng_conf_d_dir}/nagios_timeperiods.cfg"
  $ng_tgt_timep_head_erb      = 'confdroid_nagios/nagios/timeperiods_cfg_head.erb'
  $ng_tgt_timep_rule_erb      = 'confdroid_nagios/nagios/timeperiods_cfg_rule.erb'
  $ng_target_localhost        = "${ng_conf_d_dir}/nagios_localhost.cfg"
  $ng_target_host             = "${ng_conf_d_dir}/nagios_host.cfg"
  $ng_target_hostgroup_base   = "${ng_conf_d_dir}/nagios_hostgroups_base.cfg"
  $ng_tgt_hostgroup_add       = "${ng_conf_d_dir}/nagios_hostgroups.cfg"
  $ng_tgt_hostgrp_head_erb    = 'confdroid_nagios/nagios/hostgroups_cfg_head.erb'
  $ng_tgt_hostgrp_rule_erb    = 'confdroid_nagios/nagios/hostgroups_cfg_rule.erb'
  $ng_target_hostdep          = "${ng_conf_d_dir}/nagios_hostdependency.cfg"
  $ng_target_hostesc          = "${ng_conf_d_dir}/nagios_hostescalation.cfg"
  $ng_target_hostext          = "${ng_conf_d_dir}/nagios_hostextinfo.cfg"
  $ng_target_service          = "${ng_conf_d_dir}/nagios_service.cfg"
  $ng_target_svcgrp_base      = "${ng_conf_d_dir}/nagios_servicegroups_base.cfg"
  $ng_tgt_servicegroup_add    = "${ng_conf_d_dir}/nagios_servicegroups.cfg"
  $ng_tgt_svcgrp_head_erb     = 'confdroid_nagios/nagios/svcgroups_cfg_head.erb'
  $ng_tgt_svcgrp_rule_erb     = 'confdroid_nagios/nagios/svcgroups_cfg_rule.erb'
  $ng_target_base_contact     = "${ng_conf_d_dir}/nagios_contact_base.cfg"
  $ng_target_add_contact      = "${ng_conf_d_dir}/nagios_contact.cfg"
  $ng_contacts_head_erb       = 'confdroid_nagios/nagios/contacts_cfg_head.erb'
  $ng_contacts_rule_erb       = 'confdroid_nagios/nagios/contacts_cfg_rule.erb'
  $ng_tgt_contactgroup_base   = "${ng_conf_d_dir}/nagios_contactgroup_base.cfg"
  $ng_tgt_contactgroup_add    = "${ng_conf_d_dir}/nagios_contactgroup.cfg"
  $ng_cntctgrps_head_erb      = 'confdroid_nagios/nagios/contactgroups_cfg_head.erb'
  $ng_cntctgrps_rule_erb      = 'confdroid_nagios/nagios/contactgroups_cfg_rule.erb'
  $ng_target_command          = "${ng_conf_d_dir}/nagios_commands_base.cfg"
  $ng_service_cmd             = 'check_nagios!/var/spool/nagios/status.dat!5!/usr/sbin/nagios'
  $ng_htpasswd_file           = "${ng_main_dir}/passwd"
  $ng_htpasswd_head           = 'confdroid_nagios/nagios/htpasswd_head.erb'
  $ng_htpasswd_rule           = 'confdroid_nagios/nagios/htpasswd_rule.erb'
  $ng_resource_file           = "${ng_private_dir}/resource.cfg"
  $ng_resource_erb            = 'confdroid_nagios/nagios/resource_cfg.erb'
  $ng_object_cache_file       = "${ng_spool_dir}/objects.cache"
  $ng_precached_obj_file      = "${ng_spool_dir}/objects.precache"
  $ng_status_file             = "${ng_spool_dir}/status.dat"
  $ng_command_file            = "${ng_cmd_dir}/nagios.cmd"
  $ng_lock_file               = "${ng_run_dir}/nagios.pid"
  $ng_temp_file               = "${ng_spool_dir}/nagios.tmp"
  $ng_check_result_path       = "${ng_spool_dir}/checkresults"
  $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"

# includes must be last
  include confdroid_nagios::main::config
}