资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

配置Cacti0.8.8a监控Memcache

配置Cacti 0.8.8a监控Memcache

创新互联公司专业提供成都主机托管四川主机托管成都服务器托管四川服务器托管,支持按月付款!我们的承诺:贵族品质、平民价格,机房位于中国电信/网通/移动机房,遂宁联通机房服务有保障!

系统:CentOS 6.3x86_64

一、安装memcache客户端API

1、解决依赖关系

可以使用yum来安装

[root@message3 ~]# yum -y install python python-setuptools

2、下载安装

在ftp://ftp.tummy.com/pub/python-memcached/下载最新版本

[root@message3 ~]# wgetftp://ftp.tummy.com/pub/python-memcached/python-memcached-1.53.tar.gz

[root@message3 ~]# tar xf python-memcached-1.53.tar.gz

[root@message3 ~]# cd python-memcached-1.53

[root@message3 python-memcached-1.53]# python setup.py install

[root@localhost ~]# tar xf python-memcached-1.48.tar.gz

[root@localhost ~]# cd python-memcached-1.48

[root@localhost python-memcached-1.48]# python setup.py install

二、下载安装数据收集脚本和模板

在http://dealnews.com/developers/cacti/memcached.html下载最新版本

[root@message3 ~]# tar xf cacti-memcached-1.0.tar.gz

[root@message3 ~]# wgethttp://s31.dlnws.com/dealnews/developers/cacti-memcached-1.0.tar.gz

[root@message3 ~]# cd cacti-memcached-1.0

[root@message3 cacti-memcached-1.0]# cp   memcached.py  /var/www/html/cacti/scripts/

2、通过浏览器访问cacti导入cacti_memcached_host_template.xml文件,需要在本机也要下载这个包。选择文件,选择cacti_memcached_host_template.xml。

配置Cacti 0.8.8a监控Memcache

注意:如果你的memcached的端口不是默认的11211端口则需要修改执行脚本的命令,如图

配置Cacti 0.8.8a监控Memcache

点击Data Input Methods选择的Memcached – Statistics

配置Cacti 0.8.8a监控Memcache

在执行的脚本后边通过添加 –p选项来指定你的memcache端口即可,例如我这里指定的1111端口

三,监控memcached服务器,需要在device中添加,选择memcached模板就ok了,详情参考如果无法出图,检查iptables有没有开放11211端口。

配置Cacti 0.8.8a监控Memcache

一共可以绘出6张图。



文章题目:配置Cacti0.8.8a监控Memcache
分享URL:http://cdkjz.cn/article/ihejsp.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

业务热线:400-028-6601 / 大客户专线   成都:13518219792   座机:028-86922220