in-famous-raccoon / proxmox-snmp

SNMP Scripts to monitor Proxmox with PRTG
GNU General Public License v3.0
50 stars 12 forks source link

zfs support #1

Closed JBlond closed 2 years ago

JBlond commented 2 years ago

The script are a real helper.

When zfs is used the root volume is not correct

mount
rpool/ROOT/pve-1 on / type zfs (rw,relatime,xattr,noacl)
 zpool list rpool
NAME    SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
rpool   222G  30.6G   191G        -         -     7%    13%  1.00x    ONLINE  -
root@pve-01:~#
in-famous-raccoon commented 2 years ago

Hi, i don't use zfs so i can't test this out but basically you must edit the cmd. Try this: zpool list rpool | grep "rpool" | awk '{print $3}' | sed 's/[A-Z]//g' This should output: 30.6

JBlond commented 2 years ago

Yes it works

root@pve-01:~# zpool list rpool | grep "rpool" | awk '{print $3}' | sed 's/[A-Z]//g'
31.2
root@pve-01:~#
in-famous-raccoon commented 2 years ago

Thanks for testing, added the Script.