diff --git a/check_mailq b/check_mailq deleted file mode 100755 index 073a1b52df32333edd489e1365c3da2167d8d26e..0000000000000000000000000000000000000000 --- a/check_mailq +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash -# ====================================================================== -# -# Check mailq size -# -# requirements: -# - mailq -# -# ---------------------------------------------------------------------- -# 2022-10-21 v1.0 <andrea.gottsponer@unibe.ch> -# ====================================================================== - - -. `dirname $0`/inc_pluginfunctions - -# ---------------------------------------------------------------------- -# MAIN -# ---------------------------------------------------------------------- - -# --- check required tools -ph.require mailq - -# --- check param -h -if [ "$1" = "-h" ]; then - echo " - usage: $0 [ -w value -c value -h ] - - -w Warning level - -c Critical level - -h this help - " - exit 0 -fi - -# set default / override from command line params -typeset -i iWarnLimit=` ph.getValueWithParam 5 w "$@"` -typeset -i iCriticalLimit=` ph.getValueWithParam 20 c "$@"` - -# get mailq count -iMailqCount=`mailq | grep -c "^[A-F0-9]"` - -ph.setStatusByLimit ${iMailqCount} ${iWarnLimit} ${iCriticalLimit} - -# --- status output -ph.status "${iMailqCount} Queue Count" - -# --- performance data usage -ph.perfadd "mailq" "${iMailqCount}" $iWarnLimit $iCriticalLimit 0 - -# --- Bye -ph.exit - -# ----------------------------------------------------------------------