Fix check_qmail_sudo script
This commit is contained in:
parent
ac4b332bee
commit
0860c37f6f
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue