From 79a7afb37e6afd249e54fa36b3d3f010b235bde2 Mon Sep 17 00:00:00 2001 From: neingeist Date: Sun, 15 Nov 2015 18:13:26 +0100 Subject: [PATCH] Add README (from POD) --- Makefile | 10 ++++++++- README | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 README diff --git a/Makefile b/Makefile index b3bb7c8..b392013 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,10 @@ +default: all + +all: README + +README: check_du + pod2text $< >$@ + + install: - install -o root -g root -m 0755 check_du /usr/lib/nagios/plugins/ + install -o root -g root -m 0755 check_du /usr/lib/nagios/plugins/ diff --git a/README b/README new file mode 100644 index 0000000..24dcd3a --- /dev/null +++ b/README @@ -0,0 +1,65 @@ +NAME + check_du.pl - Nagios plugin for checking size of directories and files + +SYNOPSIS + check_du.pl -P path/pattern [-v] \ + [-w warning_threshold] [-c critical_threshold] + check_du.pl [-h|-V] + +OPTIONS + -P|--path=expression + Path expression for calculating size. May be a shell expression like + /var/log/*.log + + -w|--warning=threshold + threshold can be max (warn if < 0 or > max), min:max (warn if < min + or > max), min: (warn if < min), or @min:max (warn if >= min and <= + max). All values must be integer. + + -c|--critical=threshold + see --warning for explanation of threshold format + + -t|--timeout=seconds + timeout after check_du.pl exits. + + -v|--verbose + increases verbosity, specify twice to see the original output from + sapinfo. + + -V|--version + print version an exit + + -h|--help + print help message and exit + +AUTHOR + wob (at) swobspace (dot) net + +KNOWN ISSUES + may be + +BUGS + may be + +LICENSE + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation; version 2 of the License (and no later + version). + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General + Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +HISTORY + V1.2/2007-10-21 minor bugfixes (thanks to Ralph Grothe) + + V1.1/2007-10-07 timeout added + + V1.0/2007-01-29 inital version for linux-magazin.de +