Add a simple script to check qmail queue (requires qmqtool)

This commit is contained in:
Daniel Berteaud 2015-01-05 12:04:17 +01:00
parent 1769878d85
commit 4ee55e4708
1 changed files with 16 additions and 0 deletions

View File

@ -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