Forum Discussion
Groupwise Health Monitor (Working curl needs to translate to Health Monitor)
Authentication Health Monitor for Groupwise issue. I have this curl working and I've messed around with removing the settings and putting this into post/get statements and haven't had any success. So how can I change this to a health monitor? Any ideas? Is it no possible? Changed the username and passwords to protect the innocent and domain as well. Please let me know. Thanks for any help you guys could provide.
curl -X POST -H "Origin: https://host.domain.com" -H "Upgrade-Insecure-Requests: 1" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36" -H "Content-Type: application/x-www-form-urlencoded" -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8" -H "Referer: https://host.domain.com/gw/webacc" -H "Accept-Encoding: gzip, deflate, br" -H "Accept-Language: en-US,en;q=0.8" -H "Cookie: NJSCN=25fbad356fab718dc2879d5b4ad1d1d27d; NJSCN=dd7a66394fa370ffc5785ea8c1f59d85552d87e; CID=AgAAAPw0A649NbvE7V2utGQJGp8=; __utma=75229380.2040030237.1466698286.1467230192.1467294329.4; __utmz=75229380.1466797179.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); nmstat=1473434161716; _gat=1; _ga=GA1.2.2040030237.1466698286" -H "Cache-Control: no-cache" -H "Postman-Token: d70c37d5-81f8-970e-fb51-051ff264d162" -d 'Security.Private.timeout=false&Timezone.Workstation.HasDaylight=1&Timezone.Workstation.IsDaylight=1&Timezone.Workstation.dstEndDate=2016-11-6&Timezone.Workstation.dstOffset=-240&Timezone.Workstation.dstStartDate=2016-3-13&Timezone.Workstation.gmtOffset=-240&Timezone.Workstation.offsetAvailable=1&Timezone.Workstation.stdOffset=-300&User.context=a2552e69f72accc5d0308124ab3a1748cdc2a6&User.id=username&User.interface=css&User.lang=en&User.password=password&action=User.Login&error=login&merge=webacc&submit=Login' "https://host.domain.com/gw/webacc"
- James_ThomsonEmployee
Have you tried following this article which shows how to do a POST in an HTTP monitor?
https://support.f5.com/kb/en-us/solutions/public/1000/000/sol1033.html
- warbie_136205Nimbostratus
Yea I have tried messing with the various types of Auth to no avail with the POST commands. I just was wondering if it was possible to use all those conditions in my health command.
- James_ThomsonEmployee
Check this out for more details. I think it looks fine to me, you just need to format it correctly with all the carriage returns and line feeds. You can also remove the Postman token header.
https://devcentral.f5.com/articles/ltm-http-monitoring-with-post-request
I haven't tested this, but your send string may be something like this. Probably need to tweak.
POST /gw/webacc HTTP/1.1\r\nHost: host.domain.com\r\nUpgrade-Insecure-Requests: 1\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36\r\nContent-Type: application/x-www-form-urlencoded\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8\r\nReferer: [https://host.domain.com/gw/webacc](https://host.domain.com/gw/webacc)\r\nAccept-Encoding: gzip, deflate, br\r\nAccept-Language: en-US,en;q=0.8\r\nCookie: NJSCN=25fbad356fab718dc2879d5b4ad1d1d27d; NJSCN=dd7a66394fa370ffc5785ea8c1f59d85552d87e; CID=AgAAAPw0A649NbvE7V2utGQJGp8=; __utma=75229380.2040030237.1466698286.1467230192.1467294329.4; __utmz=75229380.1466797179.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); nmstat=1473434161716; _gat=1; _ga=GA1.2.2040030237.1466698286\r\nCache-Control: no-cache\r\n\r\nSecurity.Private.timeout=false&Timezone.Workstation.HasDaylight=1&Timezone.Workstation.IsDaylight=1&Timezone.Workstation.dstEndDate=2016-11-6&Timezone.Workstation.dstOffset=-240&Timezone.Workstation.dstStartDate=2016-3-13&Timezone.Workstation.gmtOffset=-240&Timezone.Workstation.offsetAvailable=1&Timezone.Workstation.stdOffset=-300&User.context=a2552e69f72accc5d0308124ab3a1748cdc2a6&User.id=username&User.interface=css&User.lang=en&User.password=password&action=User.Login&error=login&merge=webacc&submit=Login
- James_Thomson_1Historic F5 Account
Have you tried following this article which shows how to do a POST in an HTTP monitor?
https://support.f5.com/kb/en-us/solutions/public/1000/000/sol1033.html
- warbie_136205Nimbostratus
Yea I have tried messing with the various types of Auth to no avail with the POST commands. I just was wondering if it was possible to use all those conditions in my health command.
- James_Thomson_1Historic F5 Account
Check this out for more details. I think it looks fine to me, you just need to format it correctly with all the carriage returns and line feeds. You can also remove the Postman token header.
 
https://devcentral.f5.com/s/articles/ltm-http-monitoring-with-post-request
 
I haven't tested this, but your send string may be something like this. Probably need to tweak.
 
POST /gw/webacc HTTP/1.1\r\nHost: host.domain.com\r\nUpgrade-Insecure-Requests: 1\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36\r\nContent-Type: application/x-www-form-urlencoded\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8\r\nReferer: [https://host.domain.com/gw/webacc](https://host.domain.com/gw/webacc)\r\nAccept-Encoding: gzip, deflate, br\r\nAccept-Language: en-US,en;q=0.8\r\nCookie: NJSCN=25fbad356fab718dc2879d5b4ad1d1d27d; NJSCN=dd7a66394fa370ffc5785ea8c1f59d85552d87e; CID=AgAAAPw0A649NbvE7V2utGQJGp8=; __utma=75229380.2040030237.1466698286.1467230192.1467294329.4; __utmz=75229380.1466797179.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); nmstat=1473434161716; _gat=1; _ga=GA1.2.2040030237.1466698286\r\nCache-Control: no-cache\r\n\r\nSecurity.Private.timeout=false&Timezone.Workstation.HasDaylight=1&Timezone.Workstation.IsDaylight=1&Timezone.Workstation.dstEndDate=2016-11-6&Timezone.Workstation.dstOffset=-240&Timezone.Workstation.dstStartDate=2016-3-13&Timezone.Workstation.gmtOffset=-240&Timezone.Workstation.offsetAvailable=1&Timezone.Workstation.stdOffset=-300&User.context=a2552e69f72accc5d0308124ab3a1748cdc2a6&User.id=username&User.interface=css&User.lang=en&User.password=password&action=User.Login&error=login&merge=webacc&submit=Login
 
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