Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- fqdn=`hostname -f`
- QUEUES="incoming active deferred hold"
- INTERVAL=10
- while sleep $INTERVAL; do
- for i in $QUEUES; do
- COUNT=`qshape $i | grep TOTAL | awk '{print $2}'`
- echo "PUTVAL \"$fqdn/exec-mailqueue/gauge-email_count-$i\" interval=$INTERVAL N:$COUNT "
- done
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement