利用cacti监控memcache(1)
利用cacti监控memcache(1)
利用cacti监控memcache实施步骤如下:
我们在部署好memcache以后,并不意味着不管不顾,更多的我们应该监控memcahce的状态,内存使用情况,hit/miss值是多少,利用 cacti能够很形象的监控memcache的各个参数,接下来我们就来了解下如何利用cacti来监控我们的memcache!
首先我们可以从官网上学习如何添加cacti和memcache监控!地址如下:
http://dealnews.com/developers/cacti/memcached.html
我们来详细说下操作步骤!
1、Python Client API Installation
下载Python Client API(在cacti服务器上下载)
wget ftp://ftp.tummy.com/pub/python-memcached/python-memcached-1.45.tar.gz
tar xzvf python-memcached-1.45.tar.gz
python setup.py install
我运行上面的命令的时候出现如下错误
Traceback (most recent call last):
File "setup.py", line 3, in ?
from setuptools import setup
ImportError: No module named setuptools
解决办法:yum -y install python-setuptools
安装成功后再次 python setup.py install 安装就可以成功了。
2、Template Installation
wget http://content.dealnews.com/dealnews/developers/cacti-memcached-1.0.tar.gz
tar zxvf cacti-memcached-1.0.tar.gz
cd cacti-memcached
把memcached.py 拷贝到Cacti 的scripts目录下!
评论暂时关闭