MongoDB

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: https://kb.op5.com/x/LwJH

  • 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
    wget https://github.com/mzupan/nagios-plugin-mongodb/archive/master.zip

  • Unzip the file and copy the plugin to the custom-plugins directory: 
    unzip master.zip && cp nagios-plugin-mongodb-master/check_mongodb.py /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

Categoria