redis监控脚本

while [ 1 == 1 ]  ; do   now=$(date "+%Y-%m-%d_%H:%M:%S")  ; echo "=========================${now}==============================="  ; echo "#Client-Monitor"  ; redis-cli -h 192.168.10.99 -p 7001 -a hhly client list | grep monitor  ; redis-cli -h 192.168.10.99 -p 7001 -a hhly info clients  ; redis-cli -h 192.168.10.99 -p 7001 -a hhly info memory ;usleep 1000000  ; done

 

http://carlosfu.iteye.com/blog/2254571

 

posted @ 2017-07-21 19:28  Agoly  阅读(663)  评论(0编辑  收藏  举报