1、监控MySQL配置
# 创建监控账号 > CREATE USER 'zbx_monitor'@'%' IDENTIFIED BY 'zbx_password'; > GRANT REPLICATION CLIENT,PROCESS,SHOW DATABASES,SHOW VIEW ON *.* TO 'zbx_monitor'@'%';



2、监控Redis配置
# 修改配置 # vim /etc/zabbix/zabbix_agent2.d/plugins.d/redis.conf ... ### Option: Plugins.Redis.Sessions.*.Uri # Uri to connect. "*" should be replaced with a session name. # # Mandatory: no # Range: # Must matches the URI format. # Supported schemas: "tcp" and "unix". # Embedded credentials will be ignored. # Default: # Plugins.Redis.Sessions.*.Uri= Plugins.Redis.Sessions.redis.Uri=tcp://127.0.0.1:6380 ### Option: Plugins.Redis.Sessions.*.Password # Password to send to protected Redis server. "*" should be replaced with a session name. # # Mandatory: no # Default: # Plugins.Redis.Sessions.*.Password= Plugins.Redis.Sessions.redis.Password=password # 重启agent服务 systemctl restart zabbix-agent2




浙公网安备 33010602011771号