Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-8893

Zabbix Agentd always return code 0

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 2.4.0
    • Agent (G)
    • 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
      
      

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

              Created:
              Updated: