添加oracle监控的时候,默认开启了对表空间的监控,但是lepus对表空间的使用率计算方式上考虑不全面,所以打算关掉表空间的监控,
但是关闭后,在首页仪表盘里显示,表空间的监控还是开启的,但是数据已经不更新了,看着很别扭,文档也没有此方面的说明,只能从数据库层面去处理了
从oracle监控页面显示,表空间的监控已经关闭;
但是从首页仪表盘上看,表示红圈,看着不舒服
从数据库里查看
mysql> select host,port,tablespace,tablespace_tips from db_status where db_type='ORACLE'\G
*************************** 1. row ***************************
host: 192.168.100.135
port: 1521
tablespace: 3
tablespace_tips:
item: tablespace(SYSAUX)
value: 100%
level: critical
time: 2015-03-31 18:21:54
*************************** 2. row ***************************
host: 192.168.100.136
port: 1521
tablespace: 3
tablespace_tips:
item: tablespace(SYSTEM)
value: 98%
level: critical
time: 2015-03-31 18:22:02
*************************** 3. row ***************************
host: 192.168.100.141
port: 1521
tablespace: -1
tablespace_tips: -1
从上面三跳信息可以看出来,只要把 tablespace_tips置为-1,就可以
mysql> update db_status set tablespace_tips=-1 where db_type='ORACLE' and tablespace_tips <> -1;
mysql> update db_status set tablespace=-1 where db_type='ORACLE' and tablespace <> -1;
再次刷新页面;
但是关闭后,在首页仪表盘里显示,表空间的监控还是开启的,但是数据已经不更新了,看着很别扭,文档也没有此方面的说明,只能从数据库层面去处理了
从oracle监控页面显示,表空间的监控已经关闭;
但是从首页仪表盘上看,表示红圈,看着不舒服
从数据库里查看
mysql> select host,port,tablespace,tablespace_tips from db_status where db_type='ORACLE'\G
*************************** 1. row ***************************
host: 192.168.100.135
port: 1521
tablespace: 3
tablespace_tips:
item: tablespace(SYSAUX)
value: 100%
level: critical
time: 2015-03-31 18:21:54
*************************** 2. row ***************************
host: 192.168.100.136
port: 1521
tablespace: 3
tablespace_tips:
item: tablespace(SYSTEM)
value: 98%
level: critical
time: 2015-03-31 18:22:02
*************************** 3. row ***************************
host: 192.168.100.141
port: 1521
tablespace: -1
tablespace_tips: -1
从上面三跳信息可以看出来,只要把 tablespace_tips置为-1,就可以
mysql> update db_status set tablespace_tips=-1 where db_type='ORACLE' and tablespace_tips <> -1;
mysql> update db_status set tablespace=-1 where db_type='ORACLE' and tablespace <> -1;
再次刷新页面;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23249684/viewspace-1483607/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/23249684/viewspace-1483607/