From 0f3c2d7c8263793558a58031bd877092928642e8 Mon Sep 17 00:00:00 2001 From: 12ww1160 <12ww1160@confdroid.com> Date: Wed, 11 Mar 2026 15:06:00 +0100 Subject: [PATCH] add fqdn --- manifests/monitoring/fail2ban.pp | 0 manifests/server/nagios.pp | 17 +++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 manifests/monitoring/fail2ban.pp diff --git a/manifests/monitoring/fail2ban.pp b/manifests/monitoring/fail2ban.pp new file mode 100644 index 0000000..e69de29 diff --git a/manifests/server/nagios.pp b/manifests/server/nagios.pp index a07bfaa..925c5ce 100644 --- a/manifests/server/nagios.pp +++ b/manifests/server/nagios.pp @@ -24,6 +24,23 @@ class confdroid_nagios::server::nagios ( notify => Service[$ng_service], } + @@nagios_host { $fqdn: + ensure => $ng_ping_ensure, + alias => $hostname, + address => $fqdn, + use => 'linux-server', + target => $ng_target_host, + hostgroups => 'linux-servers', + contacts => $ng_contact_name, + max_check_attempts => $ng_max_check_attempts, + notification_period => '24x7', + owner => $ng_user, + group => $ng_user, + mode => '0640', + check_command => "check_ping!${ng_ping_warn}!${ng_ping_crit}", + notify => Service[$ng_service], + } + @@nagios_service { 'check_nagios_localhost': check_command => "check_nagios!${ng_spool_dir}/status.dat!5!/usr/sbin/nagios", use => 'generic-service',