OP#436 add purging

This commit is contained in:
2026-03-02 01:36:59 +01:00
parent 55c14525e0
commit f19e6f3442
2 changed files with 10 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ class confdroid_nagios::client::target (
mode => '0640',
check_command => "check_ping!${ng_ping_warn}!${ng_ping_crit}",
notify => Service[$ng_service],
purge => $ng_purge_target,
}
@@nagios_service { "root_partition_${fqdn}":
@@ -37,6 +38,7 @@ class confdroid_nagios::client::target (
owner => 'nagios',
group => 'nagios',
mode => '0640',
purge => $ng_purge_target,
}
if $ng_enable_swap_check == true {
@@ -53,6 +55,7 @@ class confdroid_nagios::client::target (
owner => 'nagios',
group => 'nagios',
mode => '0640',
purge => $ng_purge_target,
}
}
@@ -69,6 +72,7 @@ class confdroid_nagios::client::target (
owner => 'nagios',
group => 'nagios',
mode => '0640',
purge => $ng_purge_target,
}
@@nagios_service { "Total Processes_${fqdn}":
@@ -84,6 +88,7 @@ class confdroid_nagios::client::target (
owner => 'nagios',
group => 'nagios',
mode => '0640',
purge => $ng_purge_target,
}
@@nagios_service { "Zombie Processes_${fqdn}":
@@ -99,6 +104,7 @@ class confdroid_nagios::client::target (
owner => 'nagios',
group => 'nagios',
mode => '0640',
purge => $ng_purge_target,
}
@@nagios_service { "Current_Load_${fqdn}":
@@ -114,6 +120,7 @@ class confdroid_nagios::client::target (
owner => 'nagios',
group => 'nagios',
mode => '0640',
purge => $ng_purge_target,
}
}
}