zabbix3.0.2 通过orabbix监控多台oracle数据库

 

1,环境orabbix准备

上次做了安装部署orabbix,记录在http://blog.csdn.net/mchdba/article/details/51366790,不过监控了一台oracle数据库,这次就在这个基础上直接添加第二台、第三台oracle数据库监控。

 

 

2,监控第二台oracle11g库

修改配置文件 vim/usr/local/orabbix/conf/config.props:

# put here your databases in a comma separated list

# 放置oracle列表用逗号分隔,这里放置的是hostname,和zabbix界面上的hosts里面的hostname保持一模一样。                                                                                

DatabaseList=azure_yueworldoracle_crm_3_90,azure_earth_dbm1_3_111

 

# 设置 db2

azure_earth_dbm1_3_111.Url=jdbc:oracle:thin:@190.168.3.111:1521:powerdes

azure_earth_dbm1_3_111.User=zabbix

azure_earth_dbm1_3_111.Password=ys_zb_0418

azure_earth_dbm1_3_111.QueryListFile=./conf/query.props

azure_earth_dbm1_3_111.MaxActive=10

azure_earth_dbm1_3_111.MaxWait=100

azure_earth_dbm1_3_111.MaxIdle=1

azure_earth_dbm1_3_111.QueryListFile=./conf/query.props

 

重新加载orabbix:

[root@zabbix_serv_121_12 conf]# service orabbix reload                                                                                                                                                                                 

Usage: /etc/init.d/orabbix {start|stop|status|restart}

[root@zabbix_serv_121_12 conf]#

[root@zabbix_serv_121_12 conf]#

[root@zabbix_serv_121_12 conf]# service orabbix restart

Stopping Orabbix service:

Starting Orabbix service:

[root@zabbix_serv_121_12 conf]#

 

 

查看第二台oracle数据库的监控效果,如02.png所示:

 

 

blog来源地址:http://blog.csdn.net/mchdba/article/details/51419505,原作者mchdba(黄杉),谢绝转载

 

3,监控第三台oracle数据库

修改配置文件 vim/usr/local/orabbix/conf/config.props:

# put here your databases in a comma separated list

# 放置oracle列表用逗号分隔,这里放置的是hostname,和zabbix界面上的hosts里面的hostname保持一模一样。                                                     

DatabaseList=azure_yueworldoracle_crm_3_90,azure_earth_dbm1_3_111,pldb1

 

# 设置 db3

pldb1.Url=jdbc:oracle:thin:@192.168.3.11:1521:powerdes

pldb1.User=zabbix

pldb1.Password=ys_zb_0418

pldb1.QueryListFile=./conf/query.props

pldb1.MaxActive=10

pldb1.MaxWait=100

pldb1.MaxIdle=1

pldb1.QueryListFile=./conf/query.props

 

重新加载orabbix:

[root@zabbix_serv_121_12 conf]# service orabbix restart                                                                                                                                                      

Stopping Orabbix service:

Starting Orabbix service:

[root@zabbix_serv_121_12 conf]#

 

去界面查看监控性能视图:

 

 

至此,orabbix加载多台oracle数据库监控完成了,主要就是config.props配置文件的添加,实现之后想来原理也蛮简洁有效的。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值