Cosium / zabbix_zfs-on-linux

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

Added zpool.iostat data collecting #19

Closed castorsky closed 3 years ago

castorsky commented 3 years ago

Added collecting zpool iostat data (read, written bytes and read/write operations) averaged per minute

AceSlash commented 3 years ago

Very nice, you found the keys I didn't look for for the IO at /proc/spl/kstat/zfs/pool_name/io :-)

I have a question though: don't you think that it would be better to simply send the raw value to Zabbix and do a "Preprocessing" with "Change per second"? This would achieve the same as the mathematical operation but without the temporary file.

castorsky commented 3 years ago

It sure will. But preprocessing was added only at 3.4 release. I have 5.2 server and created prototypes via vfs.file.contents, preprocessing and javaScript at first. But then I realized that for backward compatibility with 3.0 bash is the only option.

AceSlash commented 3 years ago

You are indeed right.

I think it's time to drop the support to version < 4.0 then. From https://www.zabbix.com/life_cycle_and_release_policy , Zabbix 3.0 will be completely unsupported next February. I don't think it's worth it to keep the compatibility for this old version since it complicate the userparameters for the newest ones.

Could you please send the version with preprocessing instead? I was about to do it myself (without the javascript), but since you already did it ;-)

castorsky commented 3 years ago

Successfully dropped legacy 3.0. :)

AceSlash commented 3 years ago

Merged, thank you for your contribution :-)