Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Cat.net | 63 | 7 years ago | 1 | apache-2.0 | C# | |||||
.Net Client of CAT | ||||||||||
Zabbix Mysql | 34 | 4 years ago | 4 | other | Shell | |||||
Zabbix extensive MySQL monitoring plugin (with LLD) | ||||||||||
Nabbix | 21 | 4 years ago | 1 | mit | C# | |||||
A lightweight, embedded .Net Zabbix Agent | ||||||||||
Zabbix Template For Microsoft Sql Server | 19 | 3 years ago | 19 | gpl-3.0 | PowerShell | |||||
Zabbix templates for Microsoft SQL Server. Features MS SQL performance counters. MS SQL instance Low Level Discovery. MS SQL database Low Level Discovery. MS SQL agent job Low Level Discovery. MS SQL database mirroring monitoring. MS SQL Always On monitoring. MS SQL Log Shipping monitoring. Supported versions Tested on Microsoft SQL Server 2012, 2014 and 2016. It may work with earlier versions, but some items (with missing performance counters) may be unsupported. For the extensive overview on the performance counters difference between MS SQL 2008 and MS SQL 2012 you can read here (https://blog.dbi-services.com/sql-server-2012-new-perfmon-counters/). Tested on Zabbix 3.4.0. It may work with earlier versions, but some items (for example service.info[service,]) may be unsupported. The template was started on Zabbix 2.4.0 but after each new Zabbix version, objects were modified or new things were added. | ||||||||||
Zabbix W3wp | 14 | 10 years ago | 2 | JavaScript | ||||||
Zabbix IIS 7 Worker Process Template | ||||||||||
Linet.mikrotik | 12 | 3 years ago | Python | |||||||
Zabbix Helpers To Fetch Mikrotik's Counters via API | ||||||||||
Metrics Zabbix | 6 | 9 years ago | 1 | November 26, 2013 | 1 | mit | Java | |||
Pdh2zabbix | 5 | 5 years ago | 1 | apache-2.0 | PowerShell | |||||
Creates Zabbix templates for Windows PDH and provides Zabbix instance LLD for counter instances. | ||||||||||
Zabbix Impersonator | 3 | 3 years ago | Go | |||||||
zabbix to prometheus adapter | ||||||||||
Mlogtail | 3 | a year ago | 1 | gpl-3.0 | Go | |||||
Mail log tailing and simple stats collecting application written in Go |
These scripts rely on PyPi librouteros library. The reason is why this code was born is that Mikrotik's vendor does not hurry with implementing SNMP OIDs for the certain interesting counters. When Linet LTD started to migrate to Mikrotiks - they missed an opportunity to monitor the health of their NAS in many ways like they did before.
Currently we monitor the next:
/radius incoming monitor
/radius monitor
/routing bgp peer print status
/system resource irq print
/ip firewall <table> print stats
In the example below we use a template which monitors the single Mikrotik Node. If you want to minitor several Mikrotiks from a single zabbix_agent - you can fetch the concept and clone the items for several Mikrotiks.
The concept is:
zabbix_agentd
available.
The item accepts a couple of parameterszabbix_agentd
configuration filezabbix.py
which returns some data. This bunch of data get
forwarded to zabbix_sender
zabbix_sender
.You need to create an separate group. Go to System - Users and create the new group:
api_read
test
api
read
winbox
Create a user and put it into api_read
group.
Tested with Zabbix 3.2.
There is a Zabbix Template Template Mikrotik API Poke. It contains few macroses which you need probably to re-apply when attach it to your host:
Mikrotik
) - the host name in Zabbix inventory to assign values to.192.168.0.1
) - the IP address API listens toadmin
) - the api user name. read permissions for the user is OK to start.admin
) - the API password-t
) - the additional parameters you want to pass to zabbix.py
script.
Separate with spaces. Probably the most interesting are:
-t
: Use timestamps when sending the values-s
: Use SSL when do API call. The Certificate verification is disabled.-P PLUGINS
: the directory with the plugins to use related to the directory where zabbix.py
is located.Before importing any templates you need to import Value Maps (Administration - General - Value Maps):
The next templates are available:
Template Mikrotik API Poke - defines 2 items which Zabbix server pokes to (user parameters defined in zabbix_agent
config). While it happens, the execution of zabbix.py
happens - it pokes for values using Mikrotik API and
forwarding the results through zabbix_sender
happens.
The template should be attached to the host where zabbix_sender and Python is installed. Also, the macroses should be defined (see above).
Template Mikrotik BGPv4 - is being used for BGP Peers Monitoring. It discovers for the peers using low level discovery, assigns items and triggers for the peer and also builds a couple of charts.
The template should be attached to the Mikrotik node.
Very likely, you need to edit an every single item and define/redefine Allowed Hosts
value. The default is
127.0.0.1
. This option tells Zabbix from which hosts it will accept the values for Zabbix Trapper items.
Template Mikrotik Firewall Statistics Monitors the stats coming from Mikrotik Firewall. In order to discover the
rule, assign a comment to it. The comment must start with ZBX
in order to be monitored by the plugin. Currently
we monitor bytes and packets per second values. The chart is available for the counters as well.
The template should be attached to the Mikrotik node. likely, you need to
edit an every single item and define/redefine Allowed Hosts
value.
The default is 127.0.0.1
. This option tells Zabbix from which hosts it will accept the values for Zabbix Trapper
items.
Template Mikrotik Radius Counters - is being used for RADIUS Client counters monitoring. It discovers the servers defined in Mikrotik's settings and adds items and charts for them. It monitors RADIUS Incoming CoA counters as well.
The template should be attached to
the Mikrotik node. Very likely, you need to edit an every single item and define/redefine Allowed Hosts
value.
The default is 127.0.0.1
. This option tells Zabbix from which hosts it will accept the values for Zabbix Trapper
items.
Template Mikrotik IRQ Counters - is being used for System IRQ counters monitoring. It discovers the IRQs available in Mikrotik's settings and adds items and charts for them.
The template should be attached to
the Mikrotik node. Very likely, you need to edit an every single item and define/redefine Allowed Hosts
value.
The default is 127.0.0.1
. This option tells Zabbix from which hosts it will accept the values for Zabbix Trapper
items.
The code uses Python 2 (tested in 2.7.13). All the dependencies are listed in requirements.txt file.
Very likely you will use Virtualenv for the installation. I used /etc/zabbix/.venv
as a viartualenv directory.
As usual, everything which is in /etc/zabbix/zabbix_agentd.d
gets included by zabbix_agentd
. Put or symlink
userparameter_mikrotik_getdata.conf to something in
/etc/zabbix/zabbix_agentd.d
in order to start.
It doesn't work on Python 2.7.6 which is in Ubuntu 14.04 LTS. As a solution was to take an idea in
this article, compile Python 2.7.13 and create the virtualenv
.
Also, these commands had been used in virtualenv as well:
pip install -U setuptools
pip install -U pip
Low Level discovery plugins are in lld_plugins
folder. Everything which is *.py
(except __*
) will be dynamically
included and run()
with the parameters will be executed.
./zabbix.py -H 192.168.0.1 -u apiuser -p apipassword -s -P lld_plugins 2>/dev/null
The plugins which fetch the data using API calls are in plugins
folder. Everything which is *.py
(except __*
) will
be dynamically included and run()
with the parameters will be executed.
./zabbix.py -H 192.168.0.1 -u apiuser -p apipassword -s 2>/dev/null
On the Zabbix server an item of type Zabbix trapper should be created with corresponding key(s). Note that incoming values will only be accepted from hosts specified in Allowed hosts field for this item.
Read the values from file:
zabbix_sender -c /etc/zabbix/zabbix_agentd.conf \
--host mtik.local \
--input-file /path/to/parameters_file
Read the values from STDIN:
cat /path/to/parameters_file | zabbix_sender -c /etc/zabbix/zabbix_agentd.conf \
--host mtik.local \
--real-time \
--input-file -