Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Monitor String setup

Hey guys. I am looking to get a monitor setup where The health monitor should mark the pool down based on the value if value="0" or if it there is no value in the string. Current setting is working only when the value="0" (scenario1) and set reverse enable but it does not work when there is no value (scenario2).

recv "value=\"0\"" 
reverse enabled 

tried regex patterns to include [^(?!value=).*$|value=\”0\”] even with the \b option and string match but not succeeding

  1. queryResponse time="0" workflowTime="2" value="0" queryTimestamp="154703733" clientId="213" redelivered="false"

  2. queryResponse time="0" workflowTime="2" queryTimestamp="154703733" clientId="231" redelivered="false"

Should only be up if the value is above 1

<queryResponse time="0" workflowTime="2" value="15400" queryTimestamp="1547703733" clientId="21321" redelivered="false">

Any help or guidance is much appreciated.

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

You can use this expression to detect if the page contains value="x" where x is a number different than 0 and at least one value.

value=\"[1-9][0-9]*\"
0
Comments on this Answer
Comment made 4 weeks ago by NKolh@r 1

Will try this and update Stanislas, will this still work and search for the word value ? or will I have to take this of the reverse setting ?

0
Comment made 4 weeks ago by Stanislas Piron 10236

this receive string must not be configure with reverse enabled.

0
Comment made 3 weeks ago by NKolh@r 1

solved, thank you the option worked properly as desired.

0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Us this regex:
^((?!value=).)*$|value=\"0\"

0
Comments on this Answer
Comment made 4 weeks ago by NKolh@r 1

Hey Faruk, tried this and ran into the similar issue like the last ones where the missing of the totalRows would not turn it down.

Thanks for the suggestion, the reg ex value for some reason is really peculiar*

0