check_btrfs_quota

Plugin to check btrfs quota.

There are three check methodes:

  • check by subvol
  • check by qgroup
  • check by path (all affected qgroups)

Helptext:

check_btrfs_quota v. 0.1   - BTRFS Quota Check -   (c) Tobias D. Oestreicher
-----------------------------------------------------------------------------
Usage:
  check_btrfs_quota [options]

Options:
  -m mountpount         : set the btrfs Mountpoint
  -s subvolname         : set subvolume name or comma seperated list
  -q qgroup             : set qgroup or comma seperated list
  -e                    : Check excl
  -r                    : Check rfer
  -f path               : Check recursive
  -w warn               : percentage used for warning
  -c crit               : percentage used for critical
  -S                    : force a fs sync before calculation
  debug                 : creating tracefile for debug

Example:
  check_btrfs_quota -m /mnt -s subvol1,subvol2,subvol3 -r -w 75 -c 90
  check_btrfs_quota -m /mnt -q 0/15,0/256,1/100 -e -w 75 -c 90
  check_btrfs_quota -m /mnt -f /mnt/subvol3 -r -w 75 -c 90 -S
-----------------------------------------------------------------------------