OP#436 add variable

This commit is contained in:
2026-03-01 16:50:24 +01:00
parent bd23897d28
commit 1c0e50828f
2 changed files with 6 additions and 1 deletions

View File

@@ -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
- 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
- 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 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)

View File

@@ -95,6 +95,8 @@
# Default is 'present'.
# @param [String] ng_max_check_attempts The maximum number of check attempts
# 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 (
@@ -164,6 +166,9 @@ class confdroid_nagios::params (
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']