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

agent cannot get hostname in LXC client

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • 1.8.12
    • Agent (G)
    • Debian LXC server and client

      If I run zabbix_agentd in an LXC client, then it fails to start with

      1. zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
        zabbix_agentd [943]: ERROR: invalid host name: []

      The log file is not written at all, even with Debug=4.

      If I don't define a Hostname in zabbix_agentd.conf, then there is no such problem.

      This might be related: On the client command line I get

      1. hostname
        tricia
      2. cat /etc/hostname
        tricia.mydomain.de
      3. hostname --fqdn
        hostname: Name or service not known

      It seems that the domain name part is cut off in the LXC client. On a real system "hostname" would have reported "tricia.mydomain.de", and "hostname --fqdn" wouldn't fail.

            Unassigned Unassigned
            harri Harri
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: