how to write the PID file on zabbix.

February 8, 2018 1.5k views
Apache Applications Configuration Management DigitalOcean Linux Basics Linux Commands Monitoring MySQL Networking

Whenever I try to start the zabbix server it doesn't start and when I check the status, following pops-up:
Redirecting to /bin/systemctl status zabbix-server.service

● zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: resources) since Thu 2018-02-08 15:20:46 EST; 7s ago
Process: 8846 ExecStop=/bin/kill -SIGTERM $MAINPID (code=exited, status=1/FAILURE)
Process: 8929 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)
Main PID: 8844 (code=exited, status=1/FAILURE)
CGroup: /system.slice/zabbix-server.service

Feb 08 15:20:46 system[1]: zabbix-server.service never wrote its PID file. Failing.
Feb 08 15:20:46 system[1]: Failed to start Zabbix Server.
Feb 08 15:20:46 system[1]: Unit zabbix-server.service entered failed state.
Feb 08 15:20:46 system[1]: zabbix-server.service failed.

Be the first one to answer this question.