OP#436 add fqdn

This commit is contained in:
2026-03-01 17:00:59 +01:00
parent bc3eb4214c
commit 95e803f85e
5 changed files with 10 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ define confdroid_nagios::nagios::objects::add_contact (
$ng_nagios_server = $confdroid_nagios::params::ng_nagios_server
$ng_target_add_contact = $confdroid_nagios::params::ng_target_add_contact
$ng_contacts_rule_erb = $confdroid_nagios::params::ng_contacts_rule_erb
$fqdn = $facts['networking']['fqdn']
if $ng_nagios_server == $fqdn {
concat::fragment { $name:

View File

@@ -20,6 +20,7 @@ define confdroid_nagios::nagios::objects::add_contactgroups (
$ng_nagios_server = $confdroid_nagios::params::ng_nagios_server
$ng_tgt_contactgroup_add = $confdroid_nagios::params::ng_tgt_contactgroup_add
$ng_cntctgrps_rule_erb = $confdroid_nagios::params::ng_cntctgrps_rule_erb
$fqdn = $facts['networking']['fqdn']
if $ng_nagios_server == $fqdn {
concat::fragment { $name:

View File

@@ -22,6 +22,7 @@ define confdroid_nagios::nagios::objects::add_hostgroups (
$ng_nagios_server = $confdroid_nagios::params::ng_nagios_server
$ng_tgt_hostgroup_add = $confdroid_nagios::params::ng_tgt_hostgroup_add
$ng_tgt_hostgrp_rule_erb = $confdroid_nagios::params::ng_tgt_hostgrp_rule_erb
$fqdn = $facts['networking']['fqdn']
if $ng_nagios_server == $fqdn {
concat::fragment { $name:

View File

@@ -25,6 +25,7 @@ define confdroid_nagios::nagios::objects::add_servicegroups (
$ng_nagios_server = $confdroid_nagios::params::ng_nagios_server
$ng_tgt_servicegroup_add = $confdroid_nagios::params::ng_tgt_servicegroup_add
$ng_tgt_svcgrp_rule_erb = $confdroid_nagios::params::ng_tgt_svcgrp_rule_erb
$fqdn = $facts['networking']['fqdn']
if $ng_nagios_server == $fqdn {
concat::fragment { $name:

View File

@@ -97,6 +97,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.
# @param [String] ng_status_upd_interval The interval in seconds for Nagios
# to update the status file. Default is '10'.
# @param [String] ng_check_ext_commands Whether to allow external commands
# to be submitted to Nagios. Default is '1'.
###############################################################################
class confdroid_nagios::params (
@@ -109,6 +113,8 @@ class confdroid_nagios::params (
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',
# contact groups
String $ng_contactgroup_name = 'admins',