Fix check_qmail_sudo script

This commit is contained in:
Daniel Berteaud 2015-01-08 10:40:13 +01:00
parent ac4b332bee
commit 0860c37f6f
1 changed files with 3 additions and 3 deletions

View File

@ -2,13 +2,13 @@
case $1 in case $1 in
queue_local) queue_local)
/usr/bin/qmqtool -QL /usr/bin/qmqtool -s | perl -ne 'm/^Messages with local recipients: (\d+)/ && print $1'
;; ;;
queue_remote) queue_remote)
/usr/bin/qmqtool -QR /usr/bin/qmqtool -s | perl -ne 'm/^Messages with remote recipients: (\d+)/ && print $1'
;; ;;
queue_total) queue_total)
/usr/bin/qmqtool -Ql /usr/bin/qmqtool -s | perl -ne 'm/^Total messages in queue: (\d+)/ && print $1'
;; ;;
*) *)
echo 'ZBX_NOTSUPPORTED' echo 'ZBX_NOTSUPPORTED'