OEM 13C禁用"Global Cache Blocks Lost Metric"報警信息
前言
最近OEM剛剛部署好,配置好郵件報警功能后,會比較頻繁的報警如下信息:
EM Event: Critical:szceb_szceb1 - Metrics Global Cache Blocks Lost is at 264
Host=xxxxx1 Target type=Database Instance Target name=xxxxx_xxxxx1 Categories=Error Message=Metrics Global Cache Blocks Lost is at 264 Severity=Critical Event reported time=Aug 6, 2020 5:17:56 PM CST Operating System=Linux Platform=x86_64 Associated Incident Id=86 Associated Incident Status=New Associated Incident Owner= Associated Incident Acknowledged By Owner=No Associated Incident Priority=None Associated Incident Escalation Level=0 Event Type=Metric Alert Event name=rac_global_cache:lost Metric Group=Global Cache Statistics Metric=Global Cache Blocks Lost Metric value=264 Key Value= Rule Name=Incident management rule set for all targets,Create incident for critical metric alerts Rule Owner=System Generated Update Details: Metrics Global Cache Blocks Lost is at 264
對於該問題,可能網絡會存在問題,簡單的搜索並診斷后,發現網絡目前看不出啥問題。
集群日志也正常,但是郵件確是報了很多次,想着先把這類信息禁用掉,待查明看是否真的存在問題在決定是否啟用。
如何禁用
參考如下mos文檔:
EM 13c: How to disable "Global Cache Blocks Lost Metric" Using EMCLI (Doc ID 2543134.1)
EM 13c, 12c: 'emcli modify_collection_schedule' Command Shows Collection Name Is Not Valid (Doc ID 2521116.1)
在OEM服務器,
[oracle@oem13c ~]$ cd $OMS_HOME/bin [oracle@oem13c bin]$ ./emcli login -username=sysman Enter password : Login successful [oracle@oem13c bin]$ ./emcli sync Synchronized successfully [oracle@oem13c bin]$ $OMS_HOME/bin/emcli modify_collection_schedule -targetType="oracle_database" -targetNames="xxxxx1" -collectionName="rac_global_cache_10i" -collectionStatus=Disabled -preview="N" oracle_database : Collection Name not valid.
哦豁,直接報錯oracle_database : Collection Name not valid了。
網上搜不到啥信息,搞了半個多鍾發現郵件內容中有包含有Target name的名字,可能是命令中的-targetNames="xxxxx1"是有問題的?
由於Doc ID 2543134.1中給的示例為
因此我是直接將<DBInstanceName>換成實例名了,結果貌似不對。用郵件中Target name對應的名字再試試看,
[oracle@oem13c bin]$ ./emcli modify_collection_schedule -targetType="oracle_database" -targetNames="xxxxx_xxxxx1" -collectionName="rac_global_cache_10i" -collectionStatus=Disabled -preview="N" Collection Name : rac_global_cache_10i szceb_szceb1 : Collection Schedule updated successfully. The collection schedule of the following metrics might be affected : rac_global_cache
em......
有時候覺得mos的內容也挺坑的......
由於不止target name報出來,那么先只禁用這個,看看還會不會報,在禁用其他的。