Zabbix server 1:5.0.19-1+bionic
Zabbix agent: 1:5.0.19-1+focal
I imported the `MySQL by Zabbix agent` template for Zabbix 5.0 from here.
Followed the instructions on that page on the Ubuntu 20.04 server where the agent is installed.
I did this yesterday and still no data is visible on the Zabbix server when I look at the latest values.
I do see the MySQL fields but they all have no values, except for `MySQL: Status` which is Down(0).
Some information, taken from the MySQL server:
`/var/lib/zabbix` did not exist so I created it and changed the owner to zabbix.
So it seems like it's trying to feed the -P parameter as the MySQL host.
Running the mysqladmin ping command by hand does seem to work:
Any advice would be greatly appreciated.
Thanks,
Joep
Zabbix agent: 1:5.0.19-1+focal
I imported the `MySQL by Zabbix agent` template for Zabbix 5.0 from here.
Followed the instructions on that page on the Ubuntu 20.04 server where the agent is installed.
I did this yesterday and still no data is visible on the Zabbix server when I look at the latest values.
I do see the MySQL fields but they all have no values, except for `MySQL: Status` which is Down(0).
Some information, taken from the MySQL server:
`/var/lib/zabbix` did not exist so I created it and changed the owner to zabbix.
Code:
$ cat /var/lib/zabbix/my.cnf [client] user='zbx_monitor' password='removed'
Code:
$ zabbix_agentd -t "mysql.ping" mysql.ping [t|mysqladmin: connect to server at '-P' failed error: 'Unknown MySQL server host '-P' (-2)' Check that mysqld is running on -P and that the port is 3306. You can check this by doing 'telnet -P 3306']
Running the mysqladmin ping command by hand does seem to work:
Code:
$mysqladmin version -u zbx_monitor -p ping Enter password: mysqladmin Ver 8.0.27-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu)) Copyright (c) 2000, 2021, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Server version 8.0.27-0ubuntu0.20.04.1 Protocol version 10 Connection Localhost via UNIX socket UNIX socket /var/run/mysqld/mysqld.sock Uptime: 5 hours 16 min 46 sec Threads: 16 Questions: 123461 Slow queries: 0 Opens: 621 Flush tables: 3 Open tables: 540 Queries per second avg: 6.495 mysqld is alive
Any advice would be greatly appreciated.
Thanks,
Joep
Comment