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

zabbix/misc/init.d/debian/zabbix-agent is confused about its name

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 3.2.1
    • Agent (G), Installation (I)
    • debian 7.8; zabbix-agent = 1:2.2.7+dfsg-2

      the init.d file for debian is confused about its filename

      host:/var/log/zabbix# service zabbix-agent
      Usage: /etc/init.d/zabbix_agentd {start|stop|restart|force-reload}
      host:/var/log/zabbix# less /etc/init.d/zabbix_agentd
      /etc/init.d/zabbix_agentd: No such file or directory
      

      Note that there are two problems with this output:

      1. It the output includes an underscore _, but the service uses a -.
      2. It includes a trailing d, but the service name does not.

      The same first problem occurs for zabbix-server.

      I've attached a patch (against .D........ ZBXNEXT-1667 added frontend changes to the Changelog) which should fix this.

      The version I encountered this problem is older, but the code is still broken in current.

      One could use $0 instead if calculating name, but at least some debian scripts like to do some gymnastics (to handle cases where sysv init systems are in play).

            Unassigned Unassigned
            jsoref Josh Soref
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: