mirror of
https://github.com/bvanroll/_dotfiles.git
synced 2025-08-29 03:52:43 +00:00
50 lines
862 B
Markdown
50 lines
862 B
Markdown
# bandwidth2
|
|
|
|
Monitor bandwidth usage.
|
|
This is a C version of the bandwidth blocklet.
|
|
|
|

|
|
|
|
It comes with some other features though:
|
|
* Automatically estimate what unit (K,M,G,T) to use depending on the value. You can still choose between bits and bytes.
|
|
* By default sum all the network interfaces (except lo) instead of only default route interface.
|
|
* Warning and critical colors as an option.
|
|
* Choice for SI units or binary units.
|
|
|
|
## Build
|
|
|
|
```
|
|
make
|
|
```
|
|
|
|
### Config
|
|
```ini
|
|
[bandwidth]
|
|
command=$SCRIPT_DIR/bandwidth2
|
|
interval=persist
|
|
markup=pango
|
|
LABEL=
|
|
#INTERFACE=(checks all interfaces)
|
|
#USE_BITS=0
|
|
#USE_BYTES=1
|
|
#WARN_RX=0
|
|
#WARN_TX=0
|
|
#CRIT_RX=0
|
|
#CRIT_TX=0
|
|
#USE_SI=0
|
|
```
|
|
|
|
E.g.
|
|
|
|
```ini
|
|
[bandwidth]
|
|
command=$SCRIPT_DIR/bandwidth2
|
|
interval=persist
|
|
markup=pango
|
|
LABEL=
|
|
WARN_RX=307200
|
|
WARN_TX=30720
|
|
CRIT_RX=512000
|
|
CRIT_TX=51200
|
|
```
|