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