[ZBX-4638] Macros doesn't work for 'Database monitor' items Created: 2012 Feb 10 Updated: 2017 May 30 Resolved: 2012 Oct 03 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Proxy (P), Server (S) |
Affects Version/s: | 1.8.10, 2.0.2, 2.1.0 |
Fix Version/s: | 2.0.4rc1, 2.1.0 |
Type: | Problem report | Priority: | Major |
Reporter: | Pavel Timofeev | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | database, odbc, unixodbc | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
zabbix-server-1.8.10, unixODBC-2.3.1, mysql-connector-odbc-3.51.30, FreeBSD 9.0 RELEASE amd64 |
Description |
Item parameters for MySQL threads: user=monitoring password=mypasss sql=select count from PROCESSLIST; Zabbix log: 43244:20120210:132155.197 Failed to connect to DSN '{HOSTNAME} ' : Error: failed connection [[unixODBC][Driver Manager]Data source name not found, and no default driver specified] (0) However, Zabbix documentation (http://www.zabbix.com/documentation/1.8/manual/config/macros) says about support macro for Items. |
Comments |
Comment by Oleksii Zagorskyi [ 2012 Feb 11 ] |
About "So bad" -> see Actually a field "Additional parameters" for ODBC items it's not an item key, it's additional field. This field stored in the database "items.params". Related item types:ssh agent, telnet agent, calculated. |
Comment by Pavel Timofeev [ 2012 Feb 11 ] |
It's so sad. When I use database monitor I see:
|
Comment by Pavel Timofeev [ 2012 Feb 11 ] |
Sorry my_thread_global_end() error has gone after upgrading mysql-connector-odbc to 5.1.9 |
Comment by Pavel Timofeev [ 2012 Feb 12 ] |
> Sorry my_thread_global_end() error has gone after upgrading mysql-connector-odbc to 5.1.9 |
Comment by Pavel Timofeev [ 2012 Feb 14 ] |
http://lab4.org/wiki/Zabbix_Database_Monitor_English |
Comment by Alexander Vladishev [ 2012 Sep 06 ] |
Available in the development branch svn://svn.zabbix.com/branches/dev/ZBX-4638 Updated documentation: |
Comment by Andris Mednis [ 2012 Oct 02 ] |
(1) Testing with database monitor item using DSN= {HOSTNAME} causes crash, while DSN=localhost does not crash:27145:20121002:182214.650 In substitute_simple_macros() data:'DSN={HOSTNAME} user=zabbix20 <Sasha> RESOLVED in r30476. |
Comment by Andris Mednis [ 2012 Oct 05 ] |
Successfully tested. |
Comment by Alexander Vladishev [ 2012 Oct 05 ] |
Available in pre-2.0.4 r30656 and pre-2.1.0 (trunk) r30657. |