Cosium / zabbix_zfs-on-linux

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

vdev error monitoring fails on big numbers because it doesn't use the -p flag #26

Closed AceSlash closed 3 years ago

AceSlash commented 3 years ago

Currently the vdev number of READ WRITE and CKSUM failure is taken from the output of the zpool status command.

This is fine until you get a number high enough (>1000) and get the human readable output like "2K", which breaks the item.

Solution is simply to modify the template and use the -p flag which exists for this purpose.

AceSlash commented 3 years ago

The "-p" flag was introduced between ZFS 0.8.0-rc1 and -rc2. As a result, it cannot be used everywhere.

To avoid issue, I will use numfmt --from=si instead.