This commit is contained in:
2026-03-11 17:06:57 +01:00
parent 3a047e12d6
commit 75f42f78af
2 changed files with 1 additions and 18 deletions

View File

@@ -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_enable_target == true {
package { $ng_reqpackages_client:
ensure => $ng_pkg_ensure,
}

View File

@@ -24,23 +24,6 @@ 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_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",
use => 'generic-service',