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

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

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: