Item system.sw.os[name] returns "\S" in RHEL7 (and possibly in other systemd Linux distributions)

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Minor
    • 3.2.0beta2, 3.2.0rc1
    • Affects Version/s: 2.4.2
    • Component/s: Agent (G)
    • Environment:
      Red Hat Enterprise Linux Server 7.0 (Maipo) 3.10.0-123.el7.x86_64

      The file used by Zabbix to get the OS name, /etc/issue.net according to the documentation, has changed in RHEL7.

      It seems that this information has moved to /etc/os-release (http://www.freedesktop.org/software/systemd/man/os-release.html) in distributions that use systemd.

      I have attached two patches that fix this issue. It's probably not the best implementation, but you can use it if you're too busy to fix it anytime soon.

            Assignee:
            Unassigned
            Reporter:
            Bruno Gomes
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: