Forum Discussion
Gary_31854
Mar 26, 2014Nimbostratus
Variables in an external monitor BASH script
Greetings,
I have written a shell script to use as an external monitor. It works as expected when I execute it from the bash shell, but fails as a monitor. I believe the reason for the failure is t...
Gary_31854
Mar 27, 2014Nimbostratus
After reading LTM External Monitors: The Basics
I think I will just change the logic to rely on $?. Example below:
if [ $PAGE = "bxb" ]
then
Echo up to STDOUT for the pool member to be listed as up.
echo "Up"
Check that the VCS Members are listed as origins in the snat_ids_primary definition.
$TMSH list ltm snat snat_ids_lfep_out | $GREP -E "$VCS1|$VCS2|$PRI_IP" 2>&1 > /dev/null
if [ $? -eq 0 ]
then
rm -f $PIDFILE
exit 0
Check that the VCS Members are listed as origins in the snat_ids_alt definition. If so the SNAT config needs to be changed.
else
......rest of the script
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