1,环境orabbix准备
上次做了安装部署orabbix,记录在http://blog.youkuaiyun.com/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.youkuaiyun.com/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配置文件的添加,实现之后想来原理也蛮简洁有效的。