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

sensors item not returning correct values

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • 4.2.0alpha3
    • 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

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

              Created:
              Updated:
              Resolved: