From 55ff04ba21e3e28e58d58dc4259787d80efe8e88 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sat, 18 Jun 2016 21:13:17 +0200 Subject: [PATCH 1/2] Add --hostname option This commit adds a --hostname option that is mutually exclusive to -H/--host-address. The idea is to make check_xmppng compatible with check_v46. Thanks to Andreas Krause for the inspiration. --- check_xmppng | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/check_xmppng b/check_xmppng index 052db5c..5fdd61d 100755 --- a/check_xmppng +++ b/check_xmppng @@ -508,8 +508,11 @@ def main(): """ import argparse parser = argparse.ArgumentParser(description="Check XMPP services") - parser.add_argument( - "-H", "--host-address", help="host address", required=True) + host_address = parser.add_mutually_exclusive_group(required=True) + host_address.add_argument("-H", "--host-address", help="host address") + host_address.add_argument( + "--hostname", help="host name, alternative for host-address", + dest="host_address") parser.add_argument( "-p", "--port", help="port", type=int) is_server = parser.add_mutually_exclusive_group() From c0280cc71331959655ed823007abe484e2972b81 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sat, 18 Jun 2016 21:17:54 +0200 Subject: [PATCH 2/2] Add changelog entry and metadata for 0.3.0 --- changes.md | 5 +++++ icingaexchange.yml | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/changes.md b/changes.md index 9920146..df88e10 100644 --- a/changes.md +++ b/changes.md @@ -1,5 +1,10 @@ # change log +## version 0.3.0 2016-06-18 + +* add alternative --hostname parameter to make check_xmpp compatible with + check_v46 (thanks to Andreas Krause for the idea) + ## version 0.2.1 2016-01-23 * fix perfdata output for daysvalid metric diff --git a/icingaexchange.yml b/icingaexchange.yml index 4f4c926..eb873ac 100644 --- a/icingaexchange.yml +++ b/icingaexchange.yml @@ -7,6 +7,28 @@ target: Messaging type: Plugin license: gplv3 releases: + - name: 0.3.0 + description: "add --hostname option" + files: + - name: check_xmppng + url: "file:///check_xmppng" + description: "Check command" + checksum: 9774a26db6c54af4a51902b90ffe13bc + - + name: COPYING + url: "file:///COPYING" + description: "GPL 3.0 license text" + checksum: d32239bcb673463ab874e80d47fae504 + - + name: README.md + url: "file:///README.md" + description: "documentation" + checksum: 1e6f6632b12e4ef5fc4f02c3ea65da8a + - + name: changes.md + url: "file:///changes.md" + description: "change log" + checksum: f2c1f311817cbb51eac4c62b9c097579 - name: 0.2.1 description: "fixed perfdata output" files: