-
Problem report
-
Resolution: Unresolved
-
Major
-
None
-
6.0.10, 6.2.4
Hi.
Issue:
Zabbix-agent2 does not allow dashes in it's config keys - but PostgreSQL, MySQL and Oracle do allow database names to have dashes in them. And we do have databases with hyphens in their names.
That means that we can't create per-database sessions without workarounds - such as replacing all hyphens with underscores inside config and using regsub in item keys. Which is hacky at best.
The old syntax (4-tuple of connstring, user, pass, db) doesn't scale - it will eat up to (databases * per-db-items) connections.
Seems like slightly changing validateParameterName is all that required to allow hyphens ( https://git.zabbix.com/projects/AP/repos/plugin-support/browse/conf/conf.go ).
Alternatively, allowing quotes inside parameter names will also work. (i.e. .Session."prod-db".Username).
Can you share your opinion on this?