Ahoj,
nahodil som Zabbix agent na router Turris Omnia a rad by som pouzival aj monitoring teploty (ten cip riadne hreje), no dari sa mi citat hodnoty len jedneho senzora.
# sensors
mv88e6xxx102-mdio-2
Adapter: MDIO adapter
temp1: +62.0°C (crit = +100.0°C)
mv88e6xxx100-mdio-0
Adapter: MDIO adapter
temp1: +62.0°C (crit = +100.0°C)
f1072004mdiomii01-mdio-1
Adapter: MDIO adapter
temp1: +54.0°C (crit = +100.0°C)
mv88e6xxx103-mdio-3
Adapter: MDIO adapter
temp1: +62.0°C (crit = +100.0°C)
mv88e6xxx101-mdio-1
Adapter: MDIO adapter
temp1: +62.0°C (crit = +100.0°C)
armada_thermal-virtual-0
Adapter: Virtual device
temp1: +76.1°C
mv88e6xxx104-mdio-4
Adapter: MDIO adapter
temp1: +62.0°C (crit = +100.0°C)[/tt]
Co funguje:
[tt]# zabbix_get -s 127.0.0.1 -k 'sensor[armada_thermal-virtual-0,temp1]'
76.070000
Co nefunguje:
vsetko ostatne, teda napr.
# zabbix_get -s 127.0.0.1 -k 'sensor[mv88e6xxx104-mdio-4,temp1]'
ZBX_NOTSUPPORTED: Cannot obtain sensor information.
# zabbix_get -s 127.0.0.1 -k 'sensor[mv88e6xxx102-mdio-2,temp1]'
ZBX_NOTSUPPORTED: Cannot obtain sensor information.
Ako workaround by som to mohol riesit trapper-om a vlastnym skriptom, ale tomu by som sa chcel vyhnut. Robim nieco zle?
TurrisOS 5.3.10
zabbix_get (Zabbix) 4.0.37
Revision a039afba50 23 December 2021
Copyright (C) 2021 Zabbix SIA
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it according to
the license. There is NO WARRANTY, to the extent permitted by law.
Diky,
j