aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: a679efc1849fdbe1967e685c5c19fb5388a023da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# uid2account

This script parses the output of "[check_quota.pl][] - nagios plugin to check
Linux filesystem quotas using repquota" to show users with their account names
instead of their guid.

[check_quota.pl]: https://github.com/fkrueger/check_quota

## Installation

With `python3` installed, place the `uid2account` script where you like.

## Usage

Pipe the output of `check_quota.pl` to `uid2account` for a slightly improved
report:

``` shell
/usr/lib64/nagios/plugins/check_quota.pl -u all | uid2account
```

## Example

``` text
OK - All 3 users are ok.
OK - hacker          : 20.00K / 52.00G
OK - kasim           : 9.83G / 52.00G
OK - tweakit         : 31.38G / 52.00G
```
## About

This script was developed for internal use at [AMOLF][].

[AMOLF]: https://amolf.nl/