easy_install pip
wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate
python get-pip.py
pip install tornado redis python-dateutil
若是 Python < 2.7 須要安裝
pip install argparse
git clone https://github.com/kumarnitin/RedisLive.githtml
#配置
{
"RedisServers":
[
{
"server": "192.168.210.31",
"port" : 6379
},
{
"server": "192.168.210.63",
"port" : 6379
}
],
"DataStoreType" : "sqlite",
"SqliteStatsStore":
{
"path": "/opt/RedisLive/src/db/redislive.sqlite"
}
}
#啓動
./redis-monitor.py –duration 120 &./redis-live.py &python
#安裝:
yum install tmux
#基本使用
tmux # 運行 tmu2 以256終端運行
C-b d # 返回主 shell , tmux 依舊在後臺運行,裏面的命令也保持運行狀態
tmux ls # 顯示已有tm(C-b s)
tmux attach-session -t 選擇tmux
tmux new-session -s sessiona
tmux kill-session -t session-melinux
git clone git@github.com:opserver/Opserver.gitios
REFER:
http://www.nkrode.com/article/real-time-dashboard-for-redis
http://www.linuxyan.com/cacti-nagios/231.html
Redis監控方案
http://my.oschina.net/guol/blog/182265
Redis系列(五)-Opserver的監控
http://www.cnblogs.com/mushroom/p/4609365.htmlgit