Skip to content

Commit

Permalink
Merge pull request #10 from NETWAYS/update/rename_to_check_brevisone
Browse files Browse the repository at this point in the history
Update name to check_brevisone
  • Loading branch information
Philipp D authored Oct 1, 2020
2 parents fb25a87 + be81dce commit 93fde1b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand All @@ -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

Expand Down
9 changes: 6 additions & 3 deletions check_braintower → check_brevisone
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#
# LICENSE:
#
# Copyright (C) 2018 NETWAYS GmbH <support@netways.de>
# Copyright (C) 2020 NETWAYS GmbH <info@netways.de>
#
# 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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 93fde1b

Please sign in to comment.