From 2106fdb0aeb4b79d8c1c09441bb636dea5a206ed Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Mon, 20 Jan 2014 00:29:08 +0200 Subject: [PATCH] nagios: Add jabber service check --- nagios/files/commands.cfg | 7 +++++++ nagios/manifests/target.pp | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/nagios/files/commands.cfg b/nagios/files/commands.cfg index 7e31091..4093126 100644 --- a/nagios/files/commands.cfg +++ b/nagios/files/commands.cfg @@ -253,6 +253,13 @@ define command{ } +# 'check_jabber' command definition +define command{ + command_name check_jabber + command_line $USER1$/check_jabber -H $HOSTADDRESS$ $ARG1$ + } + + ################################################################################ # diff --git a/nagios/manifests/target.pp b/nagios/manifests/target.pp index 7907e34..4517b79 100644 --- a/nagios/manifests/target.pp +++ b/nagios/manifests/target.pp @@ -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 {