nagios: Add jabber service check

This commit is contained in:
Ossi Salmi 2014-01-20 00:29:08 +02:00
parent 9fd6b1e38d
commit 2106fdb0ae
2 changed files with 24 additions and 0 deletions

View file

@ -253,6 +253,13 @@ define command{
}
# 'check_jabber' command definition
define command{
command_name check_jabber
command_line $USER1$/check_jabber -H $HOSTADDRESS$ $ARG1$
}
################################################################################
#

View file

@ -145,6 +145,23 @@ class nagios::target::ipp inherits nagios::target {
}
# Configure jabber service target.
#
class nagios::target::jabber inherits nagios::target {
@@nagios::service { "${::homename}_jabber":
command => "check_jabber!--ssl -p 5223",
description => "Jabber",
}
@@nagios::service { "${::homename}_jabber_certificate":
command => "check_jabber!--ssl -p 5223 -D 14",
description => "Jabber Certificate",
}
}
# Configure ldap service target.
#
class nagios::target::ldap inherits nagios::target {