summaryrefslogtreecommitdiff
path: root/manifests/service.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/service.pp')
-rw-r--r--manifests/service.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/manifests/service.pp b/manifests/service.pp
index b925d00..fd64f9b 100644
--- a/manifests/service.pp
+++ b/manifests/service.pp
@@ -51,6 +51,7 @@ define stunnel::service (
$timeoutconnect = false,
$timeoutidle = false,
$transparent = false,
+ $use_nagios = false,
$verify = false
) {
@@ -66,4 +67,10 @@ define stunnel::service (
group => 0,
mode => '0600';
}
+
+ if $use_nagios {
+ nagios::service { "stunnel_${name}":
+ check_command => "nagios-stat-proc!/usr/bin/stunnel4 /etc/stunnel/${name}.conf!6!5!proc";
+ }
+ }
}