标签:idt 最新 date enable net useradd collect mis tor
# groupadd zabbix
# useradd -g zabbix zabbix -s /sbin/nologin
# tar -zxvf zabbix-3.0.4.tar.gz # cd zabbix-3.0.4 # ./configure --prefix=/usr/local/zabbix --enable-agent # make && make install
# cp zabbix/misc/init.d/fedora/core/zabbix_agentd /etc/init.d/
# vim /usr/loacl/zabbix/etc/zabbix_aggentd.cof 修改下面这三项 # zabbix server端IP Server=192.168.10.24 # zabbix server端IP ServerActive=192.168.10.24 # zabbix客户端主机名 Hostname=agent_1
# /etc/init.d/zabbix_agentd restart
Restarting zabbix_agentd (via systemctl): [ OK ]
# netstat -lantup | grep zabbix tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 10985/zabbix_agentd # ps -ef | grep zabbix zabbix 10985 1 0 16:20 ? 00:00:00 /usr/local/zabbix/sbin/zabbix_agentd zabbix 10986 10985 0 16:20 ? 00:00:00 /usr/local/zabbix/sbin/zabbix_agentd: collector [idle 1 sec] zabbix 10987 10985 0 16:20 ? 00:00:00 /usr/local/zabbix/sbin/zabbix_agentd: listener #1 [waiting for connection] zabbix 10988 10985 0 16:20 ? 00:00:00 /usr/local/zabbix/sbin/zabbix_agentd: listener #2 [waiting for connection] zabbix 10989 10985 0 16:20 ? 00:00:00 /usr/local/zabbix/sbin/zabbix_agentd: listener #3 [waiting for connection] zabbix 10990 10985 0 16:20 ? 00:00:00 /usr/local/zabbix/sbin/zabbix_agentd: active checks #1 [idle 1 sec] root 11215 10376 0 16:48 pts/0 00:00:00 grep --color=auto zabbix
tail /tmp/zabbix_agentd.log 10679:20191018:143034.019 agent #2 started [listener #1] 10680:20191018:143034.019 agent #3 started [listener #2] 10681:20191018:143034.019 agent #4 started [listener #3] 10682:20191018:143034.020 agent #5 started [active checks #1] 10678:20191018:143034.020 agent #1 started [collector] 10682:20191018:143034.020 active check configuration update from 10683:20191018:143034.086 no active checks on server [192.168.10.24:10051]: host [agent_1] not found 10683:20191018:143234.196 no active checks on server [192.168.10.24:10051]: host [agent_1] not found 10683:20191018:143434.305 no active checks on server [192.168.10.24:10051]: host [agent_1] not found
agent服务都已经启动好了,但显示连接服务器报错,是因为在zabbix服务端还没有配置监控这个agent。
点击T模版设置关联模板一个模版 并添加
最后从配置--> 主机中查看刚刚新加的主机,zabbix已经变成绿色了,代表成功了。如下:
从监测中的最新数据,也能看到有新加的客户端监控数据被收集
标签:idt 最新 date enable net useradd collect mis tor
原文地址:https://www.cnblogs.com/zwj-linux/p/11699421.html