Zabbix Agentd always return code 0

XMLWordPrintable

    • Type: Incident report
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: 2.4.0
    • Component/s: Agent (G)
    • None
    • Environment:
      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
      
      

            Assignee:
            Unassigned
            Reporter:
            Christian Reizlein
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: