trouble with monitor

I am tryign to monitor the following webpage from my appserver.

http:////health/healthHandler.ashx?mode=loadbalancer

It shoudl return

{“Status”:0}

For a healthy webserver

I can up with this as my monitor but it is throwning errors when tryign to build out

GET //health/healthHandler.ashx?mode=loadbalancer HTTP/1.1\r\nHost:\r\n

recieve string is {“Status”:0}

I get the follwoing error when creating

Monitor recv parameter contains an invalid regular expression (Invalid content of repeat range).

ANy help is apprecieated

This is my first monitor and I am just gonig from examples that I have read

can you try this?

[root@ve10:Active] config  b monitor myhttp list
monitor myhttp {
   defaults from http
   interval 1
   timeout 4
   recv "\{\"Status\":0\}"
   send "GET /healthHandler.ashx?mode=loadbalancer HTTP/1.1\r\nHost: \r\nConnect                                              ion: Close\r\n\r\n"
}
[root@ve10:Active] config  b pool foo list
pool foo {
   monitor all myhttp
   members 200.200.200.101:80 {}
}
[root@ve10:Active] config  b monitor myhttp list
monitor myhttp {
   defaults from http
   interval 1
   timeout 4
   recv "\{\"Status\":0\}"
   send "GET /healthHandler.ashx?mode=loadbalancer HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n"
}

[root@ve10:Active] config  b pool foo|grep -i pool\ member
+-> POOL MEMBER foo/200.200.200.101:80   active,up
[root@ve10:Active] config

I can, just trying to understand what it is doing? Am I just testing it thru the command line?

this is what i put in monitor’s recv string.

"\{\"Status\":0\}"

i posted my configuration in text just for reference. :slightly_smiling_face:

No, he is just showing you his config file definition of the Monitor, the Pool, and the status of the Pool Member (which is “Up” because it is passing the health check).

The monitor definition you posted had two slashes at the start of the URI, and also was missing a trailing “\r\n” sequence. Did you get this working?