-
Incident report
-
Resolution: Unresolved
-
Trivial
-
None
-
2.4.0
-
None
-
Linux
zabbix agentd always return code 0 when started regardless it failed or not, making it really hard to code a proper init script and tell exactly if process started or not.
I have created of test scenario where i make it fail to start by finding to a used port, but the return code is always 0, it should be 1 at least
Example on how to reproduce:
zabbix@hostname:/opt/zabbix/test/sbin > ./zabbix_agentd -c /opt/zabbix/test/etc/zabbix_agentd.conf zabbix@hostname:/opt/zabbix/test/sbin > echo $? 0 At this point you should think it succeded, but it failed zabbix@hostname:/opt/zabbix/test/sbin > tail ../logs/zabbix_agentd.log 319:20141013:150151.826 listener failed: bind() for [[-]:10050] failed: [98] Address already in use