Forum Discussion
Jeremy_Bridges_
Nimbostratus
Aug 21, 2009Custom TCP Monitor
I am looking to do some custom TCP monitoring with a custom application that we need to monitor with the F5. Essentially, the application's thread handling logic will hang unless a specific set of se...
hoolio
Cirrostratus
Sep 01, 2009You might try adding !/bin/bash to the top of your script"
!/bin/bash
ip=`echo ${1} | sed 's/::ffff://'`
output=$(nc $ip $2 < berryCall.txt -w 5)
echo $output
if [[ $output == *BusinessCode* ]]
then echo "UP"
fi
Once you get that working, you could bring the berryCall.txt code into the script so you're not having to access a second file.
Aaron
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
