dbforbix插件监控数据库(Oracle、Postgresql)
**dbforbix可监控多种数据库,如:
oracle、mysql、postgresql、sqlserver、DB2、SQLANY、Allbase**
此处用于监控oracle及postgresql
(1)Install dbforbix
下载地址:https://github.com/Jenychen1996/zabbix-templates.git
·unzip /tmp/dbforbix06-master.zip -d /opt/
·mv /opt/dbforbix06-master/ /opt/dbforbix
·cd dbforbix/
·chmod +x run.sh
·cd conf/
·mv config.props.sample config.props
·mv oraclequery.props.sample oraclequery.props
·mv pgsqlquery.props.sample pgsqlquery.props
Tips:
Oracle = jdbc:oracle:thin:@<host>:<LISTENER_PORT>:<instance>
PostgreSQL = jdbc:postgresql://<host>:<port>/<database>
MS Sql Server = jdbc:jtds:sqlserver://<host>:<port>/<instancename>
MySQL Server = jdbc:mysql://[host:port],[host:port].../[database]
DB2 = jdbc:db2://<servername>:<port>/<installation>
(2)Monitor oracle database
①vi config.props
②Import template to zabbix gui
模板下载地址: https://github.com/Jenychen1996/zabbix-templates.git
③Connect the host as template_oracle.xml
(3)Monitor postgresql database
①vi config.props
②Import template to zabbix gui
模板下载地址: https://github.com/Jenychen1996/zabbix-templates.git
③Connect the host as template_oracle.xml
④Success to catch data
有问题请联系QQ:2057359164 Github:https://github.com/Jenychen1996