Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item "Get iostats" in ZFS pool discovery fix #42

Open
cmbcbe opened this issue Sep 8, 2022 · 2 comments
Open

Item "Get iostats" in ZFS pool discovery fix #42

cmbcbe opened this issue Sep 8, 2022 · 2 comments

Comments

@cmbcbe
Copy link

cmbcbe commented Sep 8, 2022

Hello,

the item "Zpool {#POOLNAME}: Get iostats" in ZFS discovery pool value should be changed from
vfs.file.contents[/proc/spl/kstat/zfs/{#POOLNAME}/io]
to
vfs.file.contents[/proc/spl/kstat/zfs/{#POOLNAME}/iostats]

Regards

@cmbcbe cmbcbe changed the title Iem Get iostats on ZFS pool discovery fix Item "Get iostats" in ZFS pool discovery fix Sep 8, 2022
@kobuki
Copy link

kobuki commented Mar 4, 2023

This fix doesn't work in itself. I had to change the base item key to

vfs.file.regexp[/proc/spl/kstat/zfs/rpool/iostats,"^[0-9]"]

to only return the first line of the file. Then the dependent items work, but always show zero IO operations. Something must have changed in the format of the stats file. Using Zabbix 5.0.27.

@tuxick
Copy link

tuxick commented Sep 8, 2023

Yes, that first line is/became rather useless. zpool iostat is the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants