Zabbix通过Orabbix监控Oracle DataGuard


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



在末尾添加

1
2
dgstatus.Query= select  count(0) from  v $archive_dest where status= 'VALID'
dataguard_logs.Query= select  max(sequence #) from v$archived_log




然后在数据库中进行授权,查询相关表的权限

1
2
GRANT SELECT ON v_$archived_log TO ZABBIX;
GRANT SELECT ON v_$archive_dest TO ZABBIX;


Zabbix触发器设置报警为

1
{Oracle-db_name_primary:dataguard_logs.last()}-{Oracle-db_name_standy:dataguard_logs.last()}>1

注意以下的Oracle-db_name_primary与自己定义匹配


本文转自 rong341233 51CTO博客,原文链接:http://blog.51cto.com/fengwan/1893104


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值