Forum Discussion
Monitor receive string needs to read from send string
I've a requirement for health monitoring where receive string has a dependency send string as below:
send string: healthcheck?pretty=true/false
receive string: true if pretty=true in send string and same for false.
If false is encountered in send string and accordingly in receive string, pool will be marked as down.
Approach: If i keep 'true' in send string and mention just 'true' in receive string and 'false' in send string and leave 'true' in receive string, it will mark the pool down which will eventually be marked as down as send string will have 'false' in it.
Is this the correct approach?
4 Replies
- Stanislas_Piro2
Cumulonimbus
Hi,
You can create 2 monitors
-
Monitor-true
- send string : healthcheck?pretty=true
- receive string : pretty=true
-
Monitor-false
- send string : healthcheck?pretty=false
- receive string : pretty=false
And assign both to the same pool.
-
Monitor-true
- Samir_Jha_52506
Noctilucent
What i understand here, if if application will return
then f5 will make pool up & intrue
case system will make pool down right?false
Requirement is not clear, Please explain that.
yes, that is correct. If false is encountered in send string and accordingly in receive string, pool will be marked as down. I think if i keep 'true' in send string and mention just 'true' in receive string and 'false' in send string and leave 'true' in receive string, it will mark the pool down which will eventually be marked as down as send string will have 'false' in it.
Do you think it is a correct approach?
- P_K
Altostratus
Chetan-
You do not have to send both strings to the server.. I still dont understand why you want to send both true & false strings.
If your expected Receive String is "True", you can use just true in that context and anything else will be marked down.If you by chance have access to command line, run the below command from your F5 and post the result which might help us to help you better.
(echo -ne "Send String"; cat) | nc 'serverIP' 'ServerPort'
or
curl -vk http://ServerIP:ServerPort/healthcheck?pretty=true/false
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