你好,游客 登录 注册 搜索
背景:
阅读新闻

CentOS 6.4下快速部署Zabbix 2.4

[日期:2014-11-26] 来源:Linux社区  作者:Linux [字体:大 中 小]

关注日志

tail -f /var/log/zabbix/zabbix_server.log

1943:20141126:142146.893 server #23 started [history syncer #4]

1942:20141126:142146.893 server #22 started [history syncer #3]

1947:20141126:142146.900 server #25 started [proxy poller #1]

1946:20141126:142146.900 server #24 started [escalator #1]

1950:20141126:142146.906 server #26 started [self-monitoring #1]

1935:20141126:142147.096 server #19 started [discoverer #1]

1922:20141126:144903.783 cannot send list of active checks to [127.0.0.1]: host [Zabbix server] not monitored

其中有一个'cannot send list of active checks to ' 这种类型不算错误,后续更新Zabbix Agent(active)会描述这个情况.

4. 部署Zabbix Agent

yum install zabbix-agent  zabbix-sender zabbix-get -y

[root@localhost ~]# grep -vE '(^$|^\#)' /etc/zabbix/zabbix_agentd.conf

PidFile=/var/run/zabbix/zabbix_agentd.pid

LogFile=/var/log/zabbix/zabbix_agentd.log

LogFileSize=0

Server=172.16.43.40              #修改为Server的IP,支持多个IP,逗号分隔,使用域名的话,需要支持反向解析

ServerActive=172.16.43.40        #修改为Server的IP,不支持写多个IP

HostnameItem=system.hostname    #默认是用Hostname需要手动指定主机名,改为HostnameItem 使用内部key的自动获取方式

Include=/etc/zabbix/zabbix_agentd.d/

/etc/init.d/zabbix-agent start

chkconfig zabbix-agent on

关注日志

tail -n50 -f /var/log/zabbix/zabbix_agentd.log

1526:20141126:150356.024 Starting Zabbix Agent [localhost.localdomain]. Zabbix 2.4.2 (revision 50419).

1526:20141126:150356.024 using configuration file: /etc/zabbix/zabbix_agentd.conf

1526:20141126:150356.025 agent #0 started [main process]

1530:20141126:150356.026 agent #4 started [listener #3]

1529:20141126:150356.026 agent #3 started [listener #2]

1531:20141126:150356.026 agent #5 started [active checks #1]

1528:20141126:150356.027 agent #2 started [listener #1]

1527:20141126:150356.027 agent #1 started [collector]

1531:20141126:150356.062 no active checks on server [172.16.43.40:10051]: host [localhost.localdomain] not found

同样,'no active checks on server' 也不是一个错误,后续更新的blog会进行描述.

linux
相关资讯       Zabbix 2.4安装  Zabbix 2.4 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款