How to monitoring MongoDB Server

6 Giugno 2016 SnetAdmin Comments Off

How to monitor MongoDB servers using contributed Management Pack

This howto will cover the basic steps involved to get you started with MongoDB monitoring using community plugins in combination with our Management Packs.

Step-by-step guide

  • Download the Management pack called MongoDB Servers.json from our contributed section here:

  • Import the management pack in the configuration page, if you want more info about this step please go to the Administrator manual pages 

  • The community project Nagios-MongoDB was used for this management pack and needs to be installed including a few dependencies but is easy to do

  • SSH to your op5 Monitor server and run

  • Unzip the file and copy the plugin to the custom-plugins directory: 
    unzip && cp nagios-plugin-mongodb-master/ /opt/plugins/custom/

  • The plugin requires a python module called “pymongo” and the easiest way to install it is by using pip, however pip is not installed by default so lets install pip and a few other packages needed:
    yum install gcc python-devel python-pip 

  • Next install the required module using pip: pip install pymongo

Now you are ready to use the MongoDB management pack!

Articoli Recenti