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

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

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: