v-zhuravlev / zbx-smartctl

Templates and scripts for monitoring disks health with Zabbix and smartmontools
https://share.zabbix.com/storage-devices/smartmontools/smart-monitoring-with-smartmontools-lld
GNU General Public License v3.0
245 stars 127 forks source link

temperature trigger boundaries #49

Closed rrauenza closed 6 years ago

rrauenza commented 6 years ago

I'm looking at the 2.2 template's triggers and something seems off:

Warning {Template_HDD_SMARTMONTOOLS_2_WITH_LLD:uHDD[{#DISKNAME},Temperature_Celsius].avg(1800)}>50& {Template_HDD_SMARTMONTOOLS_2_WITH_LLD:uHDD[{#DISKNAME},Temperature_Celsius].nodata(1800)}=0

So we get a warning if avg is over 50

High {Template_HDD_SMARTMONTOOLS_2_WITH_LLD:uHDD[{#DISKNAME},Temperature_Celsius].last(0)}>65& {Template_HDD_SMARTMONTOOLS_2_WITH_LLD:uHDD[{#DISKNAME},Temperature_Celsius].last(0)}<100

But we get an error if over 65 but less than 100.

v-zhuravlev commented 6 years ago

to avoid alarms when disk reports invalid data (like 255 in this field). I actually encountered such disks myself. So everything above 100 would be ignored.

rrauenza commented 6 years ago

Thanks for the explanation -- I supposed if my HD is >= 100 C, it probably isn't responding anymore :)