Hi everyone.
We were looking for a simple and fast way to monitor MongoDB stats. Mikoomi tool was a bit outdated so we decided to make up our own.
Basically it's a python script which collects output from db.serverStatus() command and sends it to Zabbix. On a Zabbix server side you need to create trappers for the stats you are going to monitor. The script itself is run by cron (every minute in our case) and according to our data it doesn't significantly affect db server health.
The stats are listed in zbx_var.txt file, so feel free to remove unneeded.
The script was intended to be for internal use only, could be optimized.
PS: Our programmer doesn't really speak English, be warned
Zabbix version: 2.4.7
MongoDB version: 3.2.4
We were looking for a simple and fast way to monitor MongoDB stats. Mikoomi tool was a bit outdated so we decided to make up our own.
Basically it's a python script which collects output from db.serverStatus() command and sends it to Zabbix. On a Zabbix server side you need to create trappers for the stats you are going to monitor. The script itself is run by cron (every minute in our case) and according to our data it doesn't significantly affect db server health.
The stats are listed in zbx_var.txt file, so feel free to remove unneeded.
The script was intended to be for internal use only, could be optimized.
PS: Our programmer doesn't really speak English, be warned
Zabbix version: 2.4.7
MongoDB version: 3.2.4
Comment