From eba740c4dfcd2031c4718cbd96f971b33b7609c9 Mon Sep 17 00:00:00 2001 From: 12ww1160 <12ww1160@confdroid.com> Date: Thu, 12 Mar 2026 12:17:14 +0100 Subject: [PATCH] OP#490 edit host address --- manifests/server/nagios.pp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/manifests/server/nagios.pp b/manifests/server/nagios.pp index 71f4d63..13e5545 100644 --- a/manifests/server/nagios.pp +++ b/manifests/server/nagios.pp @@ -7,6 +7,23 @@ class confdroid_nagios::server::nagios ( ) inherits confdroid_nagios::params { if $ng_nagios_server == $fqdn { + @@nagios_host { "localhost_${fqdn}": + ensure => $ng_ping_ensure, + alias => 'localhost', + address => '127.0.0.1', + use => 'linux-server', + target => $ng_target_localhost, + 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_host { $fqdn: ensure => $ng_ping_ensure, alias => 'nag001',