블로그 이미지
LifeisSimple

calendar

1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

Notice

'template'에 해당되는 글 1

  1. 2011.01.21 [MongoDB] MongoDB Cacti Plugin Templates
2011. 1. 21. 18:12 Brain Trainning/NoSQL
Cacti 에서 MongoDB를 모니터링 할 수 있는 Plugin 입니다. 


Overview

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+ of MongoDB.

This document should be correct and complete as of version 1.1.8 of the graphs. Please use the issue tracker or the mailing list to report any errors or omissions. If you have any sample graphs that are better than those shown, please contribute!

Installation

Once the SSH setup is working, confirm that you can login to MongoDB from with the "mongo" cli tool. From this tool, confirm that 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.

su - cacti -c 'env -i php /var/www/cacti/scripts/ss_get_by_ssh.php --type mongodb --host 127.0.0.1 --items dc,dd'

Background Flushes

Commands

Connections

Index Operations

Memory

posted by LifeisSimple
prev 1 next