Cosium / zabbix_zfs-on-linux

zabbix template and user parameters to monitor zfs on linux
MIT License
76 stars 50 forks source link

Pool health monitoring broke under Zabbix 6.0 #47

Open danboid opened 6 months ago

danboid commented 6 months ago

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.

danboid commented 6 months ago

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

justinclift commented 2 months ago

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).