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

Dublicated discovery items for {#POOLNAME} and {#FILESETNAME} #34

Open
jurim76 opened this issue Nov 16, 2021 · 1 comment
Open

Dublicated discovery items for {#POOLNAME} and {#FILESETNAME} #34

jurim76 opened this issue Nov 16, 2021 · 1 comment

Comments

@jurim76
Copy link

jurim76 commented Nov 16, 2021

Zabbix throws an error for zpool discovery, if zfs pool and zfs dataset have the same name.

As example, proxmox zfs layout
zpool list rpool NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT rpool 952G 3.29G 949G - - 2% 0% 1.00x ONLINE -
zfs list rpool NAME USED AVAIL REFER MOUNTPOINT rpool 3.29G 919G 104K /rpool

ZFS: Zfs Pool discovery
Cannot create item: item with the same key "zfs.get.fsinfo[rpool,available]" already exists.
Cannot create item: item with the same key "zfs.get.fsinfo[rpool,used]" already exists.

@tuxick
Copy link

tuxick commented Sep 8, 2023

This is because the UserParameter is wrong, it should be:
UserParameter=zfs.get.fsinfo[*],/sbin/zfs get -o value $2 -Hp $1

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

2 participants