监控memcached

监控memcached的运行情况还是很有必要的,当前尝试了如下几种方式:

 

1。telnet方式

 

通过运行命令行telnet 127.0.0.1 11211,然后运行stats,得到如下内容:

stats
STAT pid 2220
STAT uptime 272669
STAT time 1249292478
STAT version 1.2.1
STAT pointer_size 32
STAT curr_items 4
STAT total_items 4
STAT bytes 986
STAT curr_connections 21
STAT total_connections 51
STAT connection_structures 27
STAT cmd_get 13
STAT cmd_set 4
STAT get_hits 9
STAT get_misses 4
STAT bytes_read 1152
STAT bytes_written 2112
STAT limit_maxbytes 67108864
END

 

2。MemCacheD Manager, by Nick Pirocanac

 

安装完毕后,add server,输入ip即可,显示界面如下:

 

3。其他方式

HowToMonitor  
Monitoring memcached

Or, just do a simple connect to the port where memcached is listening. You can run a simple command like 'version' or 'stats' to see if memcached is listening.

你可能感兴趣的:(django,python,memcached,OpenSource,nagios)