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

sensor[] item does not work due to a different /sys/class/hwmon file system layout

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 2.2.11rc1, 2.4.7rc1, 3.0.0alpha3
    • 2.4.1
    • Agent (G)
    • $ uname -a
      Linux hostname 3.16-2-amd64 #1 SMP Debian 3.16.3-2 (2014-09-20) x86_64 GNU/Linux

      Support for sensors on newer Linux kernels was implemented in ZBX-282. According to https://www.zabbix.com/documentation/2.4/manual/appendix/items/sensor, we should be able to construct proper arguments for the item if we look at the output of sensors -u. For instance:

      $ sensors -u | sed -n '10,16 p'
      coretemp-isa-0000
      Adapter: ISA adapter
      Physical id 0:
        temp1_input: 35.000
        temp1_max: 85.000
        temp1_crit: 105.000
        temp1_crit_alarm: 0.000
      

      However, the following item does not work, even though documentation gives a similar example:

      $ sbin/zabbix_agentd -t 'sensor[coretemp-isa-0000,temp1]'
      sensor[coretemp-isa-0000,temp1]               [m|ZBX_NOTSUPPORTED] [Cannot obtain sensor information.]
      

            Unassigned Unassigned
            asaveljevs Aleksandrs Saveljevs
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: