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
Frontend creates an item without any error message.
When Zabbix starts to monitor created item, following line appears in Zabbix server's log:
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.