Maybe I am just naive or unexperienced, but I cannot for the life of my figure out the DSN structure for the Agent2 MySQL plugin.
After upgrading from 4.4 to 5.0, the agent2 would not start because of overlapping mysql.something keys, from the agent2.d/mysql.conf file when using the old official mysql template.
All was working reading from the .my.cnf in the zabbix home dir.
I've imported the new Template for Agent2-MySQL from here: https://git.zabbix.com/projects/ZBX/...b/mysql_agent2
But the documentation and error messages could not be more vague:
No matter what combination of things I try, I can't figure out what it wants.
localhost:3306 =
Even trying to replicate the description verbosely, it doesn't work!
<protocol(host
ort or /path/to/socket)/>
<mysql(localhost:3306)/>
After upgrading from 4.4 to 5.0, the agent2 would not start because of overlapping mysql.something keys, from the agent2.d/mysql.conf file when using the old official mysql template.
All was working reading from the .my.cnf in the zabbix home dir.
I've imported the new Template for Agent2-MySQL from here: https://git.zabbix.com/projects/ZBX/...b/mysql_agent2
But the documentation and error messages could not be more vague:
Code:
Name Description Default
{$MYSQL.DSN} System data source name such as <protocol(host:port or /path/to/socket)/>. <Put your DSN>
localhost:3306 =
- The first parameter is not URI or session
- parse mysql(localhost:3306): first path segment in URL cannot contain colon
- parse <mysql://localhost:3306>: first path segment in URL cannot contain colon
Even trying to replicate the description verbosely, it doesn't work!
<protocol(host
ort or /path/to/socket)/><mysql(localhost:3306)/>
- parse <mysql(localhost:3306)/>: first path segment in URL cannot contain colon
host=127.0.0.1;port=3306)/>
fficial1
Comment