initial commit; version 22.5.12042
This commit is contained in:
17
scripts/agent-local/postfix_qshape
Executable file
17
scripts/agent-local/postfix_qshape
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# install qshape package
|
||||
#
|
||||
# b.toonk@capitar.com 8/2/2013
|
||||
# monitor postfix queus with mk_agent, used for observium
|
||||
|
||||
if [ -x /usr/sbin/qshape ]
|
||||
then
|
||||
echo "<<<postfix_qshape>>>"
|
||||
QUEUES="incoming active deferred hold"
|
||||
for i in $QUEUES; do
|
||||
COUNT=`qshape $i | grep TOTAL | awk '{print $2}'`
|
||||
printf "$i:$COUNT\n"
|
||||
done
|
||||
fi
|
||||
|
Reference in New Issue
Block a user