赞
踩
遇到的问题:
[root@m01 scripts]# zabbix_get -s 10.0.0.61 -k mysql.discovery
zabbix_get [49859]: Check access restrictions in Zabbix agent configuration
原因:
Zabbix agent端执行zabbix_get时访问受限
-s后面需要接zabbix_agent.conf中Server配置指向的地址
解决办法:
[root@m01 scripts]# vim /etc/zabbix/zabbix_agentd.conf
Server=10.0.0.61
ServerActive=10.0.0.61
[root@m01 scripts]# systemctl restart zabbix-agent.service
查看:
[root@m01 scripts]# zabbix_get -s 10.0.0.61 -k mysql.discovery
{"data":[{"{#MYSQLPORT}":"3306"},{"{#MYSQLPORT}":"3307"},{"{#MYSQLPORT}":"3308"}]}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。