Percona MongoDB Monitoring Template for Cacti

These templates use ss_get_by_ssh.php to connect to a server via SSH and extract statistics from the MongoDB server running there, by executing the serverStatus admin command from the MongoDB shell. This means that the mongo CLI needs to be in $PATH and you must be running version 1.2 or newer of MongoDB.

Installation

Once the SSH connection is working, confirm that you can login to MongoDB from with the “mongo” cli tool. From this tool, confirm that the serverStatus command is present by running:

db._adminCommand({serverStatus : 1});

This should produce quite a bit of output. With all of this confirmed, test one of your hosts with the command below. You may need to change some of the example values below, such as the cacti username and the hostname you’re connecting to:

sudo -u cacti php /usr/share/cacti/scripts/ss_get_by_ssh.php --type mongodb --host 127.0.0.1 --items mk,ml

Sample Graphs

The following sample graphs demonstrate how the data is presented.

../_images/mongodb_background_flushes.png

Background flushes

../_images/mongodb_commands.png

Commands

../_images/mongodb_connections.png

Connections

../_images/mongodb_index_ops.png

Index Operations

../_images/mongodb_memory.png

Memory

Percona Monitoring Plugins
Call Us
+1-888-316-9775 (USA - Sales)
+1-208-473-2904 (USA - Sales)
+44-208-133-0309 (UK - Sales)
0-800-051-8984 (UK - Sales)
0-800-181-0665 (GER - Sales)
+1-877-862-4316 (Emergency)
+1-855-55TRAIN (Training)
+1-925-271-5054 (Training)

Table Of Contents

Previous topic

Percona Memcached Monitoring Template for Cacti

Next topic

Percona Nginx Monitoring Template for Cacti



© Copyright 2012, Percona Inc.
Except where otherwise noted, this documentation is licensed under the following license:
CC Attribution-ShareAlike 2.0 Generic
This documentation is developed in Launchpad as part of the Percona Monitoring Plugins source code.
If you spotted innacuracies, errors, don't understood it or you think something is missing or should be improved, please file a bug.
]]>