nagios plugin: check that the directories given are empty
Find a file
2021-10-30 14:45:35 +02:00
check_dir_empty --no-count-empty does not count empty files (useful for /var/mail) 2021-10-30 14:45:35 +02:00
LICENSE ⚖️ add a license 2020-09-29 20:51:06 +02:00
README.md --no-count-empty does not count empty files (useful for /var/mail) 2021-10-30 14:45:35 +02:00

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)