Forum Discussion

NKolh_357643's avatar
NKolh_357643
Icon for Nimbostratus rankNimbostratus
Jan 18, 2019

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

value="15400" queryTimestamp="1547703733" clientId="21321" redelivered="false">

Any help or guidance is much appreciated.