首先查看sever日志cat /var/log/zabbix/zabbix_server.log
2352:20190720:164019.953 server #7 started [history syncer #2]
2353:20190720:164019.954 server #8 started [history syncer #3]
2354:20190720:164019.954 server #9 started [history syncer #4]
2357:20190720:164019.955 server #12 started [self-monitoring #1]
2362:20190720:164019.955 server #17 started [poller #4]
2364:20190720:164019.966 server #19 started [unreachable poller #1]
2367:20190720:164019.977 server #22 started [trapper #3]
2372:20190720:164019.979 server #27 started [alerter #1]
2373:20190720:164019.979 server #28 started [alerter #2]
2375:20190720:164019.979 server #30 started [preprocessing manager #1]
2350:20190720:164019.980 server #5 started [discoverer #1]
2356:20190720:164019.991 server #11 started [proxy poller #1]
2346:20190720:164019.992 server #1 started [configuration syncer #1]
2365:20190720:164019.993 server #20 started [trapper #1]
2376:20190720:164020.098 server #31 started [preprocessing worker #1]
2378:20190720:164020.136 server #33 started [preprocessing worker #3]
2377:20190720:164020.151 server #32 started [preprocessing worker #2]
发现启动正常,没有问题,接着查看客户端日志
cat /var/log/zabbix/zabbix_agentd.log
2336:20190720:164338.941 Got signal [signal:15(SIGTERM),sender_pid:2478
,sender_uid:0,reason:0]. Exiting ... 2336:20190720:164338.945 Zabbix Agent stopped. Zabbix 4.2.4 (revision 0
59af02c82). 2484:20190720:164339.029 Starting Zabbix Agent [Zabbix server]. Zabbix
4.2.4 (revision 059af02c82). 2484:20190720:164339.029 **** Enabled features ****
2484:20190720:164339.029 IPv6 support: YES
2484:20190720:164339.029 TLS support: YES
2484:20190720:164339.029 **************************
2484:20190720:164339.029 using configuration file: /etc/zabbix/zabbix_a
gentd.conf 2484:20190720:164339.029 agent #0 started [main process]
2487:20190720:164339.031 agent #3 started [listener #2]
2488:20190720:164339.033 agent #4 started [listener #3]
2485:20190720:164339.035 agent #1 started [collector]
2486:20190720:164339.036 agent #2 started [listener #1]
时间最近的 发现一个错误:“
获取信号[信号:15(sigterm),发送方PID:2478
,发件人Uid:0,原因:0]。正在退出…”
原因:
1、防火墙开启
2、自定义配置文件不对的原因
于是先试着关一下防火墙和seLinux
[root@xiaob doc]# systemctl stop firewalld
[root@xiaob doc]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes
are protected. # mls - Multi Level Security protection.
SELINUXTYPE=targeted
B机器
[root@xiaoa ~]# systemctl stop firewalld
[root@xiaoa ~]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes
are protected. # mls - Multi Level Security protection.
SELINUXTYPE=targeted
结果防火墙没关
一刷新网页就加载出来了---真尴尬。。。。
小插曲出现active check configuration update from [127.0.0.1:10051]
直接编辑zabbix_agentd.conf注释掉ServerActive=127.0.0.1即可。