cancel
Showing results for 
Search instead for 
Did you mean: 

http monitor receive string not working

I_J__van_den_Ou
Nimbostratus
Nimbostratus

I'm trying to get a http monitor to work with recieve string for the following output :

The following request gives https://piwebapi-a.vitens.lan/piwebapi/system/status below response

{
  "UpTimeInMinutes": 8668.9520975483338,
  "State": "Running",
  "CacheInstances": 0,
  "ServerTime": "2022-08-03T08:32:09.9526026Z"
}

\"Running\" it will not work. Without receive string the pool members are marked down.

Is this limit in F5 wich i'm running into in regards to length of response it's looking into or do i need a different regex

Below the output from devtools in chorme :

<!DOCTYPE html>
<html>
<head>
<title>PI Web API</title>
<link href="https://piwebapi-a.vitens.lan/piwebapi/admin/servicesstatic/style.css" rel="stylesheet" />
<script type="application/javascript" src="https://piwebapi-a.vitens.lan/piwebapi/admin/servicesscripts/links.js"></script>
</head>
<body>
<div id="banner">
Help pages:
<a href="/piwebapi/help" target="_blank">PI Web API Help</a> &gt;
<a href="/piwebapi/help/controllers/system" target="_blank">System</a> &gt;
<a href="/piwebapi/help/controllers/system/actions/status" target="_blank">Status</a>
</div>
<hr id="rule" />
<pre id="response">{
&quot;UpTimeInMinutes&quot;: 2958.8296300283332,
&quot;State&quot;: &quot;Running&quot;,
&quot;CacheInstances&quot;: 0,
&quot;ServerTime&quot;: &quot;2022-08-05T10:17:43.3059544Z&quot;
}</pre>
</body>
</html>

1 REPLY 1

Juergen_Mang
Cirrus
Cirrus

\"Running\" does not match &quot;Running&quot;

The monitor does not decode html entities, but processes the raw body.