Forum Discussion
Heath check range service about 1000 port
Hi Hoang_Hung, you can approach this a couple different ways.
The first is to create a monitor for each port you need to make sure is available, and then attach all the monitors to the pool as alias port and make sure they are all successful. Something like this (unrelated monitor and pool details removed for brevity):
ltm monitor http http_8080 {
defaults-from http
destination *.8080
}
ltm monitor http http_8081 {
defaults-from http
destination *.8081
}
ltm pool my_pool {
monitor http_8080 and http_8081
}
Another option is to create an external monitor using a command line tool like curl/netcat, or writing your own perl/python script (existing versions on BIG-IP to be clear) to probe all those services and make sure they are up and then report back to the monitoring service appropriately. For example, you could use netcat to probe the services in a loop and exit on any "Offline" response. Challenge here is timeliness with netcat, with one hundred services this makes your interval a concern unless you're going to thread your scripts, which adds a lot of complexity on an EAV and probably not advised. that said, the netcat option I was toying with:
me@mac ~ % nc -v -z -w 0 10.0.4.20 8079 &> /dev/null && echo "Online" || echo "Offline"
Offline
me@mac ~ % nc -v -z -w 0 10.0.4.20 8080 &> /dev/null && echo "Online" || echo "Offline"
Online
me@mac ~ % nc -v -z -w 0 10.0.4.20 8081 &> /dev/null && echo "Online" || echo "Offline"
Online
Recent Discussions
Related Content
* 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