cacti监控memcache


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 /usr/local/apache/htdocs/cacti/scripts
 
  
Cacti - Import Templates - Import Template from Local File - cacti_memcached_host_template.xml -

save
 
注:以上设置只是针对默认端口11211,但是当你的端口不是11211,而是其他的端口,比如我的是12000,这样

的话你就要对你的cacti的data source做下小更改了,
 
操作如下:
  Console---Data Input Methods--Memcached – Statistics
  找到Input String的值python <path_cacti>/scripts/memcached.py <hostname>
  更改成:python <path_cacti>/scripts/memcached.py –p 12000 <hostname>
  如果你是其他端口的,只要将端口号更改成其他的值就可以了!