Code Monkey home page Code Monkey logo

check_mikrotik_os's Introduction

check_Mikrotik_OS

Python3 plugin to Check Mikrotik firmware and os versions on routerboard devices.

This script has been tested on RB2011L & RB750GL.

Requirements Setup & Testing

This Nagios plug-in uses python 3 with the following module dependencies:

  1. argparse
  2. pysnmp
  3. packaging

SNMP must be enabled on the routerboard device to allow read access from the Nagios host.

Only SNMP v2c is currently supported. I might be tempted to implement SNMP v3 on request.

The nagios server must have access to the internet (specifically upgrade.mikrotik.com) in order to retrieve the latest version.

Prior to configuring within Nagios is recommended you verify the script works from the command line first.

The script must always be supplied with the following options:

-H, –hostIP Mikrotik Router IP Address -v, --snmpVersion SNMP Version (only 2c currently supported) -C, --snmpCommunity SNMP Community String (only v1 and 2c) -c, --mikrotikReleaseChannel The mikrotik release channel to check for updates against: Bugfix, Current or ReleaseCandidate

Example Command Line

./check_Mikrotik_OS.py -H 192.168.1.1 -v 2c -C public -c Current

Example Nagios Configuration

define command{ command_name Mikrotik_Version command_line /usr/local/MyNagiosPlugins/check_Mikrotik_OS.py -H $HOSTADDRESS$ -v $ARG1$ -C $ARG2$ -c $ARG3$ }

define service{ use generic-service host_name router1, router2 service_description Mikrotik Router OS And Firmware Version check_command Mikrotik_Version!2c!public!Current }

check_mikrotik_os's People

Contributors

mtdoughty avatar qistoph avatar

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.