From 4ee55e4708fab672fa2f5bafa66a80da3d9efbc1 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 5 Jan 2015 12:04:17 +0100 Subject: [PATCH] Add a simple script to check qmail queue (requires qmqtool) --- zabbix_scripts/check_qmail_sudo | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 zabbix_scripts/check_qmail_sudo diff --git a/zabbix_scripts/check_qmail_sudo b/zabbix_scripts/check_qmail_sudo new file mode 100644 index 0000000..5dc66f7 --- /dev/null +++ b/zabbix_scripts/check_qmail_sudo @@ -0,0 +1,16 @@ +#!/bin/bash + +case $1 in + queue_local) + /usr/bin/qmqtool -QL + ;; + queue_remote) + /usr/bin/qmqtool -QR + ;; + queue_total) + /usr/bin/qmqtool -Ql + ;; + *) + echo 'ZBX_NOTSUPPORTED' + ;; +esac