nagios plugin: check that the directories given are empty
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
neingeist eb79bb5893 --no-count-empty does not count empty files (useful for /var/mail) 3 years ago
LICENSE ⚖️ add a license 4 years ago
README.md --no-count-empty does not count empty files (useful for /var/mail) 3 years ago
check_dir_empty --no-count-empty does not count empty files (useful for /var/mail) 3 years ago

README.md

check_dir_empty

nagios plugin: check that the directories given are empty

Example

$ ./check_dir_empty --no-count-empty /var/mail
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)