Chinaunix首页 | 论坛 | 博客
  • 博客访问: 330422
  • 博文数量: 67
  • 博客积分: 405
  • 博客等级: 一等列兵
  • 技术积分: 1278
  • 用 户 组: 普通用户
  • 注册时间: 2013-01-09 15:39
个人简介

本人从事 Linux Mysql PHP 开发多年,联系QQ:83882066 ,希望接触到更新的web开发软件,开此博客希望能把自己的经验和接触的东西与大家进行共享。 详细介绍: http://blog.chinaunix.net/uid-28543558-id-3492336.html 新博客地址: http://luhuang.sinaapp.com

文章分类

全部博文(67)

文章存档

2013年(67)

我的朋友

分类: Web开发

2013-02-21 14:32:46

监控工具很多,有
cacti,nagos,zabbx等等。这里我说的将是10gen发布的MongoDB监控系统MMS

一、登录注册用户

,在这里注册你自己的用户信息。

二、登录进去后看到如下内容:

三、添加主机

点击Hosts,你要监控的主机添加进去。但是这个时候,是不会有任何的数据的,需要我们配置代理。

四、配置环境

1、安装python 2.4或更高版

   #yum install python-setuptools

2、安装simplejsonhmachashlib

#easy_install simplejson==2.1.0 hmac hashlib 

     注意:这里一定要是2.1.0的版本,高版本会出现如下问题的:

python agent.py

Traceback (most recent call last):

  File "agent.py", line 9, in ?

    import logConfig

  File "/usr/local/agent/mms-agent/logConfig.py", line 19, in ?

    import simplejson as json

  File "/usr/lib/python2.4/site-packages/simplejson-2.5.0-py2.4.egg/

simplejson/__init__.py", line 112, in ?

    from encoder import JSONEncoder

  File "/usr/lib/python2.4/site-packages/simplejson-2.5.0-py2.4.egg/

simplejson/encoder.py", line 398

    if (not _bigint_as_string or

     ^

SyntaxError: invalid syntax

     补充:simplejson 2.1.0的安装方式

下载:simplejson 2.1.0

#wget

#./setup.py -q bdist_egg --dist-dir /tmp/simplejson

#chmod +x simplejson-2.1.0-py2.4-linux-x86_64.egg

#easy_install simplejson-2.1.0-py2.4-linux-x86_64.egg 

四、下载mms-agent

#wget

      #unzip 10gen-mms-agent-wkgbc.zip

       #python agent.py &

说明:当添加好主机后,一定要等30minutes才会有数据的显示。这个更新是每10每种更新一次的。

五、截几个图

图一、(shard模式)

图二、

图三、

图四、(数据库里本来就没有数,所以图也没有东东

注要参考信息:

阅读(1582) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~