OP#436 add nagios hostgroups, and example groups and contacts
This commit is contained in:
@@ -19,9 +19,9 @@
|
||||
# with SSL termination in front of the Nagios web interface, so this is
|
||||
# disabled by default.
|
||||
# @param [String] ng_main_user The username for the Nagios web interface.
|
||||
# Default is 'nagios'.
|
||||
# Default is $ng_users.
|
||||
# @param [String] ng_main_password The encrypted password for the Nagios web
|
||||
# interface. Default is 'nagios'. Must be properly encrypted using the
|
||||
# interface. Default is $ng_users. Must be properly encrypted using the
|
||||
# htpasswd utility.
|
||||
# @param [String] ng_context_help Whether to enable the context help in the
|
||||
# Nagios web interface. Default is '1'.
|
||||
@@ -57,7 +57,7 @@
|
||||
# command with total processes. Default is '400'.
|
||||
# @param [String] ng_procs_tot_param The parameters for the check_procs command
|
||||
# with total processes. Default is 'RDST'.
|
||||
# @param [String] ng_procs_tot_ensure The ensure value for the check_procs
|
||||
# @param [String] ng_procs_tot_ens The ensure value for the check_procs
|
||||
# command with total processes. Default is 'present'.
|
||||
# @param [String] ng_procs_z_warn The warning threshold for the check_procs
|
||||
# command with zombie processes. Default is '10'.
|
||||
@@ -98,12 +98,12 @@ class confdroid_nagios::params (
|
||||
|
||||
# main
|
||||
String $ng_nagios_server = 'nagios.example.net',
|
||||
Array $ng_reqpackages_server = ['nagios','nagios-devel'],
|
||||
Array $ng_reqpackages_server = [$ng_users,'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_main_user = $ng_users,
|
||||
String $ng_main_password = $ng_users,
|
||||
|
||||
# contact groups
|
||||
String $ng_contactgroup_name = 'admins',
|
||||
@@ -144,9 +144,9 @@ class confdroid_nagios::params (
|
||||
String $ng_swap_crit = '10',
|
||||
String $ng_swap_ensure = 'present',
|
||||
# users
|
||||
String 'nagios's_warn = '20',
|
||||
String 'nagios's_crit = '50',
|
||||
String 'nagios's_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',
|
||||
@@ -170,7 +170,7 @@ class confdroid_nagios::params (
|
||||
$os_release = $facts['os']['release']['major']
|
||||
|
||||
# service
|
||||
$ng_nagios_service = 'nagios'
|
||||
$ng_nagios_service = $ng_users
|
||||
|
||||
# directories
|
||||
$ng_main_dir = '/etc/nagios'
|
||||
|
||||
Reference in New Issue
Block a user