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

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 2.4.5
    • Agent (G)
    • None
    • 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.

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

              Created:
              Updated:
              Resolved: