✨ --no-count-empty does not count empty files (useful for /var/mail)
parent
abbc4ccb0d
commit
eb79bb5893
@ -1,8 +1,23 @@
|
|||||||
# check_dir_empty
|
# check_dir_empty
|
||||||
nagios plugin: check that the directories given are empty
|
nagios plugin: check that the directories given are empty
|
||||||
|
|
||||||
Example:
|
## Example
|
||||||
~~~
|
~~~
|
||||||
$ ./check_dir_empty /var/mail
|
$ ./check_dir_empty --no-count-empty /var/mail
|
||||||
OK: All given directories are empty
|
OK: All given directories are empty
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
~~~
|
||||||
|
% ./check_dir_empty -h
|
||||||
|
usage: check_dir_empty [-h] [--no-count-empty] dir [dir ...]
|
||||||
|
|
||||||
|
Check that the directories given are empty
|
||||||
|
|
||||||
|
positional arguments:
|
||||||
|
dir directory to be checked
|
||||||
|
|
||||||
|
optional arguments:
|
||||||
|
-h, --help show this help message and exit
|
||||||
|
--no-count-empty do not count empty files (useful to check /var/mail)
|
||||||
|
~~~
|
||||||
|
Loading…
Reference in New Issue