I have an incomprehensible problem with odbc monitoring!
I installed and configured unixODBC correctly, it's working from shell fine.
When I'm trying to add item, my browser gives me an error page:
I thought that it is beacause my php was configured without unixODBC support. I reconfigured it, but no result!
Type of item: Database monitor
Key: db.odbc.select[testq]
Additional parameters:
DSN=pmon
user=zabbix
password=zabbix
sql=SELECT '1' from dual;
Also I noticed, that when I add quotes to sql="select..." the item creates with no problem! but it's in 'No supported' status with error:
also if I change sql to any other WRONG query the item creates, but dont works. if I set COREECT sql statment - it fails with 'The connection was reset' error.
I installed and configured unixODBC correctly, it's working from shell fine.
When I'm trying to add item, my browser gives me an error page:
The connection was reset
The connection to the server was reset while the page was loading.
The connection to the server was reset while the page was loading.
I thought that it is beacause my php was configured without unixODBC support. I reconfigured it, but no result!
Type of item: Database monitor
Key: db.odbc.select[testq]
Additional parameters:
DSN=pmon
user=zabbix
password=zabbix
sql=SELECT '1' from dual;
Also I noticed, that when I add quotes to sql="select..." the item creates with no problem! but it's in 'No supported' status with error:
Failed selection [[Oracle][ODBC][Ora]ORA-00900: invalid SQL statement ] (900)
also if I change sql to any other WRONG query the item creates, but dont works. if I set COREECT sql statment - it fails with 'The connection was reset' error.
Comment