[ZBX-1648] Sometimes connection parameters are not passed to odbc_DBconnect procedure Created: 2010 Jan 06  Updated: 2017 May 30  Resolved: 2010 Apr 14

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.8
Fix Version/s: 1.8.3, 1.9.0 (alpha)

Type: Incident report Priority: Major
Reporter: Lucas Wolenczak Assignee: Alexander Vladishev
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

After upgrading from 1.6.4 to 1.8 some of my database checks fails with following error:
24677:20100106:121519.358 Failed to connect to DSN '' : Error: failed connection [[unixODBC][Driver Manager]Can't initiate unicode conversion] (0)
24677:20100106:121519.358 Item [edocsp2.uk.db.com:db.odbc.select[e-DOCS Database Invalid Objects count]] error: failed connection [[unixODBC][Driver Manager]
Can't initiate unicode conversion] (0)
24677:20100106:121519.358 In zabbix_log()
24677:20100106:121519.358 In DCconfig_get_items() hostid:0 key:'zabbix[log]'
24677:20100106:121519.358 End of DCconfig_get_items():0
24677:20100106:121519.358 End of zabbix_log()
24677:20100106:121519.358 End of get_value():NOTSUPPORTED
24677:20100106:121519.358 Parameter [edocsp2.uk.db.com:db.odbc.select[e-DOCS Database Invalid Objects count]] is not supported by agent Old status [0]

Further investigations showed that this error occurs when empty DSN, User and Pass parameters were passed to odbc_DBconnect procedure.

All parameters in front end are set correctly and nothing was changed since it was working in Z 1.6.4.

I tried to re-enable the item, but the next time it fails as well.

edocsp2.uk.db.com:db.odbc.select[e-DOCS Database Invalid Objects count] set as below:

DSN=EDOCS
user=user
password=password
sql=select count from user_objects where status <> 'VALID'

(not as DSN=EDOCS\nuser=user\npassword=password\nsql=select count from user_objects where status <> 'VALID' )



 Comments   
Comment by Lucas Wolenczak [ 2010 Jan 11 ]

FYI, tried with "DSN=EDOCS\nuser=user\npassword=password\nsql=select count from user_objects where status <> 'VALID' " as well and got the same result. Furthermore this issue concerns only some of DB checks, others are seems to be working fine (or at least they receive input parameters)

Comment by Alexei Vladishev [ 2010 Apr 12 ]

See also ZBX-2300.

Comment by Aleksandrs Saveljevs [ 2010 Apr 14 ]

Fixed in ZBX-2300.

Generated at Thu Apr 25 08:10:22 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.