added parameter to enable or disable swap checking, as this can now be done better through cd_swap

This commit is contained in:
Arne Teuke
2017-07-31 17:26:23 +01:00
parent d12abd7cd1
commit 2d567bc629
3 changed files with 13 additions and 1 deletions

View File

@@ -63,6 +63,8 @@ class cd_nagios::client::target (
mode => '0640',
}
if $ng_enable_swap_check == true {
@@nagios_service { "Swap_Usage_${::hostname}":
ensure => $ng_swap_ensure,
check_command => "check_nrpe!check_swap!${ng_swap_warn}!${ng_swap_crit}",
@@ -77,6 +79,7 @@ class cd_nagios::client::target (
group => $ng_user,
mode => '0640',
}
}
@@nagios_service { "Local_Users_${::hostname}":
ensure => $ng_users_ensure,