I'm having an issue where the Zabbix services are not automatically started at bootup of our Ubuntu 17.10 machine.
We've manually compiled and installed Zabbix.
We've installed the Zabbix agents as services by copying the debian startup scripts from the zabbix rar:
Now we can start Zabbix from the terminal with the following commands:
How can we configure the system to auto start the Zabbix services?
I've already tried systemctl enable, which results in the following error:
and I've also tried update-rc.d, but this doesn't work.
We've manually compiled and installed Zabbix.
We've installed the Zabbix agents as services by copying the debian startup scripts from the zabbix rar:
cd zabbix/misc/init.d/debian
sudo cp zabbix-agent /etc/init.d
sudo cp zabbix-server /etc/init.d
sudo chmod 755 /etc/init.d/zabbix-server
sudo update-rc.d zabbix-server defaults
sudo chmod 755 /etc/init.d/zabbix-agent
sudo update-rc.d zabbix-agent defaults
sudo cp zabbix-agent /etc/init.d
sudo cp zabbix-server /etc/init.d
sudo chmod 755 /etc/init.d/zabbix-server
sudo update-rc.d zabbix-server defaults
sudo chmod 755 /etc/init.d/zabbix-agent
sudo update-rc.d zabbix-agent defaults
sudo service zabbix-agent start
sudo service zabbix-server start
sudo service zabbix-server start
I've already tried systemctl enable, which results in the following error:
zabbix-agent.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable zabbix-agent
update-rc.d: error: zabbix-agent Default-Start contains no runlevels, aborting.
Executing: /lib/systemd/systemd-sysv-install enable zabbix-agent
update-rc.d: error: zabbix-agent Default-Start contains no runlevels, aborting.
sudo update-rc.d zabbix-agent defaults
sudo update-rc.d zabbix-server defaults
sudo update-rc.d zabbix-server defaults
Comment