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

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.2.0beta2, 3.2.0rc1
    • 2.4.2
    • Agent (G)
    • 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.

        1. software.c.patch
          2 kB
          Bruno Gomes
        2. software.h.patch
          0.6 kB
          Bruno Gomes

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

              Created:
              Updated:
              Resolved: