Forum Discussion
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
4 Replies
- nitass
Employee
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 - Shane_Terrick_9
Nimbostratus
I can, just trying to understand what it is doing? Am I just testing it thru the command line?
- nitass
Employee
this is what i put in monitor's recv string."\{\"Status\":0\}"
i posted my configuration in text just for reference. 🙂 - smp_86112
Cirrostratus
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?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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