If you try now to install Munin monitoring for MongoDB database, you’ll find in the Mongo’s documentation, a link to an repository for munin plugins. The bad thing is this repository were updated for the last time on Feburay 2012. Of course, since 2012, MongoDB evolved and this plugins were not working at all on a recent version of MongoDB (2.6+).
Principally because MongoDB now removed the auto activation of the rest server (for security reasons).
For my uses, I forked the fork to add another graph monitoring the number of documents in the database, and a basic setup for Ubuntu.
Update (2014/09/25): The document plugin was not returning the correct number of document, but the number of events. It’s now fixed
Update (2014/09/20): Adam Comerford merged my branch into his:
Adam’s fork: https://github.com/comerford/mongo-munin
Installation for Munin (ubuntu)
sudo apt-get install pip sudo apt-get install build-essential python-dev sudo pip install pymongo
git clone https://github.com/comerford/mongo-munin.git /tmp/mongo-munin sudo cp /tmp/mongo-munin/mongo_* /usr/share/munin/plugins sudo ln -sf /usr/share/munin/plugins/mongo_btree /etc/munin/plugins/mongo_btree sudo ln -sf /usr/share/munin/plugins/mongo_conn /etc/munin/plugins/mongo_conn sudo ln -sf /usr/share/munin/plugins/mongo_lock /etc/munin/plugins/mongo_lock sudo ln -sf /usr/share/munin/plugins/mongo_mem /etc/munin/plugins/mongo_mem sudo ln -sf /usr/share/munin/plugins/mongo_ops /etc/munin/plugins/mongo_ops sudo ln -sf /usr/share/munin/plugins/mongo_docs /etc/munin/plugins/mongo_docs sudo chmod +x /usr/share/munin/plugins/mongo_* sudo service munin-node restart
React to this article!
Did I miss something? I'd really liked to know your though about this.
If you like this article, please 📣 share-it!