3

Cacti 添加 Memcached 监控

 2 years ago
source link: https://blogread.cn/it/article/1631?f=hot1
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Cacti 添加 Memcached 监控

浏览:7457次  出处信息

因为python的模板使用了python来获取数据,所以需要安装python环境以及python的memcached客户端

1.安装ez_setup工具

wget -q http://peak.telecommunity.com/dist/ez_setup.py

python ez_setup.py

2.安装python的memcached客户端

wget ftp://ftp.tummy.com/pub/python-memcached/python-memcached-1.45.tar.gz

tar -zxvf  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

cp memcached.py /var/www/cacti/scripts/

可以进行测试: python memcached.py192.168.1.11

会有如下类似输出:

total_items:33475 get_hits:72993 uptime:339594 cmd_get:72993 time:1274776533 bytes:870220 curr_connections:11 connection_structures:14 bytes_written:44760499 limit_maxbytes:1073741824 cmd_set:33527 curr_items:1377 rusage_user:2.472154 get_misses:67152 rusage_system:6.628414 bytes_read:6793684 total_connections:36729

4.在cacti中引入memcached模板,具体可以参考相关 cacti 的模板安装方法

5.参考资料

http://dealnews.com/developers/cacti/memcached.html

http://www.docin.com/p-47052887.html

建议继续学习:

QQ技术交流群:445447336,欢迎加入!
扫一扫订阅我的微信号:IT技术博客大学习

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK