Giter VIP home page Giter VIP logo

check_btrfs_usage's Introduction

btrfs filesystem usage monitoring plugin

reads the estimated free space using btrfs fi usage

# ./check_btrfs_usage.sh -h
btrfs filesystem usage monitoring plugin
https://github.com/psi-4ward/check_btrfs_usage

Usage: ./check_btrfs_usage.sh <options>
  -m <mount>    Mountpoint of btrfs filesystem (default: /)
  -w <warn>     Warning when estimated free space is below MiB (default 10000). Add % at the end to define in percentage value. Must be used the same way as crit value.
  -c <crit>     Critical when estimated free space is below MiB (default 5000). Add % at the end to define in percentage value. Must be used the same way as warn value.
# ./check_btrfs_usage.sh -m /mnt/btrfs_root -w 20000 -c 10000
Free: 2848841MiB
Used: 7239MiB
 | Used=7239MB;0;0;0;2856080 Free=2848841MB;20000;10000;2856080;0

# ./check_btrfs_usage.sh -m / -c 5% -w 10%
Free: 367419MB
Warning threshold: 38436MB
Critical threshold: 19218MB
Used: 16941MB
 | Used=16941MB;0;0;0;384360   Free=367419MB;10;5;384360;0

Author: Christoph Wiechert
License: MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.