summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2015-10-25 14:57:27 +0100
committermh <mh@immerda.ch>2015-10-25 14:57:27 +0100
commita9a04a8e1aa447d71f8745491da9168c81206392 (patch)
tree2d08b1be3898adc3a23a6f803f43f0790c552218
parent711cbfdc765b743f476da3027c6b95ba27b1a0c1 (diff)
it's sufficient to check it only once an hour
-rw-r--r--manifests/service/gpgkey.pp10
1 files changed, 6 insertions, 4 deletions
diff --git a/manifests/service/gpgkey.pp b/manifests/service/gpgkey.pp
index f04352a..df13ca8 100644
--- a/manifests/service/gpgkey.pp
+++ b/manifests/service/gpgkey.pp
@@ -1,8 +1,9 @@
# define a gpgkey to be watched
define nagios::service::gpgkey(
- $ensure = 'present',
- $warning = '14',
- $key_info = undef,
+ $ensure = 'present',
+ $warning = '14',
+ $key_info = undef,
+ $check_interval = 60,
){
validate_slength($name,40,40)
require ::nagios::plugins::gpg
@@ -26,7 +27,8 @@ define nagios::service::gpgkey(
}
Nagios::Service["check_gpg_${name}"]{
- check_command => "check_gpg!${warning}!${name}",
+ check_command => "check_gpg!${warning}!${name}",
+ check_interval => $check_interval,
}
if $key_info {
Nagios::Service["check_gpg_${name}"]{