Cosium / zabbix_zfs-on-linux

zabbix template and user parameters to monitor zfs on linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pool health monitoring broke under Zabbix 6.0

danboid opened this issue · comments

This template used to work fine for me under Zabbix 4.0 but I discovered today that the pool health monitoring broke when I upgraded my Zabbix server to 6.0.

From looking at other recently reported issues and reading

https://www.zabbix.com/documentation/4.0/en/manual/installation/upgrade_notes_400#deprecated-macros-in-item-names

My guess was that I needed to replace

# pool health
UserParameter=zfs.zpool.health[*],/sbin/zpool list -H -o health $1

in ZoL_without_sudo.conf with:

# pool health
UserParameter=zfs.zpool.health[*],/sbin/zpool list -H -o health "{#POOLNAME}"

but that hasn't fixed it, after restarting zabbix-agent2.

I think this template provides more info than I need but its useless to me if the pool health check doesn't work.

It looks like the dev has stopped supporting this template?

I've not tested it yet but it seems users of Zabbix 6 should use this instead:

https://github.com/zabbix/community-templates/tree/main/Operating_Systems/Linux/template_zfs_on_linux/6.0

The fork here looks to be fixed for some issues:

https://github.com/mpawlik/zabbix_zfs-on-linux

Haven't actually tested it personally though (yet).