------------------------------------------------BUG fix--------------------------------------------
---------------------redis----------------------
[root@HE3 lepus]#vi check_redis.py
148
149 except Exception, e:
150 logger_msg="check redis %s:%s : %s" %(host,port,e)
151 #logger.warning(logger_msg)
152
153 try:
154 connect=0
155 sql="insert into redis_status(server_id,host,port,tags,connect) values(% s,%s,%s,%s,%s)"
151行的注释掉就解决redis不能监控slave的bug了
--------------------mysql复制监控图异常--------------------
---MySQL复制监控中无法看图形
vi /opt/lampp/htdocs/application/controllers/lp_mysql.php
337行,去掉'mysql/replication',改为parent::check_privilege();
原来为parent::check_privilege('mysql/replication');
---修复mysql复制图表时间偏移导致数据不准确
影响:线型图表时间偏移
修复:修改vi /opt/lampp/htdocs/application/controllers/lp_mysql.php
352行找到public function replication()的$chart_reslut[$i]['delay']=$dbdata['delay'],修该为:
$chart_reslut[$i]['delay'] = !empty($dbdata['delay']) ? $dbdata['delay'] : 0;