[ZBX-20897] Zabbix Web Service automatic Start Created: 2022 Apr 14  Updated: 2022 Apr 15  Resolved: 2022 Apr 15

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: tuor Assignee: Zabbix Support Team
Resolution: Won't fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Problem

The Zabbix Web Service doesn't start automatically and has to be started manually (documentation). Even if I start it manually, I have to start it again after every reboot.

 

The documentation doesn't mention, I have to add the option -c to get it to work:

zabbix_web_service -c /etc/zabbix/zabbix_web_service.conf 

 

I found this forum thread (my post about how I did work around the issue):

https://www.zabbix.com/forum/zabbix-troubleshooting-and-problems/429591-scheduled-reports-cannot-connect-to-web-service-couldn-t-connect-to-server?p=443124#post443124

Possible Solution

Provide a systemd service unit file which runs

zabbix_web_service -c /etc/zabbix/zabbix_web_service.conf

at boot time.



 Comments   
Comment by Edgar Akhmetshin [ 2022 Apr 15 ]
root@c5fb841c2a18:/# dpkg -L zabbix-web-service                    
/.
/etc
/etc/init.d
/etc/init.d/zabbix-web-service
/etc/logrotate.d
/etc/logrotate.d/zabbix-web-service
/etc/zabbix
/etc/zabbix/zabbix_web_service.conf
/lib
/lib/systemd
/lib/systemd/system
/lib/systemd/system/zabbix-web-service.service
/usr
/usr/lib
/usr/lib/tmpfiles.d
/usr/lib/tmpfiles.d/zabbix-web-service.conf
/usr/sbin
/usr/sbin/zabbix_web_service
/usr/share
/usr/share/doc
/usr/share/doc/zabbix-web-service
/usr/share/doc/zabbix-web-service/changelog.Debian.gz
/usr/share/doc/zabbix-web-service/changelog.gz
/usr/share/doc/zabbix-web-service/copyright
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/zabbix_web_service.8.gz
/var
/var/log
/var/log/zabbix
root@c5fb841c2a18:/# cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@c5fb841c2a18:/# cat /lib/systemd/system/zabbix-web-service.service
[Unit]
Description=Zabbix Web Service
After=syslog.target
After=network.target

[Service]
Environment="CONFFILE=/etc/zabbix/zabbix_web_service.conf"
EnvironmentFile=-/etc/default/zabbix_web_service
Type=simple
Restart=on-failure
KillMode=control-group
ExecStart=/usr/sbin/zabbix_web_service -c $CONFFILE
ExecStop=/bin/sh -c '[ -n "$1" ] && kill -s TERM "$1"' -- "$MAINPID"
RestartSec=10s
User=zabbix
Group=zabbix

[Install]
WantedBy=multi-user.target
root@c5fb841c2a18:/# 

Please be advised that this section of the tracker is for bug reports only. The case you have submitted can not be qualified as one, so please reach out to [email protected] for commercial support (https://zabbix.com/support) or consultancy services. Alternatively, you can also use our IRC channel or community forum (https://www.zabbix.com/forum) for assistance. With that said, we are closing this ticket. Thank you for understanding.

Generated at Thu Oct 02 21:56:44 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.