zabbix_agentd daemonizes improperly if HostnameItem is set to system.run[xxx]

XMLWordPrintable

    • Type: Incident report
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: 2.0.9, 2.1.8
    • Component/s: Agent (G)
    • Environment:
      Ubuntu Linux 12.04, Ubuntu Linux 13.10
    • Prev.Sprint, S25-W50/51/52/01

      The forking performed by "system.run" during startup causes upstart to fail to detect the correct PID.
      This is essentially the same issue as: ZBX-5234 but it's not fixed since the fix for ZBX-5234 relied on removing the fork from the "system.hostname" implementation. In our case there's no easy way to remove forking from "system.run".

      Question is why not load the config file (and perform necessary forks) AFTER daemonizing. This, btw, would enable ZBXNEXT-1631.

            Assignee:
            Mikhail Korotkov
            Reporter:
            Yoav Steinberg
            Team A
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: