Giter Club home page Giter Club logo

check_brevisone's Introduction

check_brevisone

Plugin to check signal strength and availability of the Brevis.One SMS gateway.

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

The plugin requires at least Python 3.

Usage

usage: check_brevisone.py [-h] [-V] -H HOSTNAME [-T TIMEOUT] [--ssl-insecure] [--protocol {http,https}] [-d] [--queue-warning QUEUE_WARNING]
                          [--queue-critical QUEUE_CRITICAL] [--failed-warning FAILED_WARNING] [--failed-critical FAILED_CRITICAL]
                          [--signal-warning SIGNAL_WARNING] [--signal-critical SIGNAL_CRITICAL] [--disk-warning DISK_WARNING] [--disk-critical DISK_CRITICAL]

Example

check_brevisone -H 192.168.1.1
[CRITICAL] - Brevis.One SMS Gateway Status
 \_[CRITICAL] Failed sending: 12
 \_[OK] Signal strength: 95
 \_[CRITICAL] Que length: 23
|que=23 failed=12 signal=95 total=885 time=1713865490 disk=1400246272

check_brevisone -H 192.168.1.1 --protocol http --failed-critical 18 --failed-warning 15 --signal-warning 100 --signal-critical 120
[CRITICAL] - Brevis.One SMS Gateway Status
 \_[OK] Failed sending: 12
 \_[OK] Signal strength: 95
 \_[CRITICAL] Que length: 23
|que=23 failed=12 signal=95 total=885 time=1713865490 disk=1400246272

Since firmware version 4.0 HTTPS is the default. To connect to a unencrypted HTTP endpoint you can use --protocol=http. If you are using a self-certified certificate, use --ssl-insecure to disable verification.

--disk-warning and --disk-critical don't have defaults, since we don't know the limit of the specific device. Each user will have to check their devices disk capacity and set an appropriate value.

License

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 the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

check_brevisone's People

Contributors

dependabot[bot] avatar dgoetz avatar marcuscaepio avatar martialblog avatar mrgohin avatar mxhash avatar widhalmt avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

check_brevisone's Issues

[Feature]: Set hard disk threshold values

Hello everyone,

we recently had the problem that the hard disk ran out of space, cause of logs. According to support, this is also a known problem, but no solution has been provided. There will probably be no update in the near future, so we will have to delete the logs manually on a regular basis.

Is it possible to add a feature to monitor the free disk space so that performance data can be obtained and threshold values can be set?

Check gives critical value because of negative dbm count (?)

Hi I just checked the plugin and it gives a critical value because (I think) the dbm is shown in a negative value:

Braintower FW version: 3.5.4

./check_braintower -H host --ssl-insecure
check_braintower: CRITICAL - que: 0 failed: 0 signal: -69 db total: 7 state: SIGNAL_OK load: 0.02;0.02;0.05 time: 1538133709 disk free: 25885097984 uptime: 17 min, 0 users|'failed'=0 'signal'=-69 'total'=7 'que'=0

Controlcheck:
./check_braintower -H host --ssl-insecure -Q 1 -F 1
check_braintower: CRITICAL - que: 0 failed: 0 signal: -67 db total: 7 state: SIGNAL_OK load: 0.01;0.02;0.05 time: 1538133740 disk free: 25885102080 uptime: 18 min, 0 users|'failed'=0 'signal'=-67 'total'=7 'que'=0

./check_braintower -H host --ssl-insecure --signal-warning 0 --signal-critical 0
check_braintower: CRITICAL - que: 0 failed: 0 signal: -67 db total: 7 state: SIGNAL_OK load: 0.01;0.02;0.05 time: 1538133786 disk free: 25885102080 uptime: 19 min, 0 users|'failed'=0 'signal'=-67 'total'=7 'que'=0

./check_braintower -H host --ssl-insecure --signal-warning -80 --signal-critical -80
check_braintower: OK - que: 0 failed: 0 signal: -67 db total: 7 state: SIGNAL_OK load: 0;0.01;0.05 time: 1538133812 disk free: 25885102080 uptime: 19 min, 0 users|'failed'=0 'signal'=-67 'total'=7 'que'=0

Looks likt the diff is done in a wrong direction?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.