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

Zabbix Init script shipped in 1:2.4.3-1+wheezy-i386 does not report status properly

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 2.4.3
    • Agent (G)
    • None
    • Debian Wheezy/sid i386, kernel 3.4.15-686-pae.

      Related to ZBX-8356.

      With a default install and default config, startup appears to work:

      root@swg:/var/run# /etc/init.d/zabbix-agent start
      Starting Zabbix agent: zabbix_agentd.
      root@swg:/var/run# ps aux | grep zabbix
      zabbix   31138  0.0  0.1   7152   976 ?        S    09:58   0:00 /usr/sbin/zabbix_agentd
      zabbix   31140  0.0  0.1   7152   920 ?        S    09:58   0:00 /usr/sbin/zabbix_agentd: collector [idle 1 sec]
      zabbix   31141  0.0  0.1   7152   624 ?        S    09:58   0:00 /usr/sbin/zabbix_agentd: listener #1 [waiting for connection]
      zabbix   31142  0.0  0.1   7152   624 ?        S    09:58   0:00 /usr/sbin/zabbix_agentd: listener #2 [waiting for connection]
      zabbix   31143  0.0  0.1   7152   624 ?        S    09:58   0:00 /usr/sbin/zabbix_agentd: listener #3 [waiting for connection]
      zabbix   31144  0.0  0.1   7152   944 ?        S    09:58   0:00 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]
      root     31148  0.0  0.1   3524   780 pts/2    S+   09:58   0:00 grep zabbix
      

      However, status does not:

      root@swg:/var/run# /etc/init.d/zabbix-agent status
      zabbix_agentd is not running ... failed!
      

      Stop even works:

      root@swg:/var/run# /etc/init.d/zabbix-agent stop
      Stopping Zabbix agent: zabbix_agentd.
      root@swg:/var/run# ps aux | grep zabbix
      root     31177  0.0  0.1   3524   788 pts/2    S+   09:58   0:00 grep zabbix
      

      Fix is the same as documented in ZBX-8356 - simply add -p $PID to the status_of_proc call.

            Unassigned Unassigned
            cswingler Christopher Swingler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: