From 0860c37f6f2aacdca6bdab8dbb79ed38c0e46691 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 8 Jan 2015 10:40:13 +0100 Subject: [PATCH] Fix check_qmail_sudo script --- zabbix_scripts/check_qmail_sudo | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zabbix_scripts/check_qmail_sudo b/zabbix_scripts/check_qmail_sudo index 5dc66f7..58ace5a 100644 --- a/zabbix_scripts/check_qmail_sudo +++ b/zabbix_scripts/check_qmail_sudo @@ -2,13 +2,13 @@ case $1 in queue_local) - /usr/bin/qmqtool -QL + /usr/bin/qmqtool -s | perl -ne 'm/^Messages with local recipients: (\d+)/ && print $1' ;; queue_remote) - /usr/bin/qmqtool -QR + /usr/bin/qmqtool -s | perl -ne 'm/^Messages with remote recipients: (\d+)/ && print $1' ;; queue_total) - /usr/bin/qmqtool -Ql + /usr/bin/qmqtool -s | perl -ne 'm/^Total messages in queue: (\d+)/ && print $1' ;; *) echo 'ZBX_NOTSUPPORTED'