Performed Zabbix 3.4 to 4.0 Upgrade
Before performing the upgrade in my production environment I did in my test environment and it worked.
I have a problem with the Zabbix agent after performing the upgrade in the production environment.
I already removed the agent and inhaled again but it seems to me that it does not read the configuration file.
See screen below after installing the agent
root@JD58:/var/log/zabbix# systemctl status zabbix-agent
● zabbix-agent.service - Zabbix Agent
Loaded: loaded (/lib/systemd/system/zabbix-agent.service; enabled; vendor preset: enabled)
Active: active (exited) since Mon 2019-07-29 10:40:55 -03; 27min ago
Tasks: 0 (limit: 19660)
CGroup: /system.slice/zabbix-agent.service
jul 29 10:40:55 JD58 systemd[1]: Starting LSB: Start zabbix-agent daemon...
jul 29 10:40:55 JD58 systemd[1]: Started LSB: Start zabbix-agent daemon.
I update the configuration file with IP and server name.
I restart the service and see what it presents.
root@JD58:/var/log/zabbix# systemctl restart zabbix-agent
Job for zabbix-agent.service failed because the control process exited with error code.
See "systemctl status zabbix-agent.service" and "journalctl -xe" for details.
root@JD58:/var/log/zabbix# systemctl status zabbix-agent
● zabbix-agent.service - Zabbix Agent
Loaded: loaded (/lib/systemd/system/zabbix-agent.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2019-07-29 11:11:51 -03; 170ms ago
Process: 7826 ExecStop=/bin/kill -SIGTERM $MAINPID (code=exited, status=1/FAILURE)
Process: 8155 ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE (code=exited, status=1/FAILURE)
jul 29 11:11:51 JD58 systemd[1]: zabbix-agent.service: Control process exited, code=exited status=1
jul 29 11:11:51 JD58 systemd[1]: Failed to start Zabbix Agent.
jul 29 11:11:51 JD58 systemd[1]: zabbix-agent.service: Unit entered failed state.
jul 29 11:11:51 JD58 systemd[1]: zabbix-agent.service: Failed with result 'exit-code'.
root@JD58:/var/log/zabbix#
My linux is Debian 9
Before performing the upgrade in my production environment I did in my test environment and it worked.
I have a problem with the Zabbix agent after performing the upgrade in the production environment.
I already removed the agent and inhaled again but it seems to me that it does not read the configuration file.
See screen below after installing the agent
root@JD58:/var/log/zabbix# systemctl status zabbix-agent
● zabbix-agent.service - Zabbix Agent
Loaded: loaded (/lib/systemd/system/zabbix-agent.service; enabled; vendor preset: enabled)
Active: active (exited) since Mon 2019-07-29 10:40:55 -03; 27min ago
Tasks: 0 (limit: 19660)
CGroup: /system.slice/zabbix-agent.service
jul 29 10:40:55 JD58 systemd[1]: Starting LSB: Start zabbix-agent daemon...
jul 29 10:40:55 JD58 systemd[1]: Started LSB: Start zabbix-agent daemon.
I update the configuration file with IP and server name.
I restart the service and see what it presents.
root@JD58:/var/log/zabbix# systemctl restart zabbix-agent
Job for zabbix-agent.service failed because the control process exited with error code.
See "systemctl status zabbix-agent.service" and "journalctl -xe" for details.
root@JD58:/var/log/zabbix# systemctl status zabbix-agent
● zabbix-agent.service - Zabbix Agent
Loaded: loaded (/lib/systemd/system/zabbix-agent.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2019-07-29 11:11:51 -03; 170ms ago
Process: 7826 ExecStop=/bin/kill -SIGTERM $MAINPID (code=exited, status=1/FAILURE)
Process: 8155 ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE (code=exited, status=1/FAILURE)
jul 29 11:11:51 JD58 systemd[1]: zabbix-agent.service: Control process exited, code=exited status=1
jul 29 11:11:51 JD58 systemd[1]: Failed to start Zabbix Agent.
jul 29 11:11:51 JD58 systemd[1]: zabbix-agent.service: Unit entered failed state.
jul 29 11:11:51 JD58 systemd[1]: zabbix-agent.service: Failed with result 'exit-code'.
root@JD58:/var/log/zabbix#
My linux is Debian 9
Comment