/opt/dbforbix/
folder./opt/dbforbix/init.d/dbforbix
to /etc/init.d/dbforbix.
/opt/dbforbix/run.sh
execution rights for /etc/init.d/dbforbix
and /opt/dbforbix/run.sh
./opt/dbforbix/conf/config.props.sample
file to /opt/dbforbix/conf/config.props
and /opt/dbforbix/conf/oraclequery.props.sample
to /opt/dbforbix/conf/oraclequery.props
/opt/dbforbix/lib/
folder. In our case, we are interested in the library ojdbc6.jar . (Download all libraries here ) ### BEGIN INIT INFO # Provides: dbforbix # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: dbforbix ### END INIT INFO
/etc/rc.d/init.d/functions
and writing down below: /lib/lsb/init-functions
# Get config. . /etc/sysconfig/network # Check that networking is up. [ "${NETWORKING}" = "no" ] && exit 0
state=`/sbin/ip link | awk '/eth0/{print $9}'` [ "${STATE}" = "DOWN" ] && exit 0
ZabbixServerList=ZabbixServer1
- description of Zabbix serversZabbixServer1.Address=10.10.10.10
- Zabbix serverZabbixServer1.Port=10051
- Zabbix server portDatabaseList=ORACLEDB1
- description of connected databasesORACLEDB1.Url=jdbc:oracle:thin:@10.10.10.11:1521:name_of_sid
- setting the connection to the databaseORACLEDB1.User=ZABBIX
- user (which we indicate below)ORACLEDB1.Password=ZABBIX
- password (which we indicate below)ORACLEDB1.DatabaseType=oracle
- database type #pidFile DBforBIX.PidFile=./logs/orabbix.pid
#pidFile DBforBIX.PidFile=./logs/dbforbix.pid
dbforbix.pid
file in the /opt/dbforbix/logs/
directory. CREATE USER ZABBIX IDENTIFIED BY <REPLACE WITH PASSWORD> DEFAULT TABLESPACE SYSTEM TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; -– 2 Roles for ZABBIX GRANT CONNECT TO ZABBIX; GRANT RESOURCE TO ZABBIX; ALTER USER ZABBIX DEFAULT ROLE ALL; –- 5 System Privileges for ZABBIX GRANT SELECT ANY TABLE TO ZABBIX; GRANT CREATE SESSION TO ZABBIX; GRANT SELECT ANY DICTIONARY TO ZABBIX; GRANT UNLIMITED TABLESPACE TO ZABBIX; GRANT SELECT ANY DICTIONARY TO ZABBIX;
/opt/dbforbix/template/template_oracle.xml
DatabaseList
line in the config.props file. In my case, the host name will be ORACLEDB1. insserv dbforbix
/etc/init.d/dbforbix start
sun-java6-jre
for its work, to install it on Debian 7, we had to register old repositories and install the package from there.Source: https://habr.com/ru/post/197746/
All Articles