Hi, I'm new to Zabbix as I've installed Zabbix 3.0 for the first time on a Centos distribution. The problem is that I want to monitor some Oracle database, so I set up unixODBC and Oracle client software.
I can connect to my db with ODBC (isql -v connects), but when i configure an item it give an error: cannot connect to ODBC DSN ... Can't open lib /usr/lib/oracle/11.2/client64/lib/libsqora.so: file not found.
Since I had the same error when I was configuring my installation, and the issue was that I haven't the right environment variables set, I was trying to set that variables for the zabbix server service, but I'm not familiar with linux so I'm struck.
I've put the export of the variables in a zabbix-server file in /etc/sysconfig, but it seems to not to do any good. The file is processed, I think, because when I've mistaken the syntax or something Zabbix encountered problems.
But I can't manage to have the LD_LIBRARY_PATH, that I think is the variable that I need, to show in the ENV of the Zabbix server service (I've created an item to report this).
The zabbix_server file is quite simple:
export ORACLE_HOME=/usr/lib/oracle/11.2/client64
export PATH=/usr/lib/oracle/11.2/client64/bin:$PATH
export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib
export TNS_ADMIN=/etc
I'm sure I miss something easy... I don't know if this is the right way, or the problem is truly that.
If someone has any idea, thank you.
I can connect to my db with ODBC (isql -v connects), but when i configure an item it give an error: cannot connect to ODBC DSN ... Can't open lib /usr/lib/oracle/11.2/client64/lib/libsqora.so: file not found.
Since I had the same error when I was configuring my installation, and the issue was that I haven't the right environment variables set, I was trying to set that variables for the zabbix server service, but I'm not familiar with linux so I'm struck.
I've put the export of the variables in a zabbix-server file in /etc/sysconfig, but it seems to not to do any good. The file is processed, I think, because when I've mistaken the syntax or something Zabbix encountered problems.
But I can't manage to have the LD_LIBRARY_PATH, that I think is the variable that I need, to show in the ENV of the Zabbix server service (I've created an item to report this).
The zabbix_server file is quite simple:
export ORACLE_HOME=/usr/lib/oracle/11.2/client64
export PATH=/usr/lib/oracle/11.2/client64/bin:$PATH
export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib
export TNS_ADMIN=/etc
I'm sure I miss something easy... I don't know if this is the right way, or the problem is truly that.
If someone has any idea, thank you.
Comment