Community discussions

MikroTik App
 
zentavr
newbie
Topic Author
Posts: 49
Joined: Tue Nov 05, 2013 2:11 pm

Mikrotik Monitoring with Zabbix

Tue Jul 03, 2018 2:53 am

Hi there,

I have implemented the code in Python 2.7.13 which fetch the BGP Counters and RADIUS Client Counters via API.
The main reason is why this code was born is that Mikrotik's vendor does not hurry with implementing SNMP OIDs for the certain interesting counters :(.

SSL and plain API connections are supported. The code is available on Github or Bitbucket

BGP Monitoring

The next BGP counters are being monitored:
* Remote AS
* Prefix Count
* Administrative status of the peer: enabled/disabled
* Peer connection uptime
* Peer connection state
* Comment :)
* Updates Sent
* Updates Received
* Withdrawn Sent
* Withdrawn Received

The next triggers are defined:
* (Info) BGP Remote AS Number had been changed
* (High) Peer is down
* (Warning) Peer lost 10% of its prefixes
* (Average) Peer lost 20% of its prefixes
* (High) Peer lost 30% of its prefixes
* (Warning) BGP Session was restarted
* (Disaster) No prefixes had been received

The next charts had been added:
* Accepted Prefixes
* Established Time
* BGP Updates per sec
* BGP Withdraws per sec

Radius Client Counters Monitoring
The scripts can fetch RADIUS Client counters. Outgoing and Incoming (CoA) counters are supported.

The next counters are in mind:
* Incoming - Acknowleged requests (CoA-ACK)
* Incoming - Bad Requests
* Incoming - Rejected Requests (CoA-NACK)
* Incoming - Requests
* Outgoing - Accepted Requests
* Outgoing - Bad Replies
* Outgoing - Pending Requests
* Outgoing - Rejected Requests
* Outgoing - Resends
* Outgoing - Timeouts

The next Charts are available:
* Outgoing - Requests
* Outgoing - Requests per type
* Outgoing - Pending Requests
* Incoming - Requests
* Incoming - Requests per type

You are welcome to fork, ideas and pull requests.
 
zentavr
newbie
Topic Author
Posts: 49
Joined: Tue Nov 05, 2013 2:11 pm

Re: Mikrotik Monitoring with Zabbix

Wed Jul 04, 2018 6:35 pm

Added IRQ monitoring and charts yesterday.
 
User avatar
pietroscherer
Trainer
Trainer
Posts: 170
Joined: Thu Mar 05, 2015 3:05 pm
Location: RS, Brazil
Contact:

Re: Mikrotik Monitoring with Zabbix

Fri Jul 06, 2018 8:05 pm

Nice project! I'll starting to test soon :D
 
zentavr
newbie
Topic Author
Posts: 49
Joined: Tue Nov 05, 2013 2:11 pm

Re: Mikrotik Monitoring with Zabbix

Mon Jul 01, 2019 12:18 am

* Fixed a bug with BGP disabled peer monitoring
* Added a module which shows the counters for bytes/packets for Firewall rules (rules must have a comment which should start with ZBX word).
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3297
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Mikrotik Monitoring with Zabbix

Mon Jul 01, 2019 2:29 am

Mikrotik's vendor does not hurry with implementing SNMP OIDs for the certain interesting counters :(.
That is why I uses script to send important data in my Splunk for Mikrotik.
viewtopic.php?f=23&t=137338
Se script section 2f

It may be possible to use Splunkt to graphs BGP information as well.

Who is online

Users browsing this forum: 2specelevate and 59 guests