Forum Discussion
Angel_Martinez_
Nimbostratus
Apr 26, 2010Is possible to have a MQSeries Monitor ¿?
Hi
I have been reading here and also at AskF5 but I haven't found a real solution for MQSeries monitoring.
We've several Virtual Server for MQSeries and all of them are working p...
Angel_Martinez_
Nimbostratus
Apr 27, 2010Yes I managed!
1. Add in the MQServer .ssh/authorized_keys2 the BigIP id_rsa.pub
2. cut & pastel:
[root@bigroitb:Active] .ssh cat /usr/bin/monitors/mqping.sh
!/bin/bash
MQPING=/usr/bin/dspmq
MQUSER=root
NODE_IP=$1
NODE_PORT=$2
IP=`echo $NODE_IP | sed 's/::ffff://'`
STATUS=`ssh -l $MQUSER $IP $MQPING | awk '{ print $2 }'`
case "$STATUS" in
*Running*)
echo "Up"
;;
*)
esac
3. Set up your monitor:
[root@bigroitb:Active] .ssh b monitor MQPING list
monitor MQPING {
defaults from external
run "mqping.sh"
}
4. Set up your pool:
- a TCP monitor for checking the Listener
- b MQPING monitor for checking that the queue is "Running"
[root@bigroitb:Active] .ssh b pool pool_mq list
pool pool_mq {
monitor all MQPING and tcp
members 10.64.112.109:1414
}
Remember, at first time ssh needs to accept the key exchange: "The authenticity of host '10.64.112.109 (10.64.112.109)' can't be established.
RSA key fingerprint is c6:d3:e4:45:9d:fe:cb:34:0c:e7:3a:6a:53:b2:26:af.
Are you sure you want to continue connecting (yes/no)?"
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects