Zabbix Agent Not Starting with Error 1067

Problem

A newly installed zabbix agent (4.4.x) was installed on a Windows 2016 server using an automated script. The error was showing

 

Windows could not start the Zabbix Agent service on Local Computer

Error 1067: The process terminated unexpectedly

zabbix_agent_fail1

 

Troubleshooting

i tried to run the command in the foreground 

 

"C:\Progra~1\Zabbix-Agent\zabbix_agentd.exe" -f --config "C:\Progra~1\Zabbix-Agent\zabbix_agentd.conf"

And it showed the culprit

zabbix_agentd.exe [6964]: cannot open log: unable to open log file [C:\Program Files\Zabbix-Agent\Log\zabbix_agentd.log]: [2] No such file or directory

 

zabbix_agent_fail2

 

Resolution

It was simply matter of ensuring the "Log" directory existed and the service started.