sensors item not returning correct values

XMLWordPrintable

    • Type: Problem report
    • Resolution: Won't fix
    • Priority: Major
    • None
    • Affects Version/s: 4.2.0alpha3
    • Component/s: Agent (G)
    • None

      Steps to reproduce:

      Sensors module seems to be hardcoded with max and min, and both return 'input' value in stead of giving an error, and both 'high' and 'crit' return an error, which it shouldn't:

      # sensors
      coretemp-isa-0000
      Adapter: ISA adapter
      Core 0: +34.0°C (high = +69.0°C, crit = +79.0°C)
      Core 1: +35.0°C (high = +69.0°C, crit = +79.0°C)
      Core 2: +37.0°C (high = +69.0°C, crit = +79.0°C)
      Core 8: +31.0°C (high = +69.0°C, crit = +79.0°C)
      Core 9: +38.0°C (high = +69.0°C, crit = +79.0°C)
      Core 10: +39.0°C (high = +69.0°C, crit = +79.0°C)

       

      root@localhost:~# zabbix_get -s localhost -k 'sensor[coretemp-isa-0000,temp2,max]'
      34.000000
      root@localhost:~# zabbix_get -s localhost -k 'sensor[coretemp-isa-0000,temp2,min]'
      34.000000
      root@localhost:~# zabbix_get -s localhost -k 'sensor[coretemp-isa-0001,temp2, high]'
      ZBX_NOTSUPPORTED: Invalid third parameter.
      root@localhost:~# zabbix_get -s localhost -k 'sensor[coretemp-isa-0001,temp2, crit]'
      ZBX_NOTSUPPORTED: Invalid third parameter.

      Result:

      root@localhost:~# zabbix_get -s localhost -k 'sensor[coretemp-isa-0000,temp2,max]'
      34.000000
      root@localhost:~# zabbix_get -s localhost -k 'sensor[coretemp-isa-0000,temp2,min]'
      34.000000
      root@localhost:~# zabbix_get -s localhost -k 'sensor[coretemp-isa-0001,temp2, high]'
      ZBX_NOTSUPPORTED: Invalid third parameter.
      root@localhost:~# zabbix_get -s localhost -k 'sensor[coretemp-isa-0001,temp2, crit]'
      ZBX_NOTSUPPORTED: Invalid third parameter.

      *Expected:*root@localhost:~# zabbix_get -s localhost -k 'sensor[coretemp-isa-0000,temp2,max]'
      ZBX_NOTSUPPORTED: Invalid third parameter.
      root@localhost:~# zabbix_get -s localhost -k 'sensor[coretemp-isa-0000,temp2,min]'
      ZBX_NOTSUPPORTED: Invalid third parameter.

      1. root@localhost:~# zabbix_get -s localhost -k 'sensor[coretemp-isa-0001,temp2, high]'
        69.000000
        root@localhost:~# zabbix_get -s localhost -k 'sensor[coretemp-isa-0001,temp2, crit]'
        79.000000

            Assignee:
            Zabbix Support Team
            Reporter:
            florius
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: