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

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.

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 Description
interface.gre - Check GRE interfaces/tunnels
interface.vrrp - Check the state of an VRRP interface
routing.bgp.peers - Check if connection to BGP peers is established
routing.ospf.neighbors - Check if ospf neigbhors are reachable
system.cpu - Check the cpu load
system.fan - Check the fans
system.memory - Check system memory
system.license - Check the license level and deadline and renewal date
system.power - Check the overall power consumption if available
system.psu - Check the current, voltage and state of the power supply
system.temperature - Check the cpu, system, board and more temperatures.
system.uptime - Check the uptime
tool.ping test Run the ping command on the device

To get more information about the available subcommands/checks haf 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.7.0.tar.gz (70.2 kB view details)

Uploaded Source

Built Distribution

routeros_check-0.7.0-py3-none-any.whl (55.6 kB view details)

Uploaded Python 3

File details

Details for the file routeros-check-0.7.0.tar.gz.

File metadata

  • Download URL: routeros-check-0.7.0.tar.gz
  • Upload date:
  • Size: 70.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for routeros-check-0.7.0.tar.gz
Algorithm Hash digest
SHA256 abe520851e52d72c7fbf1bffb3afa9da3c7024bfcb3ca6a13e317dc3498ec126
MD5 066b20b347d5b92d844f6758d5ee055c
BLAKE2b-256 e0545106ea019a430a66d58a5c67c50bf715ad7651fcd8d41f184969892b53a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for routeros_check-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 705c5aaa7578a82c0a3a68839e9441cea8ce3a67bf9509bc96ef0da3522aadd7
MD5 3e6225476fc7bb4a3dda89bd41fa2161
BLAKE2b-256 c63a14a5cf08b34e21287ab1859f1afa0a092fb567e0d031e8c69dbfb45202bb

See more details on using hashes here.

Supported by

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