Forum Discussion
Michaelyang
Cirrostratus
Oct 05, 2022syntax for simple http monitor
Hello, I am trying to create an http monitor and Send String is HEAD / HTTP/1.1 I want this string will accept HTTP status codes of 200 and 401. Any error codes (ie: 4xx and 5xx) will cause the r...
- Oct 05, 2022
use this linux bash to watch the pool member http response:
echo -e "HEAD / HTTP/1.1" | nc 192.168.10.11 80
and you Send String use HTTP/1.1, some web server maybe require you bring http Host Header,chang to this:
firstly use echo -e "HEAD / HTTP/1.0\r\nConnection: close\r\n\r\n" | nc 192.168.10.11 80
to watch the pool member response
Send String is HEAD / HTTP/1.0\r\nConnection: close\r\n\r\n
Receive String is HTTP/1\.(0|1) (200|401)
That's an odd one. I assume the send string is all on one line and it's just your browser that's wrapping it?
Can you check the web server access logs to see what the app is receiving?
You can also enable debug on the monitoring daemon, bigd, by running 'b db Bigd.Debug enable'? The debug is logged to /var/log/bigdlog by default. Because the debug output creates a lot of log output, make sure to disable it once you're done testing by running 'b db Bigd.Debug enable'.
Aaron
- Loc_Pham_101863Jul 02, 2003Historic F5 AccountSpecifically, the hardware metrics are available for the following platforms: D35, D39, D40, D44, D45, D50, D51, D54.
- Jul 02, 2003Miguel, the cpu, fan, and power supply metrics are only available on the switch-based platforms. More than likely you are managing a Server Appliance BIG-IP. The different BIG-IP models can be found on our website http://www.f5.com/f5products/bigip/. The Application Switch models support these methods.