summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-01-25 22:28:06 +0100
committermh <mh@immerda.ch>2011-01-25 22:28:06 +0100
commit8218cadb30b6cc955137fa20246bb9bbd472f519 (patch)
treeed06399f7750f17fe3311f9b3721781d60dbba8b
parent016a81b1d9c1cf68e23008b7d6c4c3e0de576edf (diff)
downloadpuppet-ejabberd-8218cadb30b6cc955137fa20246bb9bbd472f519.tar.gz
puppet-ejabberd-8218cadb30b6cc955137fa20246bb9bbd472f519.tar.bz2
add ssl checks for jabber server
-rw-r--r--manifests/nagios.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/nagios.pp b/manifests/nagios.pp
index 928dd28..aed6df5 100644
--- a/manifests/nagios.pp
+++ b/manifests/nagios.pp
@@ -5,6 +5,17 @@ class ejabberd::nagios {
'': { $jabber_nagios_domain = $fqdn }
}
nagios::service{ "jabber_${fqdn}": check_command => "check_jabber!${jabber_nagios_domain}" }
+ @@nagios_command{
+ 'check_jabber_ssl':
+ command_line => '$USER1$/check_jabber -S -p 5223 -H $ARG1$',
+ }
+ nagios::service{ "jabber_ssl_${fqdn}": check_command => "check_jabber_ssl!${jabber_nagios_domain}" }
+
+ @@nagios_command{
+ 'check_jabber_cert':
+ command_line => '$USER1$/check_jabber -S -D 10 -p 5223 -H $ARG1$',
+ }
+ nagios::service{ "jabber_cert_${fqdn}": check_command => "check_jabber_cert!${jabber_nagios_domain}" }
case $jabber_nagios_user {
'': { $jabber_nagios_user = 'nagios' }