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

Zabbix 4.0 Template Import #70

Closed xpliz closed 5 years ago

xpliz commented 5 years ago

I have a problem with importing the template into Zabbix 4.0. It imports without errors but only application, and discovery script get import. No items no triggers?

Querying by hand through zabbix_get works fine.

mykolq commented 5 years ago

it seems there is a problem with regexp in preprocessing (it was started in 4.0 zabbix). you can fix it by yourself by taking the expression in parentheses and getting non first matching. example: 2018-10-25_16-48-23

v-zhuravlev commented 5 years ago

@XplizitBe which template? Template for 3.4, for example, doesn't have any items or triggers - everything is discovered by LLD, so see the discovery section inside the template - where you would find items and trigger prototypes.

jpaulickcz commented 5 years ago

I have imported the 3.4 template into Zabbix 4.0 with no issues and the items are discovered with no problem, but the values are indeed parsed incorrectly (screen).

Unfortunately my knowledge of regex is close to none; has anyone tried to edit the expressions or ideally the whole template to use with Zabbix 4.0?

mykolq commented 5 years ago

2018-12-10_11-39-35 something like that. You can check expressions here https://regex101.com/.

v-zhuravlev commented 5 years ago

@jpaulickcz , can you please attach smartctl -A output?

v-zhuravlev commented 5 years ago

closing this now, please reopen if still having issues.