您好,登錄后才能下訂單哦!
Oracle通過DataGuard作為異地備份,可以通過監(jiān)控主備的歸檔日志序列之差
vim orabbix/conf/query.props
在開頭的QueryList添加
QueryList=archive,audit,dbblockgets,dbconsistentgets,dbhitratio,dbphysicalread,hitratio_body,hitratio_sqlarea,hitratio_table_proc, \ lio_current_read,locks,maxprocs,maxsession,miss_latch,pga_aggregate_target, pga,phio_datafile_reads,phio_datafile_writes,phio_redo_writes,pinhitratio_body,pinhitratio_sqlarea,pinhitratio_table-proc,pinhitratio_trigger, \ pool_dict_cache,pool_free_mem,pool_lib_cache,pool_misc,pool_sql_area,procnum,session_active,session_inactive,session,session_system,sga_buffer_cache, \ sga_fixed,sga_java_pool,sga_large_pool,sga_log_buffer,sga_shared_pool,tbl_space,userconn,waits_controfileio,waits_directpath_read, \ waits_file_io,waits_latch,waits_logwrite,waits_multiblock_read,waits_singleblock_read,hitratio_trigger,lio_block_changes,lio_consistent_read,waits_other,waits_sqlnet,users_locked,uptime,dbfilesize,dbsize,process,max_process,used_session,max_session,active_session,archive_size,dgstatus,dataguard_logs
在末尾添加
dgstatus.Query=select count(0) from v$archive_dest where status='VALID' dataguard_logs.Query=select max(sequence#) from v$archived_log
然后在數(shù)據(jù)庫(kù)中進(jìn)行授權(quán),查詢相關(guān)表的權(quán)限
GRANT SELECT ON v_$archived_log TO ZABBIX; GRANT SELECT ON v_$archive_dest TO ZABBIX;
Zabbix觸發(fā)器設(shè)置報(bào)警為
{Oracle-db_name_primary:dataguard_logs.last()}-{Oracle-db_name_standy:dataguard_logs.last()}>1
注意以下的Oracle-db_name_primary與自己定義匹配
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。