Hello.
A complete newbie here looking for some advice please.
Having a look at Zabbix for the first time and following the instructions here . Everything works as it should until I try to run the last command prior to setting up the GUI:
systemctl enable zabbix-server zabbix-agent apache2
The server response is:
Prior to install I did an apt upgrade, so I know everything is up to date. Looking at http://ip_address/zabbix gives a 'not found' error
Running: systemctl status zabbix-server zabbix-agent apache2
Gives the following output (which all looks fine to me)
Any advice at all would be greatly appreciated
Many thanks
Daniel
A complete newbie here looking for some advice please.
Having a look at Zabbix for the first time and following the instructions here . Everything works as it should until I try to run the last command prior to setting up the GUI:
systemctl enable zabbix-server zabbix-agent apache2
The server response is:
Synchronizing state of zabbix-server.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable zabbix-server
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'screen-cleanup' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `screen-cleanup'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `screen-cleanup'
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'screen-cleanup' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `screen-cleanup'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `screen-cleanup'
Synchronizing state of zabbix-agent.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable zabbix-agent
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'screen-cleanup' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `screen-cleanup'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `screen-cleanup'
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'screen-cleanup' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `screen-cleanup'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `screen-cleanup'
apache2.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install enable apache2
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'screen-cleanup' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `screen-cleanup'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `screen-cleanup'
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'screen-cleanup' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `screen-cleanup'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `screen-cleanup'
Executing /lib/systemd/systemd-sysv-install enable zabbix-server
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'screen-cleanup' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `screen-cleanup'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `screen-cleanup'
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'screen-cleanup' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `screen-cleanup'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `screen-cleanup'
Synchronizing state of zabbix-agent.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable zabbix-agent
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'screen-cleanup' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `screen-cleanup'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `screen-cleanup'
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'screen-cleanup' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `screen-cleanup'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `screen-cleanup'
apache2.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install enable apache2
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'screen-cleanup' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `screen-cleanup'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `screen-cleanup'
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'screen-cleanup' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `screen-cleanup'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `screen-cleanup'
Prior to install I did an apt upgrade, so I know everything is up to date. Looking at http://ip_address/zabbix gives a 'not found' error
Running: systemctl status zabbix-server zabbix-agent apache2
Gives the following output (which all looks fine to me)
â zabbix-server.service - Zabbix Server
Loaded: loaded (/lib/systemd/system/zabbix-server.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2019-09-13 15:16:54 SAST; 11min ago
Main PID: 47808 (zabbix_server)
CGroup: /system.slice/zabbix-server.service
ââ47808 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
ââ47813 /usr/sbin/zabbix_server: configuration syncer [synced configuration in 0.023057 s
ââ47814 /usr/sbin/zabbix_server: housekeeper [startup idle for 30 minutes
ââ47815 /usr/sbin/zabbix_server: timer #1 [updated 0 hosts, suppressed 0 events in 0.0005
ââ47816 /usr/sbin/zabbix_server: http poller #1 [got 0 values in 0.000916 sec, idle 5 sec
ââ47817 /usr/sbin/zabbix_server: discoverer #1 [processed 0 rules in 0.000899 sec, idle 6
ââ47818 /usr/sbin/zabbix_server: history syncer #1 [processed 0 values, 0 triggers in 0.0
ââ47819 /usr/sbin/zabbix_server: history syncer #2 [processed 2 values, 0 triggers in 0.0
ââ47820 /usr/sbin/zabbix_server: history syncer #3 [processed 0 values, 0 triggers in 0.0
ââ47821 /usr/sbin/zabbix_server: history syncer #4 [processed 0 values, 0 triggers in 0.0
ââ47822 /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.001071 sec, i
ââ47823 /usr/sbin/zabbix_server: proxy poller #1 [exchanged data with 0 proxies in 0.0000
ââ47824 /usr/sbin/zabbix_server: self-monitoring [processed data in 0.000029 sec, idle 1
ââ47825 /usr/sbin/zabbix_server: task manager [processed 0 task(s) in 0.000340 sec, idle
ââ47827 /usr/sbin/zabbix_server: poller #1 [got 0 values in 0.000012 sec, idle 1 sec
ââ47828 /usr/sbin/zabbix_server: poller #2 [got 1 values in 0.000090 sec, idle 1 sec
ââ47830 /usr/sbin/zabbix_server: poller #3 [got 1 values in 0.000167 sec, idle 1 sec
ââ47831 /usr/sbin/zabbix_server: poller #4 [got 0 values in 0.000019 sec, idle 1 sec
ââ47833 /usr/sbin/zabbix_server: poller #5 [got 0 values in 0.000022 sec, idle 1 sec
ââ47834 /usr/sbin/zabbix_server: unreachable poller #1 [got 0 values in 0.000020 sec, idl
ââ47835 /usr/sbin/zabbix_server: trapper #1 [processed data in 0.000000 sec, waiting for
ââ47837 /usr/sbin/zabbix_server: trapper #2 [processed data in 0.000000 sec, waiting for
ââ47838 /usr/sbin/zabbix_server: trapper #3 [processed data in 0.002157 sec, waiting for
ââ47840 /usr/sbin/zabbix_server: trapper #4 [processed data in 0.002369 sec, waiting for
ââ47841 /usr/sbin/zabbix_server: trapper #5 [processed data in 0.000000 sec, waiting for
ââ47842 /usr/sbin/zabbix_server: icmp pinger #1 [got 0 values in 0.000031 sec, idle 5 sec
ââ47843 /usr/sbin/zabbix_server: alert manager #1 [sent 0, failed 0 alerts, idle 5.008670
ââ47844 /usr/sbin/zabbix_server: alerter #1 started
ââ47861 /usr/sbin/zabbix_server: alerter #2 started
ââ47862 /usr/sbin/zabbix_server: alerter #3 started
ââ47863 /usr/sbin/zabbix_server: preprocessing manager #1 [queued 1, processed 8 values,
ââ47864 /usr/sbin/zabbix_server: preprocessing worker #1 started
ââ47865 /usr/sbin/zabbix_server: preprocessing worker #2 started
ââ47866 /usr/sbin/zabbix_server: preprocessing worker #3 started
ââ47867 /usr/sbin/zabbix_server: lld manager #1 [processed 0 LLD rules during 5.005374 se
ââ47868 /usr/sbin/zabbix_server: lld worker #1 started
ââ47870 /usr/sbin/zabbix_server: lld worker #2 started
Sep 13 15:16:54 ubuntu systemd[1]: Starting Zabbix Server...
Sep 13 15:16:54 ubuntu systemd[1]: zabbix-server.service: Supervising process 47808 which is not our
Sep 13 15:16:54 ubuntu systemd[1]: Started Zabbix Server.
â zabbix-agent.service - Zabbix Agent
Loaded: loaded (/lib/systemd/system/zabbix-agent.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2019-09-13 15:16:54 SAST; 11min ago
Main PID: 47790 (zabbix_agentd)
CGroup: /system.slice/zabbix-agent.service
ââ47790 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
ââ47791 /usr/sbin/zabbix_agentd: collector [idle 1 sec]
ââ47792 /usr/sbin/zabbix_agentd: listener #1 [waiting for connection
ââ47793 /usr/sbin/zabbix_agentd: listener #2 [waiting for connection
ââ47794 /usr/sbin/zabbix_agentd: listener #3 [waiting for connection
ââ47795 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]
Sep 13 15:16:54 ubuntu systemd[1]: Starting Zabbix Agent...
Sep 13 15:16:54 ubuntu systemd[1]: zabbix-agent.service: PID file /run/zabbix/zabbix_agentd.pid not
Sep 13 15:16:54 ubuntu systemd[1]: Started Zabbix Agent.
â apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
ââapache2-systemd.conf
Active: active (running) since Fri 2019-09-13 15:16:56 SAST; 11min ago
Docs: man:systemd-sysv-generator(8)
CGroup: /system.slice/apache2.service
ââ47890 /usr/sbin/apache2 -k start
ââ47893 /usr/sbin/apache2 -k start
ââ47894 /usr/sbin/apache2 -k start
ââ47895 /usr/sbin/apache2 -k start
ââ47896 /usr/sbin/apache2 -k start
ââ47897 /usr/sbin/apache2 -k start
ââ48465 /usr/sbin/apache2 -k start
Sep 13 15:16:55 ubuntu systemd[1]: Starting LSB: Apache2 web server...
Sep 13 15:16:55 ubuntu apache2[47874]: * Starting Apache httpd web server apache2
Sep 13 15:16:56 ubuntu apache2[47874]: *
Sep 13 15:16:56 ubuntu systemd[1]: Started LSB: Apache2 web server.
Loaded: loaded (/lib/systemd/system/zabbix-server.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2019-09-13 15:16:54 SAST; 11min ago
Main PID: 47808 (zabbix_server)
CGroup: /system.slice/zabbix-server.service
ââ47808 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
ââ47813 /usr/sbin/zabbix_server: configuration syncer [synced configuration in 0.023057 s
ââ47814 /usr/sbin/zabbix_server: housekeeper [startup idle for 30 minutes
ââ47815 /usr/sbin/zabbix_server: timer #1 [updated 0 hosts, suppressed 0 events in 0.0005
ââ47816 /usr/sbin/zabbix_server: http poller #1 [got 0 values in 0.000916 sec, idle 5 sec
ââ47817 /usr/sbin/zabbix_server: discoverer #1 [processed 0 rules in 0.000899 sec, idle 6
ââ47818 /usr/sbin/zabbix_server: history syncer #1 [processed 0 values, 0 triggers in 0.0
ââ47819 /usr/sbin/zabbix_server: history syncer #2 [processed 2 values, 0 triggers in 0.0
ââ47820 /usr/sbin/zabbix_server: history syncer #3 [processed 0 values, 0 triggers in 0.0
ââ47821 /usr/sbin/zabbix_server: history syncer #4 [processed 0 values, 0 triggers in 0.0
ââ47822 /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.001071 sec, i
ââ47823 /usr/sbin/zabbix_server: proxy poller #1 [exchanged data with 0 proxies in 0.0000
ââ47824 /usr/sbin/zabbix_server: self-monitoring [processed data in 0.000029 sec, idle 1
ââ47825 /usr/sbin/zabbix_server: task manager [processed 0 task(s) in 0.000340 sec, idle
ââ47827 /usr/sbin/zabbix_server: poller #1 [got 0 values in 0.000012 sec, idle 1 sec
ââ47828 /usr/sbin/zabbix_server: poller #2 [got 1 values in 0.000090 sec, idle 1 sec
ââ47830 /usr/sbin/zabbix_server: poller #3 [got 1 values in 0.000167 sec, idle 1 sec
ââ47831 /usr/sbin/zabbix_server: poller #4 [got 0 values in 0.000019 sec, idle 1 sec
ââ47833 /usr/sbin/zabbix_server: poller #5 [got 0 values in 0.000022 sec, idle 1 sec
ââ47834 /usr/sbin/zabbix_server: unreachable poller #1 [got 0 values in 0.000020 sec, idl
ââ47835 /usr/sbin/zabbix_server: trapper #1 [processed data in 0.000000 sec, waiting for
ââ47837 /usr/sbin/zabbix_server: trapper #2 [processed data in 0.000000 sec, waiting for
ââ47838 /usr/sbin/zabbix_server: trapper #3 [processed data in 0.002157 sec, waiting for
ââ47840 /usr/sbin/zabbix_server: trapper #4 [processed data in 0.002369 sec, waiting for
ââ47841 /usr/sbin/zabbix_server: trapper #5 [processed data in 0.000000 sec, waiting for
ââ47842 /usr/sbin/zabbix_server: icmp pinger #1 [got 0 values in 0.000031 sec, idle 5 sec
ââ47843 /usr/sbin/zabbix_server: alert manager #1 [sent 0, failed 0 alerts, idle 5.008670
ââ47844 /usr/sbin/zabbix_server: alerter #1 started
ââ47861 /usr/sbin/zabbix_server: alerter #2 started
ââ47862 /usr/sbin/zabbix_server: alerter #3 started
ââ47863 /usr/sbin/zabbix_server: preprocessing manager #1 [queued 1, processed 8 values,
ââ47864 /usr/sbin/zabbix_server: preprocessing worker #1 started
ââ47865 /usr/sbin/zabbix_server: preprocessing worker #2 started
ââ47866 /usr/sbin/zabbix_server: preprocessing worker #3 started
ââ47867 /usr/sbin/zabbix_server: lld manager #1 [processed 0 LLD rules during 5.005374 se
ââ47868 /usr/sbin/zabbix_server: lld worker #1 started
ââ47870 /usr/sbin/zabbix_server: lld worker #2 started
Sep 13 15:16:54 ubuntu systemd[1]: Starting Zabbix Server...
Sep 13 15:16:54 ubuntu systemd[1]: zabbix-server.service: Supervising process 47808 which is not our
Sep 13 15:16:54 ubuntu systemd[1]: Started Zabbix Server.
â zabbix-agent.service - Zabbix Agent
Loaded: loaded (/lib/systemd/system/zabbix-agent.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2019-09-13 15:16:54 SAST; 11min ago
Main PID: 47790 (zabbix_agentd)
CGroup: /system.slice/zabbix-agent.service
ââ47790 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
ââ47791 /usr/sbin/zabbix_agentd: collector [idle 1 sec]
ââ47792 /usr/sbin/zabbix_agentd: listener #1 [waiting for connection
ââ47793 /usr/sbin/zabbix_agentd: listener #2 [waiting for connection
ââ47794 /usr/sbin/zabbix_agentd: listener #3 [waiting for connection
ââ47795 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]
Sep 13 15:16:54 ubuntu systemd[1]: Starting Zabbix Agent...
Sep 13 15:16:54 ubuntu systemd[1]: zabbix-agent.service: PID file /run/zabbix/zabbix_agentd.pid not
Sep 13 15:16:54 ubuntu systemd[1]: Started Zabbix Agent.
â apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
ââapache2-systemd.conf
Active: active (running) since Fri 2019-09-13 15:16:56 SAST; 11min ago
Docs: man:systemd-sysv-generator(8)
CGroup: /system.slice/apache2.service
ââ47890 /usr/sbin/apache2 -k start
ââ47893 /usr/sbin/apache2 -k start
ââ47894 /usr/sbin/apache2 -k start
ââ47895 /usr/sbin/apache2 -k start
ââ47896 /usr/sbin/apache2 -k start
ââ47897 /usr/sbin/apache2 -k start
ââ48465 /usr/sbin/apache2 -k start
Sep 13 15:16:55 ubuntu systemd[1]: Starting LSB: Apache2 web server...
Sep 13 15:16:55 ubuntu apache2[47874]: * Starting Apache httpd web server apache2
Sep 13 15:16:56 ubuntu apache2[47874]: *
Sep 13 15:16:56 ubuntu systemd[1]: Started LSB: Apache2 web server.
Any advice at all would be greatly appreciated
Many thanks
Daniel