neingeist / check_dir_empty

Nagios plugin to check if the given directories are empty

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

Nagios plugin to check if the given directories are empty

License:Apache License 2.0


Languages

Language:Python 100.0%