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
244 stars 127 forks source link

invalid regular expression, can't import on zabbix 6.0+ #171

Closed pavlozt closed 10 months ago

pavlozt commented 10 months ago

An error occurs during import

Import failed
Invalid parameter "/9/preprocessing/1/params/1": invalid regular expression.

I found a detailed discussion of this error on the forum : https://www.zabbix.com/forum/zabbix-help/473045-template-import-failed-for-zbx-smartctl-on-zabbix-6-4

Fix is trivial : need escape bracket character in Temperature regex

pavlozt commented 10 months ago

This is most likely due to known issues in 6.0+:

https://www.zabbix.com/documentation/6.0/en/manual/installation/known_issues?hl=regexp#invalid-regular-expressions-after-switching-to-pcre2