OP#436 add variable
This commit is contained in:
@@ -41,7 +41,7 @@ At this stage, the module is being redeveloped and being built to the latest sta
|
|||||||
- if FQDN equals the specified `ng_nagios_server`, nagios server with all required specs is installed, else only nagios client packages and the target specs
|
- if FQDN equals the specified `ng_nagios_server`, nagios server with all required specs is installed, else only nagios client packages and the target specs
|
||||||
- an additional directory /etc/nagios/conf.d is created to place the custom checks etc. without being overwritten by updates.
|
- an additional directory /etc/nagios/conf.d is created to place the custom checks etc. without being overwritten by updates.
|
||||||
- contacts and contactgroups are separated and filled in via define
|
- contacts and contactgroups are separated and filled in via define
|
||||||
- hostgroups are filled in via define, hosts are added dynamically
|
- hostgroups are filled in via define, hosts are added dynamically via target.pp.
|
||||||
- configures all required directories for server and clients and sets proper permissions and selinux contexts
|
- configures all required directories for server and clients and sets proper permissions and selinux contexts
|
||||||
- configures the main nagios configuration file and sets values as (pre)configured per values in params, which can be overwritten.
|
- configures the main nagios configuration file and sets values as (pre)configured per values in params, which can be overwritten.
|
||||||
- if `ng_include_nrpe`is set to `true`, the confdroid_nrpe module is automatically applied on clients ([confdroid_nrpe](https://sourcecode.confdroid.com/confdroid/confdroid_nrpe) must be in the catalogue then)
|
- if `ng_include_nrpe`is set to `true`, the confdroid_nrpe module is automatically applied on clients ([confdroid_nrpe](https://sourcecode.confdroid.com/confdroid/confdroid_nrpe) must be in the catalogue then)
|
||||||
|
|||||||
@@ -95,6 +95,8 @@
|
|||||||
# Default is 'present'.
|
# Default is 'present'.
|
||||||
# @param [String] ng_max_check_attempts The maximum number of check attempts
|
# @param [String] ng_max_check_attempts The maximum number of check attempts
|
||||||
# before a host or service is considered down. Default is '10'.
|
# before a host or service is considered down. Default is '10'.
|
||||||
|
# @param [Boolean] ng_enable_swap_check Whether to enable the check_swap
|
||||||
|
# command. Default is true.
|
||||||
###############################################################################
|
###############################################################################
|
||||||
class confdroid_nagios::params (
|
class confdroid_nagios::params (
|
||||||
|
|
||||||
@@ -164,6 +166,9 @@ class confdroid_nagios::params (
|
|||||||
String $ng_load_crit = '10.00,6.00,4.00',
|
String $ng_load_crit = '10.00,6.00,4.00',
|
||||||
String $ng_load_ensure = 'present',
|
String $ng_load_ensure = 'present',
|
||||||
|
|
||||||
|
# single nagios checks
|
||||||
|
Boolean $ng_enable_swap_check = true,
|
||||||
|
|
||||||
) {
|
) {
|
||||||
# Default facts
|
# Default facts
|
||||||
$fqdn = $facts['networking']['fqdn']
|
$fqdn = $facts['networking']['fqdn']
|
||||||
|
|||||||
Reference in New Issue
Block a user