Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. #!/bin/bash
  2. fqdn=`hostname -f`
  3. QUEUES="incoming active deferred hold"
  4. INTERVAL=10
  5.  
  6.  
  7. while sleep $INTERVAL; do
  8.     for i in $QUEUES; do
  9.         COUNT=`qshape $i | grep TOTAL | awk '{print $2}'`
  10.         echo "PUTVAL \"$fqdn/exec-mailqueue/gauge-email_count-$i\" interval=$INTERVAL N:$COUNT "
  11.     done
  12. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement