J
Jens Dahlin
Guest
We use a variation of this but not to notify when something is wrong but to push actual numbers to an external system for handling metrics. However I think you should also focus on why this happens. Do you need to increase number of agents because of high load? Do you have any issues etc. Note: AVAILABLE might be low also when system is idle so you might want to check number of BUSY instead. #!/bin/bash DLC=/usr/oe1174 DLCBIN=/usr/oe1174/bin PATH=$PATH:$DLCBIN export DLC DLCBIN PATH FILE=`mktemp` wtbman -name wsbroker1 -query -port 20932 | grep -e "Active Agents\|Busy Agents\|Available Agents\|Locked Agents" > $FILE ACTIVE=`grep "Active Agents" $FILE|cut -d":" -f2|sed 's: ::g'` BUSY=`grep "Busy Agents" $FILE|cut -d":" -f2|sed 's: ::g'` AVAILABLE=`grep "Available Agents" $FILE|cut -d":" -f2|sed 's: ::g'` LOCKED=`grep "Locked Agents" $FILE|cut -d":" -f2|sed 's: ::g'` if [ "$AVAILABLE" -lt "10" ]; then echo "Do something" else echo "It's OK" fi; rm $FILE
Continue reading...
Continue reading...