/sys/class/hwmon/hwmon0/device/name is not accurate with Fedora 22 era kernels

XMLWordPrintable

    • Type: Incident report
    • Resolution: Duplicate
    • Priority: Major
    • None
    • Affects Version/s: 2.4.5
    • Component/s: Agent (G)
    • None
    • Environment:
      Fedora 22

      ltrace shows:
      fopen("/sys/class/hwmon/hwmon0/device/name", "r")

      the part containing device is not accurate for kernels currently in Fedora 22. I do not know if it is still valid for kernels in the past. I wrote some of this code for Zabbix a long time ago.

      It appears that in Linux kernels >= 4.x (not sure if it started earlier) that the device part of the file names for sensors is no long appropriate to find the device name. I believe there was a case where it some times was under device and sometimes not. Now it appears that it NEVER is.

            Assignee:
            Unassigned
            Reporter:
            Trever L. Adams
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: