-
Problem report
-
Resolution: Fixed
-
Trivial
-
None
-
None
-
Sprint 49 (Feb 2019), Sprint 50 (Mar 2019), Sprint 51 (Apr 2019)
-
0.125
Steps to reproduce:
- Create a host
- Create an item
-
- Select "Database monitor" as a type
- Select "db.odbc.select[<unique short description>,<dsn>]" key
- Remove both parameters (frontend states that these are optional)
- Fill other required fields
Result:
Frontend creates an item without any error message.
When Zabbix starts to monitor created item, following line appears in Zabbix server's log:
28861:20190205:110746.032 item "Host:db.odbc.select" became not supported: Invalid number of parameters.
Expected:
Even if description is optional, dsn parameter is mandatory. Frontend should not mark it as optional.
https://www.zabbix.com/documentation/current/manual/config/items/itemtypes/odbc_checks states that description field is mandatory as well (i.e., no "<>" symbols there).
Item key "db.odbc.discovery" is confusing as well. Documentation (https://www.zabbix.com/documentation/4.0/manual/discovery/low_level_discovery/sql_queries) states that both parameters are optional.