Add a simple script to check qmail queue (requires qmqtool)
This commit is contained in:
parent
1769878d85
commit
4ee55e4708
16
zabbix_scripts/check_qmail_sudo
Normal file
16
zabbix_scripts/check_qmail_sudo
Normal 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
|
Loading…
Reference in New Issue
Block a user