zabbix_agentd 报错

1

cannot open PID file [/tmp/zabbix_agentd.pid]: [13] Permission denied 权限拒绝 很直观就是权限的问题

我的问题是这样的,这个pid文件是我安装了两个zabbix 之前一个生成的pid 直接删除pid 搞定

2 no active checks on server [127.0.0.1:10051]: host [0022] not found
21270:20170226:112109.911 failed to accept an incoming connection: connection from "192.168.199.222" rejected, allowed hosts: "127.0.0.1"

出现该错误的原因是一般是zabbix_agentd.conf里面的Hostname和前端zabbix web里面的配置不一样所造成的,即在zabbix web页面Monitoring->Configuration->Hosts 页面的Name和zabbix_agentd.conf里面的Hostname要一样。 

解决方法:

1.查看zabbix_agentd.conf文件中的Hostname

# cat zabbix_agentd.conf | grep Hostname
### Option: Hostname
# Value is acquired from HostnameItem if undefined.
# Hostname=
Hostname=127.0.0.1
### Option: HostnameItem
# Item used for generating Hostname if it is undefined. Ignored if Hostname is defined.
# HostnameItem=system.hostname
# Aliases can be used in HostMetadataItem but not in HostnameItem parameters.


# Aliases can be used in HostMetadataItem but not in HostnameItem parameters. 

2.在zabbix web页面Monitoring->Configuration->Hosts 页面更改Host name和zabbix_agentd.conf里面的Hostname一样。 

3.杀死进程重新启动zabbix-agent服务

ps -ef | grep zabbix_agentd |grep -v grep xargs -i{} kill -9 {}    && ../sbin/zabbix_agentd 

4.再次查看日志文件

tail -f /tmp/zabbix_agentd.log
21686:20170226:113106.324 IPv6 support: NO
21686:20170226:113106.324 TLS support: NO
21686:20170226:113106.324 **************************
21686:20170226:113106.324 using configuration file: /opt/soft/zabbix/etc/zabbix_agentd.conf
21686:20170226:113106.324 agent #0 started [main process]
21689:20170226:113106.326 agent #3 started [listener #2]
21688:20170226:113106.326 agent #2 started [listener #1]
21690:20170226:113106.326 agent #4 started [listener #3]
21691:20170226:113106.327 agent #5 started [active checks #1]
21687:20170226:113106.327 agent #1 started [collector]

问题解决

转载于:https://www.cnblogs.com/musen/p/6443996.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值