Commit 3124a204 authored by Jonathan Michalon's avatar Jonathan Michalon

Add CheckJabber{4,6} using nagios' check_jabber (implemented in check_tcp)

parent 1883504f
......@@ -255,3 +255,19 @@ class CheckOpenVPN4(CheckOpenVPN, Check4):
class CheckOpenVPN6(CheckOpenVPN, Check6):
pass
class CheckJabber(Check):
def check(self):
command = ['/usr/lib/nagios/plugins/check_jabber',
'-H', self.addr,
'-t', str(self.timeout)]
return self.exec_with_timeout(command, timeout=self.timeout + 1)
class CheckJabber4(CheckJabber, Check4):
pass
class CheckJabber6(CheckJabber, Check6):
pass
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment