From a0bf9265536388cdc3dc6e63e655f38a5afc7e06 Mon Sep 17 00:00:00 2001 From: 12ww1160 <12ww1160@confdroid.com> Date: Mon, 9 Mar 2026 15:50:22 +0100 Subject: [PATCH] OP#436 testing import --- manifests/client/target.pp | 2 +- manifests/server/nagios.pp | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/manifests/client/target.pp b/manifests/client/target.pp index b582883..255c98a 100644 --- a/manifests/client/target.pp +++ b/manifests/client/target.pp @@ -6,7 +6,7 @@ class confdroid_nagios::client::target ( ) inherits confdroid_nagios::params { - if ($ng_nagios_server == $fqdn) and ($ng_enable_target == true) { + if ($ng_nagios_server != $fqdn) and ($ng_enable_target == true) { @@nagios_host { $fqdn: ensure => $ng_ping_ensure, alias => $hostname, diff --git a/manifests/server/nagios.pp b/manifests/server/nagios.pp index 616367b..829a976 100644 --- a/manifests/server/nagios.pp +++ b/manifests/server/nagios.pp @@ -7,22 +7,6 @@ class confdroid_nagios::server::nagios ( ) inherits confdroid_nagios::params { if $ng_nagios_server == $fqdn { - @@nagios_host { 'localhost': - 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_service { 'check_nagios_localhost': check_command => "check_nagios!${ng_spool_dir}/status.dat!5!/usr/sbin/nagios",