用cacti监控memcached状态
cacti 配置步骤略
1,安装python环境
1 | yum install python python-setuptools -y |
2,安装python-memcached
1 2 3 4 | wget ftp://ftp.tummy.com/pub/python-memcached/python-memcached-1.45.tar.gz tar xzvf python-memcached-1.45.tar.gz cd python-memcached-1.45 python setup.py install |
3,安装cacti-memcached
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目录下,然后进入Cacti控制界面点击
Import Templates –> Import Template from Local File
在浏览里面选择 cacti_memcached_host_template.xml 这个文件
问题描述,这个官方模板只能监听默认端口号码的memcached
wget http://tag1consulting.com/files/cacti-memcached-1.0.2.tar.bz2
使用这个模板可以监听指定端口号码的memcached
4,查看memcached信息
python
5,按照cacti常规添加节点步骤添加节点即可