From 24cc9b8894bafe7c6129ff4e4d226a042f3da32a Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Wed, 1 Mar 2023 14:32:47 +0100 Subject: [PATCH] remove check_mailq --- check_mailq | 53 ----------------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100755 check_mailq diff --git a/check_mailq b/check_mailq deleted file mode 100755 index 073a1b5..0000000 --- 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 - -# ---------------------------------------------------------------------- -- GitLab