Forum Discussion

mlamutt_62697's avatar
mlamutt_62697
Icon for Nimbostratus rankNimbostratus
Feb 29, 2012

Problems running an external monitor

I am trying to set up a new external monitor, but no matter what the output of the script is, the monitor is disabling the pool.

 

 

For testing I am calling a script that contains the following:

 

echo "enabled"

 

 

 

when I run the script locally on the ltm, I get this:

 

 

 

02:Active] ~ /config/monitors/GTMPoolMemberCheck 1 2 xxx.xxx.xxx.xxx

 

enabled

 

 

 

 

My understanding is that since text is being returned, the monitor should be up. Am I incorrect on this?

 

 

 

I am working on a monitor that will disable the LTM pool when a GTM pool member is disabled. This is what I have:

 

 

 

 

!/bin/bash

 

outcome=`tmsh show gtm pool detail |grep enabled -B 4 |grep "Pool Member" | grep "$3"`

 

 

 

 

 

echo "$outcome" (used for testing only)

 

 

 

if [[ "$outcome" == *"$3"* ]]; then echo "enabled"

 

fi

 

 

 

 

 

 

Any help would be appreciated

 

Thanks

 

No RepliesBe the first to reply