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

sensors item not returning correct values

    Details

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

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: