[root@localhost ~]# service zabbix_server restart
Restarting zabbix_server (via systemctl): [ 确定 ]
虽服务启动命令外面显示正确,但/zabbix_server.log 出现不能启动server端
8900:20160115:150319.054 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8895:20160115:150319.054 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8885:20160115:150319.054 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8892:20160115:150319.055 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8891:20160115:150319.055 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8897:20160115:150319.055 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8857:20160115:150319.056 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8888:20160115:150319.056 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8903:20160115:150319.056 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8887:20160115:150319.057 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8871:20160115:150319.058 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8894:20160115:150319.058 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8882:20160115:150319.058 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8874:20160115:150319.059 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8865:20160115:150319.059 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8881:20160115:150319.059 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8877:20160115:150319.060 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8884:20160115:150319.060 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8864:20160115:150319.061 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8850:20160115:150319.061 One child process died (PID:8885,exitcode/signal:1). Exiting ...
8868:20160115:150319.061 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8878:20160115:150319.062 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8862:20160115:150319.062 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8858:20160115:150319.063 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8870:20160115:150319.063 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8860:20160115:150319.064 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8856:20160115:150319.064 Got signal [signal:15(SIGTERM),sender_pid:13371,sender_uid:0,reason:0]. Exiting ...
8850:20160115:150321.062 syncing history data...
8850:20160115:150321.062 syncing history data done
8850:20160115:150321.062 syncing trends data...
8850:20160115:150321.065 syncing trends data done
8850:20160115:150321.065 Zabbix Server stopped. Zabbix 2.4.2 (revision 50419).
解决方法:用启动命令进行测试,就知道报错了原因了
[root@localhost sbin]# ./zabbix_server -c /usr/local/zabbix/etc/zabbix_server.conf
zabbix_server [13595]: /usr/local/etc/zabbix_server.conf.d: [2] No such file or directory
zabbix_get [13868]: Get value error: cannot connect to [[127.0.0.1]:10050]: [111] Connection refused
原因:
1、防火墙开启
2、自定义配置文件不对的原因
在排除防火墙原因之后,本次原因是:
[root@localhost bin]# cat /usr/local/zabbix/etc/zabbix_agentd.conf
LogFile=/tmp/zabbix_agentd.log
Server=127.0.0.1
ServerActive=127.0.0.1:10051
Hostname=Zabbix Server
UnsafeUserParameters=1
Include=/usr/local/etc/zabbix_agentd.conf.d/*.conf
Include的路径不对,实际路径是/usr/local/zabbix/etc/zabbix_agentd.conf.d/*.conf