Fix check_qmail_sudo script

tags/zabbix-agent-addons-0.2.20-1 0.1.22_el5
Daniel Berteaud 10 years ago
parent ac4b332bee
commit 0860c37f6f
  1. 6
      zabbix_scripts/check_qmail_sudo

@ -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…
Cancel
Save