Forum Discussion
Verify if TMSH command for monitor SEND and RECEIVE string is correct
Hi,
Can you guys check if my command is correct especially the SEND and RECEIVE string part:
tmsh create ltm monitor https NEW_HTTPS_MONITOR { defaults-from https destination : send "GET /wfc/applications/suitenav/navigation.do\r\n" recv "200 OK" }
This is the curl result on the server:
[root@USZYC-LB-INT-01:Active:In Sync] config curl -ik https://1.1.1.1/wfc/applications/suitenav/navigation.do HTTP/1.1 200 OK Cache-Control: no-cache Pragma: no-cache Content-Length: 1405 Content-Type: text/html;charset=utf-8 Content-Language: en Server: Microsoft-IIS/7.5 X-Powered-By: Servlet 2.4; JBoss-4.3.0.GA_CP01 (build: SVNTag=JBPAPP_4_3_0_GA_CP01 date=200804211657)/Tomcat-5.5 Set-Cookie: JSESSIONID=ACC363DD9F599A02F9E983F3F61D94C3; Path=/wfc; Secure X-Powered-By: ASP.NET Date: Tue, 06 Nov 2018 00:25:00 GMT
//DTD HTML 4.0 Transitional;
- jaikumar_f5
Noctilucent
I dont see any issues, but use this below if you feel its fine,
-
you need not specify defaults-from https, because its a https is the default parameter, unless you want someother custom parent to be used, then use the defaults-from.
-
Same applies for the destination, ":" is the default value.
tmsh create ltm monitor https NEW_HTTPS_MONITOR { send "GET /wfc/applications/suitenav/navigation.do HTTP/1.1\\r\\nUser-Agent: BigIP\\r\\nHost: applicationname.com\\r\\nConnection: close\\r\\n\\r\\n" "200 OK"}
How about the intervals and timeout, are you going with the default values.
Edit: Hey sorry I just noticed there's no HTTP Version ( HTTP/1.0 or HTTP/1.1) in your send string, so if you go with your original send request, it will fail.
If you are going with HTTP/1.0, you need not have other HTTP headers like host close agent etc.
-
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