当前位置:   article > 正文

zabbix技术遇到的问题8--zabbix_get [49859]: Check access restrictions in Zabbix agent configuration_zabbix_get [29458]: check access restrictions in z

zabbix_get [29458]: check access restrictions in zabbix agent configuration

遇到的问题:

[root@m01 scripts]# zabbix_get -s 10.0.0.61 -k mysql.discovery
zabbix_get [49859]: Check access restrictions in Zabbix agent configuration
  • 1
  • 2

原因:

Zabbix agent端执行zabbix_get时访问受限
-s后面需要接zabbix_agent.conf中Server配置指向的地址
  • 1
  • 2

解决办法:

[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
  • 1
  • 2
  • 3
  • 4

查看:

[root@m01 scripts]# zabbix_get -s 10.0.0.61 -k mysql.discovery
{"data":[{"{#MYSQLPORT}":"3306"},{"{#MYSQLPORT}":"3307"},{"{#MYSQLPORT}":"3308"}]}
  • 1
  • 2
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/286028
推荐阅读
相关标签
  

闽ICP备14008679号