Cacti监控memcached

文中涉及到所有文件,均已在附件中 

Cacti监控memcached操作步骤:

1、下载(上传到Cacti服务器上/opt目录):ftp://ftp.tummy.com/pub/python-memcached/python-memcached-1.48.tar.gz
2、解压并安装
cd /opt
tar xzvf python-memcached-1.48.tar.gz(解压)
yum -y install python-setuptools(安装python工具,方便下一步操作)
cd python-memcached-1.48
python setup.py install(安装memcache客户端)
3、获取、配置Cacti-memcached模板
http://tag1consulting.com/files/cacti-memcached-1.0.2.tar.bz2(获取安装包的地址)
解压后把里面的memcached.py复制到cacti的scripts目录下
进cacti控制台把模板导入进去
以上完毕后测试一下:输入命令python /<cacti-path>/scripts/memcached.py 10.88.0.5(此IP地址为安装有memcached业务的服务器IP)后有类似如下提示则说明成功:
total_items:248504 get_hits:9391 uptime:97412 cmd_get:13285 time:1366335409 bytes:3993996 curr_connections:120 connection_structures:281 bytes_written:76797616 limit_maxbytes:134217728 cmd_set:248504 curr_items:15054 rusage_user:25.356145 get_misses:3894 rusage_system:92.918874 bytes_read:77106580 total_connections:1450(数字不一定与此行一致)

 

你可能感兴趣的:(memcached,监控,cacti)