-
Problem report
-
Resolution: Fixed
-
Trivial
-
4.0.17
-
None
-
Sprint 62 (Mar 2020), Sprint 63 (Apr 2020), Sprint 64 (May 2020), Sprint 65 (Jun 2020), Sprint 66 (Jul 2020)
Steps to reproduce:
- Install Zabbix Agent or upgrade it to 4.0.17.
- Try to start it via "service zabbix-agent start"
Result:
Zabbix Agent doesn't start and it display something like "zabbix-agent stop/pre-start, process 62818"
(PID varies but the rest is constant)
Expected:
Zabbix Agent starts and keeps running.
According to my investigation, the problem is in /etc/init.d/zabbix-agent which is different than in 4.0.16. There are these new lines:
if [ -n "$ZABBIX_AGENT_USER" ]; then
user_conf="-c $ZABBIX_AGENT_USER"
else
user_conf=''
fi
This is probably buggy because -c should specify a configuration file and not an user.