diff --git a/README.md b/README.md index c5eba88..de70fc4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ -# check_braintower +# check_brevisone -Plugin to check signal strength of Braintower SMS gateways. +Plugin to check signal strength and availability of the [Brevis.One SMS gateway](https://brevis.one). + +This plugin was previously known as check_braintower, it was renamed due to a product name change. +You should be able to check gateways running older versions as well. # Installation @@ -14,16 +17,16 @@ RHEL/CentOS 7: # Usage - usage: check_braintower [-h] -H HOSTNAME [-T TIMEOUT] [-Q QUEUE] [-F FAIL] + usage: check_brevisone [-h] -H HOSTNAME [-T TIMEOUT] [-Q QUEUE] [-F FAIL] [--signal-warning SIGNAL_WARNING] [--signal-critical SIGNAL_CRITICAL] [--ssl-insecure] [--protocol PROTOCOL] # Example - ./check_braintower -H 192.168.1.1 --signal-warning -85 --signal-critical -90 + ./check_brevisone -H 192.168.1.1 --signal-warning -85 --signal-critical -90 - BRAINTOWER OK - que: 0 failed: 0 signal: -83db total: 0 state: Idle load: 0;0.03;0.05 time: 1451320254 disk free: 647569408 uptime: 9 min, 0 users + BREVISONE OK - que: 0 failed: 0 signal: -83db total: 0 state: Idle load: 0;0.03;0.05 time: 1451320254 disk free: 647569408 uptime: 9 min, 0 users # Advanced @@ -32,7 +35,7 @@ default. I you using self-certified certificates on the appliance, use ```--ssl- # Copyright -(c) 2018, [NETWAYS GmbH](http://www.netways.de), support@netways.de +(c) 2020, [NETWAYS GmbH](http://www.netways.de), info@netways.de # License diff --git a/check_braintower b/check_brevisone similarity index 92% rename from check_braintower rename to check_brevisone index 9a264e2..5188c35 100755 --- a/check_braintower +++ b/check_brevisone @@ -8,7 +8,7 @@ # # LICENSE: # -# Copyright (C) 2018 NETWAYS GmbH +# Copyright (C) 2020 NETWAYS GmbH # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -77,7 +77,7 @@ def readPrf(string): return string.split(':')[1].strip().split(';') -def output(label, state=0, lines=None, perfdata=None, name='BRAINTOWER'): +def output(label, state=0, lines=None, perfdata=None, name='BREVISONE'): if lines is None: lines = [] if perfdata is None: @@ -106,9 +106,12 @@ if __name__ == '__main__': path = '%s://%s/check.php' prog = os.path.basename(sys.argv[0]) output = partial(output, name=prog) + readme = 'Plugin to check signal strength and availability of the Brevis.One SMS gateway.\n' \ + 'This plugin was previously known as check_braintower, it was renamed due to a product name change. ' \ + 'You should be able to check gateways running older versions as well.' # Parse Arguments - parser = argparse.ArgumentParser(prog=prog) + parser = argparse.ArgumentParser(prog=prog, description=readme) parser.add_argument('-V', '--version', action='version', version='%(prog)s v' + sys.modules[__name__].__version__) parser.add_argument('-H', '--hostname', help='The host address of the SMS gateway', required=True)