Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Zabbix4.4 configuration MySQL Monitoring

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Create mysql user authorization

Grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix'

2. Add the account password to the configuration file of vim / etc/my.cnf

[client]

Host=localhost

User='zabbix'

Password='zabbix'

3. Test the connectivity of MySQL database

Home=/etc/zabbix/ mysqladmin ping | grep alive

Mysqld is alive (indicates entry into force)

4. Restart the service

Systemctl restart mariadb

Sytemctl restart zabbix-server

Sytemctl restart zabbix-agent

5. Add a mysql monitoring template for the Zabbix monitoring template on the Zabix side. (select Template DB MySQL in the Zabbix monitoring template

If the monitoring item is not supported, it means that the created mysql user cannot obtain mysql status.

6. Check whether the drawing has data

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report