OP#436 add purging
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -103,6 +103,8 @@
|
||||
# service configuration files for the Nagios server. Default is true.
|
||||
# @param [String] ng_contactgroup_members The members of the default contact
|
||||
# group. Default is 'nagiosadmin'.
|
||||
# @param [Boolean] ng_purge_target Whether to purge unmanaged host and services
|
||||
# configuration files. Default is true.
|
||||
###############################################################################
|
||||
class confdroid_nagios::params (
|
||||
|
||||
@@ -119,6 +121,7 @@ class confdroid_nagios::params (
|
||||
String $ng_check_ext_commands = '1',
|
||||
String $ng_user = 'nagios',
|
||||
Boolean $ng_enable_target = true,
|
||||
Boolean $ng_purge_target = true,
|
||||
|
||||
# contact groups
|
||||
String $ng_contactgroup_name = 'admins',
|
||||
|
||||
Reference in New Issue
Block a user