Skip to main content

Monitoring plugin for MikroTik devices for Icinga-Nagios-...

Project description

check_routeros - Monitoring MikroTik devices

GitHub issues GitHub forks GitHub stars GitHub license Documentation Icinga Exchange PyPI - Downloads PyPI - Python Version PyPI - Format PyPI - Status

This is a monitoring plugin for Icinga, Nagios and other compatible monitoring solutions to check MikroTik devices running RouterOS. It uses the API to fetch the required information.

Requirements

Installation

PIP

If you want to use pip we recommend to use as virtualenv to install the dependencies.

pip install -r requirements.txt

Copy the script check_routeros.py and the directory routeros_check into your plugin directory.

Debian/Ubuntu

Install the required packages

sudo apt-get install python3 python3-click python3-librouteros python3-nagiosplugin

Copy the script check_routeros.py and the directory routeros_check into your plugin directory.

From PyPI

Install the package from PyPI.

pip install routeros-check

You should be able to run check_routeros after the package installation has been finished successfully.

Note You have to update the command in the icinga CheckCommand example config.

Usage

To get the latest help just run the following command.

./check_routeros.py --help

To get help for a subcommand just extend the previous command with the subcommand. In the example below you will see how to get help for the tool.ping subcommand.

./check_routeros.py tool.ping --help

Subcommands/Checks

All commands require at least api and read permissions. The permissions documented in the table are additional permissions.

Subcommand Permissions RouterOS Description
interface - 6, 7 Check interfaces
interface.gre - 6 Check GRE interfaces/tunnels
interface.vrrp - 6 Check the state of an VRRP interface
routing.bgp.peers - 6 Check if connection to BGP peers is established
routing.ospf.neighbors - 6 Check if ospf neigbhors are reachable
system.clock - 6, 7 Check the time from RouterOS against local time
system.cpu - 6, 7 Check the cpu load
system.fan - 6, 7 Check the fans
system.memory - 6, 7 Check system memory
system.ntp.client - 6, 7 Check the ntp client, offset and stratum
system.license - 6, 7 Check the license level and deadline and renewal date
system.power - 6, 7 Check the overall power consumption if available
system.psu - 6, 7 Check the current, voltage and state of the power supply
system.temperature - 6, 7 Check the cpu, system, board and more temperatures.
system.update - 6, 7 Check for updates
system.uptime - 6, 7 Check the uptime
tool.ping test 6, 7 Run the ping command on the device

To get more information about the available subcommands/checks have a look at the check_routeros Command Reference

Resources

License

GPLv3+

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

routeros_check-0.11.0.tar.gz (100.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

routeros_check-0.11.0-py3-none-any.whl (68.5 kB view details)

Uploaded Python 3

File details

Details for the file routeros_check-0.11.0.tar.gz.

File metadata

  • Download URL: routeros_check-0.11.0.tar.gz
  • Upload date:
  • Size: 100.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for routeros_check-0.11.0.tar.gz
Algorithm Hash digest
SHA256 0ae9a3d87dcffe02987fd960bb8d8f256ba549dad578d372a40c299961732b2c
MD5 fd9440092b8e992504c92a1dea1439e3
BLAKE2b-256 f6f399e5e1b49b910148c0611a698f22252a12f7640c726b0231a1d42cde0178

See more details on using hashes here.

File details

Details for the file routeros_check-0.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for routeros_check-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee9702fe61cac95112624f4cd1484553f6984b09933e25975a2db290fbe6c678
MD5 b0290d4749318ee772586e9b2f3cffc1
BLAKE2b-256 6c0d2440550e8cd108a1a78d72e5aa4ea84a3e20142ec28952026d418fd32f78

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page