[ZBX-18489] Setting custom PID file path in Server or Agent config file causes specified service cannot be started Created: 2020 Oct 13 Updated: 2021 Feb 03 |
|
Status: | Need info |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G), Server (S) |
Affects Version/s: | 5.0.3, 5.0.4 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Trivial |
Reporter: | Zoltan Nagy | Assignee: | Zabbix Support Team |
Resolution: | Unresolved | Votes: | 0 |
Labels: | agent, problem, server, startup | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
CentOS 7, CentOS 8.1 in VMWare environment |
Description |
Steps to reproduce:
Result: systemctl status zabbix-agent.service ● zabbix-agent.service - Zabbix Agent Oct 13 10:51:10 myhost.tst.local systemd[1]: Starting Zabbix Agent... Expected: |
Comments |
Comment by Juris [ 2021 Feb 03 ] |
Couldn't reproduce with 5.4.0alpha2 on a current Fedora 33:
and on OpenBSD 6.8 (-stable):
So forking and opening a pidfile works. The output in your report indicates that the agent hasn't read the configuration, as it's still attempting to create the pidfile in it's run-time directory. Does the agent user (zabbix) have the correct permissions to write to that directory? Where does the systemd service file come from? Does it use a PidFile= directive, that tries to monitor a different location? |
Comment by Jurijs Klopovskis [ 2021 Feb 03 ] |
Hi znagy, Sorry for late response. Have you also changes pid file path in the zabbix-agent systemd service file? |
Comment by Jurijs Klopovskis [ 2021 Feb 03 ] |
jxl, alpha2? It's not out yet |
Comment by Juris [ 2021 Feb 03 ] |
@yurii, sorry, that's a typo. Both tests were done with a build from 3de0b9cc. EDIT: Now I get where I got the 2 from - the version banner in the output. |