NETWAYS / check_nano

Icinga check plugin to check the Inveo Nano Temperature Sensor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

check_nano.py

Check command to build icinga checks against "Inveo Nano Temperature Sensor".

Link to the offical product: https://inveo.com

The check command will ouput the temperature based on your "Inveo Nano Sensor". The alarm parameters are set in the administration panel of your sensor. The Plugin will query your sensor xml page to get all the information it needs.

Monitoring states:

  • OK = alarm is off
  • CRITICAL = alarm is on
  • UNKOWN = sensor is not reachable

Installation

The plugin requires at least Python 3.

Usage

usage: check_nano.py [-h] -H HOST

options:
  -h, --help            show this help message and exit
  -H HOST, --host HOST  Nano sensor hostname (Premise)

Your host parameter will get inserted into "http://{args.host}/status.xml" so the final URL you will query against will be:

http://<examle-host.com>/status.xml

Example

# Manual execution example
./check_nano.py -H <exampe-host.com>
check_nano: OK temp=25.6&deg;C, alarm=False|'temp'=25.6

License

The MIT License

Copyright 2022 NETWAYS GmbH

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Icinga check plugin to check the Inveo Nano Temperature Sensor

License:MIT License


Languages

Language:Python 96.9%Language:Makefile 3.1%