Cosium / zabbix_zfs-on-linux

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

Cannot obtain file /proc/spl/kstat/zfs/test/io #33

Open gnordli opened 2 years ago

gnordli commented 2 years ago

Hi. I am using the latest Zabbix 5.4 with the template and it is continually showing the following in the logs:

2021/10/18 16:31:00.000611 check 'vfs.file.contents[/proc/spl/kstat/zfs/test/io]' is not supported: Cannot obtain file /proc/spl/kstat/zfs/test/io information: stat /proc/spl/kstat/zfs/test/io: no such file or directory

any thoughts? thanks, Geoff

gnordli commented 2 years ago

I went into the template and change all the:

<key>vfs.file.contents[/proc/spl/kstat/zfs/{#POOLNAME}/io]</key>

to:

<key>vfs.file.contents[/proc/spl/kstat/zfs/{#POOLNAME}/iostats]</key>

that gets rid of the errors in the log.

Not sure why none of the zpool iostats items are showing up in my configuration though. So this is just getting rid of the error, doesn't actually fix anything.

darek-margas commented 2 months ago

I've added another PR to fix it without multiple commands.