Noone, anything? This is bonkers to me, and the lack of help is pushing towards other monitoring utilities. The MySQL template for agent2 is the most inane of it all - i can get it running REGARDLESS of what i have in zabbix_agent2.conf if i specify the DSN (unix:/path/to/socket) in the template's macro, alongside the user and password, however the moment i try to leave the macros 'up for grabs' and just use the DNS as a session name (...as the manual says!) and fill the zabbix_agent2.conf with the credentials and URI, the server logs "bad connections". That is even tho the item check ALWAYS succeeds!
Even in the first scenario, the results are so crazy that it's unreliable to use (false positives of mysql being down together with alerts of it returning 'loaded data').
Anyone, anything please?
LE: more to this madness:
Only AFTER i executed the first mysql.ping (that failed!) have graphs started being populated with the server in question and for this last one cmd, i did see a 'show databases' call on the server, but that ended prematurely. Second time i tried the command? ALL SUCCESS. Wtf?
To me, something is looking way too odd, with the server apparently expecting a way different connection?
Even in the first scenario, the results are so crazy that it's unreliable to use (false positives of mysql being down together with alerts of it returning 'loaded data').
Anyone, anything please?
LE: more to this madness:
[root@zabbix ~]# zabbix_get -s IP -k "mysql.ping[unix:/var/lib/mysql/mysql.sock,zbx_monitor,PASS]"
0
[root@zabbix ~]# zabbix_get -s IP -k "mysql.ping[unix:/var/lib/mysql/mysql.sock,zbx_monitor,PASS]"
1
[root@zabbix ~]# zabbix_get -s IP -k "mysql.version[unix:/var/lib/mysql/mysql.sock,zbx_monitor,PASS"]
5.6.47
[root@zabbix ~]# zabbix_get -s IP -k "mysql.db.discovery[unix:/var/lib/mysql/mysql.sock,zbx_monitor,PASS]"
ZBX_NOTSUPPORTED: invalid connection
0
[root@zabbix ~]# zabbix_get -s IP -k "mysql.ping[unix:/var/lib/mysql/mysql.sock,zbx_monitor,PASS]"
1
[root@zabbix ~]# zabbix_get -s IP -k "mysql.version[unix:/var/lib/mysql/mysql.sock,zbx_monitor,PASS"]
5.6.47
[root@zabbix ~]# zabbix_get -s IP -k "mysql.db.discovery[unix:/var/lib/mysql/mysql.sock,zbx_monitor,PASS]"
ZBX_NOTSUPPORTED: invalid connection
To me, something is looking way too odd, with the server apparently expecting a way different connection?
Comment