zabbix_server [9093]启动报错

配置好了zabbix_server.conf,但是启动的时候就开始报错:

zabbix_server [9093]: Is this process already running? Could not lock PID file [/tmp/zabbix_server.pid]: [11] Resource temporarily unavailable


意思大概是:不能锁定PID文件,临时资源不可用,既然这样,那就讲这个pid文件不放在临时文件下,换个“正常目录”吧,于是在zabbix_server.conf里将pid文件位置指向/var/log/zabbix_server.pid,然后再重启,命令如下:

/usr/local/zabbix/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf


其中参数-c指定了zabbix_server的配置文件。

接着在服务器的日志文件中查看,又发现报错信息:

zabbix_server [14563]: cannot create PID file [/var/run/zabbix_server.pid]: [13] Permission denied

权限不够,默认zabbix是用zabbix运行的,当然如果你使用tom用户启动,如果启动成功,则是以tom用户运行,如果是zabbix或者root用户启动,则都是zabbix用户运行。

#chown zabbix.zabbix /var/run/zabbix_server.pid


再次启动:成功!

14779:20151225:172452.636 Starting Zabbix Server. Zabbix 2.2.11 (revision 56693).
 14779:20151225:172452.636 ****** Enabled features ******
 14779:20151225:172452.636 SNMP monitoring:           YES
 14779:20151225:172452.636 IPMI monitoring:            NO
 14779:20151225:172452.636 WEB monitoring:            YES
 14779:20151225:172452.636 VMware monitoring:         YES
 14779:20151225:172452.636 Jabber notifications:       NO
 14779:20151225:172452.636 Ez Texting notifications:  YES
 14779:20151225:172452.636 ODBC:                       NO
 14779:20151225:172452.636 SSH2 support:              YES
 14779:20151225:172452.636 IPv6 support:               NO
 14779:20151225:172452.636 ******************************
 14779:20151225:172452.636 using configuration file: /etc/zabbix/zabbix_server.conf
 14779:20151225:172452.641 current database version (mandatory/optional): 02020000/02020001
 14779:20151225:172452.641 required mandatory version: 02020000
 14780:20151225:172452.650 server #1 started [configuration syncer #1]
 14781:20151225:172452.650 server #2 started [db watchdog #1]
 14788:20151225:172452.652 server #9 started [trapper #1]
 14789:20151225:172452.652 server #10 started [trapper #2]
 14790:20151225:172452.653 server #11 started [trapper #3]
 14791:20151225:172452.653 server #12 started [trapper #4]
 14792:20151225:172452.653 server #13 started [trapper #5]
 14793:20151225:172452.653 server #14 started [icmp pinger #1]
 14794:20151225:172452.654 server #15 started [alerter #1]
 14795:20151225:172452.654 server #16 started [housekeeper #1]
 14795:20151225:172452.654 executing housekeeper
 14796:20151225:172452.654 server #17 started [timer #1]
 14797:20151225:172452.655 server #18 started [http poller #1]
 14801:20151225:172452.655 server #20 started [history syncer #1]
 14802:20151225:172452.655 server #21 started [history syncer #2]
 14804:20151225:172452.656 server #22 started [history syncer #3]
 14806:20151225:172452.656 server #23 started [history syncer #4]
 14808:20151225:172452.656 server #24 started [escalator #1]
 14810:20151225:172452.657 server #25 started [proxy poller #1]
 14779:20151225:172452.657 server #0 started [main process]
 14812:20151225:172452.657 server #26 started [self-monitoring #1]
 14795:20151225:172452.660 housekeeper [deleted 0 hist/trends, 0 items, 0 events, 0 sessions, 0 alarms, 0 audit items in 0.005527 sec, idle 1 hour(s)]
 14784:20151225:172452.697 server #5 started [poller #3]
 14783:20151225:172452.697 server #4 started [poller #2]
 14787:20151225:172452.697 server #8 started [unreachable poller #1]
 14785:20151225:172452.697 server #6 started [poller #4]
 14786:20151225:172452.697 server #7 started [poller #5]
 14782:20151225:172452.697 server #3 started [poller #1]
 14799:20151225:172452.702 server #19 started [discoverer #1]
 14790:20151225:172542.759 cannot send list of active checks to [192.168.1.111]: host [Zabbix server] not monitored





你可能感兴趣的:(Linux运维常见问题)