Cacti监控Memcached
1在cactiserver安装memcached的客户端
在ftp.tummy.com:/pub/Python-memcached/ 下载memcached的客户端,
并确认在该系统上python-setuptools-0.6c5-2.el5 软件包已经安装,如果没有安装请先安装该软件
3安装客户端python-memcached-1.45.tar.gz
#tar xvf python-memcached-1.45.tar.gz
#cd python-memcached-1.45
# python setup.py install
4下载cacti监控memcached的模板
http://content.dealnews.com/dealnews/developers/cacti-memcached-1.0.tar.gz
并把该模板导入到cacti中
#tar xvf cacti-memcached-1.0.tar.gz
#cd cacti-memcached-1.0
并把下面的文件拷贝到/var/www/html/cacti/scripts 下面
# cp memcached.py /var/www/html/cacti/scripts
可以执行下面的命令进行测试
python memcached IP –p 11211
显示的结果如下
total_items:0 get_hits:0 uptime:2549 cmd_get:0 time:1284391781 bytes:0 curr_connections:5 connection_structures:6 bytes_written:31678 limit_maxbytes:419430400 cmd_set:0 curr_items:0 rusage_user:0.003999 get_misses:0 rusage_system:0.007998 bytes_read:287 total_connections:46
并把cacti_memcached_host_template.xml 导入到cacti中