nagios: Add jabber service check
This commit is contained in:
parent
9fd6b1e38d
commit
2106fdb0ae
2 changed files with 24 additions and 0 deletions
|
@ -253,6 +253,13 @@ define command{
|
|||
}
|
||||
|
||||
|
||||
# 'check_jabber' command definition
|
||||
define command{
|
||||
command_name check_jabber
|
||||
command_line $USER1$/check_jabber -H $HOSTADDRESS$ $ARG1$
|
||||
}
|
||||
|
||||
|
||||
|
||||
################################################################################
|
||||
#
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue