Hello,
I am testing out Zabbix as a monitoring solution for our Linux environment and i ran into some issues with this template.
Zabbix server:
Zabbix agent:
I have configured mysql according to the steps outline here: Browse Zabbix / Zabbix - ZABBIX GIT
Tested logging into mysql with agent user and pw and it works as expected.
The following errors pop up in the serverlogs:
To my untrained eye it looks like its trying to set the string 'zabbix-agent' as the port.. I dont know why that would be, i have not configured any macro related to port (there isnt one as far as i can see)..
My configuration in Zabbix:


On server with agent:
Any advice?
I am testing out Zabbix as a monitoring solution for our Linux environment and i ran into some issues with this template.
Zabbix server:
Code:
root@zabbix-01:~# zabbix_server --version zabbix_server (Zabbix) 6.0.4 Revision 3d787ff402e 3 May 2022, compilation time: Apr 6 2022 13:22:31 Copyright (C) 2022 Zabbix SIA License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it according to the license. There is NO WARRANTY, to the extent permitted by law. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/). Compiled with OpenSSL 1.1.1f 31 Mar 2020 Running with OpenSSL 1.1.1f 31 Mar 2020 root@zabbix-01:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.4 LTS Release: 20.04 Codename: focal
Zabbix agent:
Code:
root@mysql01:~# zabbix_agentd --version zabbix_agentd (daemon) (Zabbix) 6.0.4 Revision 3d787ff402e 3 May 2022, compilation time: Apr 6 2022 13:22:31 Copyright (C) 2022 Zabbix SIA License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it according to the license. There is NO WARRANTY, to the extent permitted by law. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/). Compiled with OpenSSL 1.1.0l 10 Sep 2019 Running with OpenSSL 1.1.0j 20 Nov 2018 root@mysql01:~# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 9.8 (stretch) Release: 9.8 Codename: stretch
I have configured mysql according to the steps outline here: Browse Zabbix / Zabbix - ZABBIX GIT
Tested logging into mysql with agent user and pw and it works as expected.
The following errors pop up in the serverlogs:
Code:
20632:20220523:123004.396 discovery rule "mysql01:mysql.db.discovery["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWO RD}"]" became not supported: Invalid discovery rule value: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'mysql: [ERROR] Unknown suffix 'z' used for variable 'port' (value 'zabbix-agent')
mysql: [ERROR] mysql: Error while setting value 'zabbix-agent' to 'po
20631:20220523:123006.396 discovery rule "mysql01:mysql.replication.discov ery["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWO RD}"]" became not supported: Invalid discovery rule value: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'mysql: [ERROR] Unknown suffix 'z' used for variable 'port' (value 'zabbix-agent')
mysql: [ERROR] mysql: Error while setting value 'zabbix-agent' to 'po
My configuration in Zabbix:
On server with agent:
Code:
root@mysql01:~# ls -lah /etc/zabbix/ total 36K drwxr-xr-x 3 root root 4.0K May 23 14:15 . drwxr-xr-x 91 root root 4.0K May 12 14:27 .. -rw-r--r-- 1 root root 48 May 12 15:01 .my.cnf -rw-r--r-- 1 root root 17K May 23 14:07 zabbix_agentd.conf drwxr-xr-x 2 root root 4.0K May 23 14:03 zabbix_agentd.d root@mysql01:~# cat /etc/zabbix/.my.cnf [client] user='zabbix-agentuser' password='mypass'

Comment