OP#436 add purging
This commit is contained in:
@@ -22,6 +22,7 @@ class confdroid_nagios::client::target (
|
|||||||
mode => '0640',
|
mode => '0640',
|
||||||
check_command => "check_ping!${ng_ping_warn}!${ng_ping_crit}",
|
check_command => "check_ping!${ng_ping_warn}!${ng_ping_crit}",
|
||||||
notify => Service[$ng_service],
|
notify => Service[$ng_service],
|
||||||
|
purge => $ng_purge_target,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@nagios_service { "root_partition_${fqdn}":
|
@@nagios_service { "root_partition_${fqdn}":
|
||||||
@@ -37,6 +38,7 @@ class confdroid_nagios::client::target (
|
|||||||
owner => 'nagios',
|
owner => 'nagios',
|
||||||
group => 'nagios',
|
group => 'nagios',
|
||||||
mode => '0640',
|
mode => '0640',
|
||||||
|
purge => $ng_purge_target,
|
||||||
}
|
}
|
||||||
|
|
||||||
if $ng_enable_swap_check == true {
|
if $ng_enable_swap_check == true {
|
||||||
@@ -53,6 +55,7 @@ class confdroid_nagios::client::target (
|
|||||||
owner => 'nagios',
|
owner => 'nagios',
|
||||||
group => 'nagios',
|
group => 'nagios',
|
||||||
mode => '0640',
|
mode => '0640',
|
||||||
|
purge => $ng_purge_target,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -69,6 +72,7 @@ class confdroid_nagios::client::target (
|
|||||||
owner => 'nagios',
|
owner => 'nagios',
|
||||||
group => 'nagios',
|
group => 'nagios',
|
||||||
mode => '0640',
|
mode => '0640',
|
||||||
|
purge => $ng_purge_target,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@nagios_service { "Total Processes_${fqdn}":
|
@@nagios_service { "Total Processes_${fqdn}":
|
||||||
@@ -84,6 +88,7 @@ class confdroid_nagios::client::target (
|
|||||||
owner => 'nagios',
|
owner => 'nagios',
|
||||||
group => 'nagios',
|
group => 'nagios',
|
||||||
mode => '0640',
|
mode => '0640',
|
||||||
|
purge => $ng_purge_target,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@nagios_service { "Zombie Processes_${fqdn}":
|
@@nagios_service { "Zombie Processes_${fqdn}":
|
||||||
@@ -99,6 +104,7 @@ class confdroid_nagios::client::target (
|
|||||||
owner => 'nagios',
|
owner => 'nagios',
|
||||||
group => 'nagios',
|
group => 'nagios',
|
||||||
mode => '0640',
|
mode => '0640',
|
||||||
|
purge => $ng_purge_target,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@nagios_service { "Current_Load_${fqdn}":
|
@@nagios_service { "Current_Load_${fqdn}":
|
||||||
@@ -114,6 +120,7 @@ class confdroid_nagios::client::target (
|
|||||||
owner => 'nagios',
|
owner => 'nagios',
|
||||||
group => 'nagios',
|
group => 'nagios',
|
||||||
mode => '0640',
|
mode => '0640',
|
||||||
|
purge => $ng_purge_target,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,6 +103,8 @@
|
|||||||
# service configuration files for the Nagios server. Default is true.
|
# service configuration files for the Nagios server. Default is true.
|
||||||
# @param [String] ng_contactgroup_members The members of the default contact
|
# @param [String] ng_contactgroup_members The members of the default contact
|
||||||
# group. Default is 'nagiosadmin'.
|
# 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 (
|
class confdroid_nagios::params (
|
||||||
|
|
||||||
@@ -119,6 +121,7 @@ class confdroid_nagios::params (
|
|||||||
String $ng_check_ext_commands = '1',
|
String $ng_check_ext_commands = '1',
|
||||||
String $ng_user = 'nagios',
|
String $ng_user = 'nagios',
|
||||||
Boolean $ng_enable_target = true,
|
Boolean $ng_enable_target = true,
|
||||||
|
Boolean $ng_purge_target = true,
|
||||||
|
|
||||||
# contact groups
|
# contact groups
|
||||||
String $ng_contactgroup_name = 'admins',
|
String $ng_contactgroup_name = 'admins',
|
||||||
|
|||||||
Reference in New Issue
Block a user