--- a/Makefile.in Wed Dec 19 22:31:20 2007 +0000
+++ b/Makefile.in Wed Dec 19 22:36:00 2007 +0000
@@ -1,7 +1,7 @@
# $Id$
# $URL$
-SCRIPTS = check_exim check_smtp_conn
+SCRIPTS = check_exim check_exiwhat
CLEANFILES = ${SCRIPTS}
DESTDIR =
prefix = !prefix!
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/check_exiwhat.sh Wed Dec 19 22:36:00 2007 +0000
@@ -0,0 +1,29 @@
+#! /bin/bash
+PATH=$PATH:/usr/sbin:/sbin:/usr/local/sbin
+EXIM=$(command -v exim4 || command -v exim)
+
+smtp_accept_max=$(set -- $($EXIM -bP smtp_accept_max); echo $3)
+warn=$((smtp_accept_max * 7 / 10))
+crit=$smtp_accept_max
+
+tmp=$(getopt -n $0 -o w:c: -- "$@")
+eval set -- $tmp
+
+while :
+do
+ opt="$1"; shift
+ case "$opt" in
+ -w) warn="$1"; shift;;
+ -c) crit="$1"; shift;;
+ --) break;;
+ esac
+done
+
+r=$(($(exiwhat | wc -l) -1 ))
+p="connections=$r;$warn;$crit"
+
+
+test $r -gt $crit && { echo "CRIT ($r connections)|$p"; exit 2; }
+test $r -gt $warn && { echo "WARN ($r connections)|$p"; exit 1; }
+echo "OK ($r connections)|$p"
+exit 0
--- a/check_smtp_conn.sh Wed Dec 19 22:31:20 2007 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-#! /bin/bash
-PATH=$PATH:/usr/sbin:/sbin:/usr/local/sbin
-EXIM=$(command -v exim4 || command -v exim)
-
-smtp_accept_max=$(set -- $($EXIM -bP smtp_accept_max); echo $3)
-warn=$((smtp_accept_max * 7 / 10))
-crit=$smtp_accept_max
-
-tmp=$(getopt -n $0 -o w:c: -- "$@")
-eval set -- $tmp
-
-while :
-do
- opt="$1"; shift
- case "$opt" in
- -w) warn="$1"; shift;;
- -c) crit="$1"; shift;;
- --) break;;
- esac
-done
-
-r=$(($(exiwhat | wc -l) -1 ))
-p="connections=$r;$warn;$crit"
-
-
-test $r -gt $crit && { echo "CRIT ($r connections)|$p"; exit 2; }
-test $r -gt $warn && { echo "WARN ($r connections)|$p"; exit 1; }
-echo "OK ($r connections)|$p"
-exit 0
--- a/debian/changelog Wed Dec 19 22:31:20 2007 +0000
+++ b/debian/changelog Wed Dec 19 22:36:00 2007 +0000
@@ -1,3 +1,9 @@
+nagios-plugin-exim (1.2) stable; urgency=low
+
+ * renamed to check_exiwhat
+
+ -- Heiko Schlittermann <heiko@schlittermann.de> Wed, 19 Dec 2007 23:35:15 +0100
+
nagios-plugin-exim (1.1) stable; urgency=low
* added check_smtp_conn