Hello,
we are using HTTP (Advanced) sensors to monitor some custom web-portals of our clients. when asking for the default page of these portals, the sites respond with a bunch of redirects and cookie setting sites and finally land on the login page.
On this login page we are checking for defined keywords to verify if we really get the running application and not any error page.
When initially setting up such a sensor, everything runs fine. But after some time (1-2days) or maybe a proxy restart (these portals are running behind a reverse-proxy) this sensor reports errors because it does not find our keyword.
this is because it gets stuck before finally passing all redirects and getting the login page. Somewhere on its way it looses the cookie or does not execute the redirect.
when we then edit the sensor, change something and save it (it is sufficent to change even on character of the name or anything like this), the sensor resumes its normal behavior and finds thekeyword. We don't touch the proxy, the application-server or anything besides this sensor configuration.
We switched on the debugging and get these protocol of the working sensor:
Stat Connected.
Sent 10.06.2013 16:14:53: GET /mc/portal/login?2 HTTP/1.1<EOL>Cookie: UserCulture=en-US<EOL>Host: xxx.xxx.xxx<EOL>Accept: text/html, */*<EOL>Accept-Encoding: identity<EOL>User-Agent: Mozilla/5.0 (compatible; PRTG Network Monitor (www.paessler.com); Windows)<EOL><EOL>
Recv 10.06.2013 16:14:53: HTTP/1.1 302 Moved Temporarily<EOL>Date: Mon, 10 Jun 2013 14:14:52 GMT<EOL>Server: Apache-Coyote/1.1<EOL>Expires: Thu, 01 Jan 1970 00:00:00 GMT<EOL>Pragma: no-cache<EOL>Cache-Control: no-cache, no-store<EOL>Location: http://xxx.xxx.xxx/mc/portal/login<EOL>Content-Length: 0<EOL><EOL>
Sent 10.06.2013 16:14:53: GET /mc/portal/login HTTP/1.1<EOL>Cookie: UserCulture=en-US<EOL>Host: xxx.xxx.xxx<EOL>Accept: text/html, */*<EOL>Accept-Encoding: identity<EOL>User-Agent: Mozilla/5.0 (compatible; PRTG Network Monitor (www.paessler.com); Windows)<EOL><EOL>
Recv 10.06.2013 16:14:53: HTTP/1.1 302 Moved Temporarily<EOL>Date: Mon, 10 Jun 2013 14:14:52 GMT<EOL>Server: Apache-Coyote/1.1<EOL>Expires: Thu, 01 Jan 1970 00:00:00 GMT<EOL>Pragma: no-cache<EOL>Cache-Control: no-cache, no-store<EOL>Location: http://xxx.xxx.xxx/mc/portal/wicket/page;jsessionid=r0tqfy1iEQsIBP6Ax8sUnu2+.undefined?1<EOL>Content-Length: 0<EOL>Set-Cookie: JSESSIONID=r0tqfy1iEQsIBP6Ax8sUnu2+.undefined; Path=/mc<EOL><EOL>
Sent 10.06.2013 16:14:53: GET /mc/portal/wicket/page;jsessionid=r0tqfy1iEQsIBP6Ax8sUnu2+.undefined?1 HTTP/1.1<EOL>Host: xxx.xxx.xxx<EOL>Accept: text/html, */*<EOL>Accept-Encoding: identity<EOL>User-Agent: Mozilla/5.0 (compatible; PRTG Network Monitor (www.paessler.com); Windows)<EOL>Cookie: JSESSIONID=r0tqfy1iEQsIBP6Ax8sUnu2+.undefined<EOL><EOL>
Recv 10.06.2013 16:14:53: HTTP/1.1 200 OK<EOL>Date: Mon, 10 Jun 2013 14:14:52 GMT<EOL>Server: Apache-Coyote/1.1<EOL>Expires: Thu, 01 Jan 1970 00:00:00 GMT<EOL>Pragma: no-cache<EOL>Cache-Control: no-cache, no-store<EOL>Content-Type: text/html;charset=UTF-8<EOL>Vary: Accept-Encoding<EOL>Transfer-Encoding: chunked<EOL><EOL>a57<EOL><LF><!--<LF> Licensed to the Apache Software Foundation (ASF) under one or more<LF> contributor license agreements. See the NOTICE file distributed with<LF> this work for additional information regardi...
Recv 10.06.2013 16:14:53: 7a2<EOL>ument.postback.browserWidth.value = window.innerWidth || document.body.offsetWidth;<LF> document.postback.browserHeight.value = window.innerHeight || document.body.offsetHeight;<LF> document.postback.hostname.value = window.location.hostname;<LF><LF> document.postback.submit();<LF> }<LF> /*]]>*/</script><LF> </head><LF> <body onload="javascript:submitform();"><LF> If you see this, it means that both javascript and meta-refresh are not support by<LF> your browser configuration. Please cl...
Stat Disconnected.
Stat Connected.
Sent 10.06.2013 16:14:53: GET /mc/portal/login?2 HTTP/1.1<EOL>Host: xxx.xxx.xxx<EOL>Accept: text/html, */*<EOL>Accept-Encoding: identity<EOL>User-Agent: Mozilla/5.0 (compatible; PRTG Network Monitor (www.paessler.com); Windows)<EOL>Cookie: JSESSIONID=r0tqfy1iEQsIBP6Ax8sUnu2+.undefined<EOL><EOL>
Recv 10.06.2013 16:14:53: HTTP/1.1 302 Moved Temporarily<EOL>Date: Mon, 10 Jun 2013 14:14:52 GMT<EOL>Server: Apache-Coyote/1.1<EOL>Expires: Thu, 01 Jan 1970 00:00:00 GMT<EOL>Pragma: no-cache<EOL>Cache-Control: no-cache, no-store<EOL>Location: http://xxx.xxx.xxx/mc/portal/login<EOL>Content-Length: 0<EOL><EOL>
Sent 10.06.2013 16:14:53: GET /mc/portal/login HTTP/1.1<EOL>Host: xxx.xxx.xxx<EOL>Accept: text/html, */*<EOL>Accept-Encoding: identity<EOL>User-Agent: Mozilla/5.0 (compatible; PRTG Network Monitor (www.paessler.com); Windows)<EOL>Cookie: JSESSIONID=r0tqfy1iEQsIBP6Ax8sUnu2+.undefined<EOL><EOL>
Recv 10.06.2013 16:14:53: HTTP/1.1 302 Moved Temporarily<EOL>Date: Mon, 10 Jun 2013 14:14:52 GMT<EOL>Server: Apache-Coyote/1.1<EOL>Expires: Thu, 01 Jan 1970 00:00:00 GMT<EOL>Pragma: no-cache<EOL>Cache-Control: no-cache, no-store<EOL>Location: http://xxx.xxx.xxx/mc/portal/login?2<EOL>Content-Length: 0<EOL><EOL>
Sent 10.06.2013 16:14:53: GET /mc/portal/login?2 HTTP/1.1<EOL>Host: xxx.xxx.xxx<EOL>Accept: text/html, */*<EOL>Accept-Encoding: identity<EOL>User-Agent: Mozilla/5.0 (compatible; PRTG Network Monitor (www.paessler.com); Windows)<EOL>Cookie: JSESSIONID=r0tqfy1iEQsIBP6Ax8sUnu2+.undefined<EOL><EOL>
Recv 10.06.2013 16:14:53: HTTP/1.1 200 OK<EOL>Date: Mon, 10 Jun 2013 14:14:52 GMT<EOL>Server: Apache-Coyote/1.1<EOL>Expires: Thu, 01 Jan 1970 00:00:00 GMT<EOL>Pragma: no-cache<EOL>Cache-Control: no-cache, no-store<EOL>Content-Type: text/html;charset=UTF-8<EOL>Vary: Accept-Encoding<EOL>Transfer-Encoding: chunked<EOL><EOL>d78<EOL><LF><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><LF><html xmlns="http://www.w3.org/1999/xhtml"><LF><LF><head><LF><meta http-equiv="Content-Type...
Stat Disconnected.
and this is the protocol when it is not working:
Stat Connected.
Sent 10.06.2013 16:17:53: GET /mc/portal/login?2 HTTP/1.1<EOL>Cookie: UserCulture=en-US<EOL>Host: xxx.xxx.xxx<EOL>Accept: text/html, */*<EOL>Accept-Encoding: identity<EOL>User-Agent: Mozilla/5.0 (compatible; PRTG Network Monitor (www.paessler.com); Windows)<EOL><EOL>
Recv 10.06.2013 16:17:53: HTTP/1.1 302 Moved Temporarily<EOL>Date: Mon, 10 Jun 2013 14:17:52 GMT<EOL>Server: Apache-Coyote/1.1<EOL>Expires: Thu, 01 Jan 1970 00:00:00 GMT<EOL>Pragma: no-cache<EOL>Cache-Control: no-cache, no-store<EOL>Location: http://xxx.xxx.xxx/mc/portal/login<EOL>Content-Length: 0<EOL><EOL>
Sent 10.06.2013 16:17:53: GET /mc/portal/login HTTP/1.1<EOL>Cookie: UserCulture=en-US<EOL>Host: xxx.xxx.xxx<EOL>Accept: text/html, */*<EOL>Accept-Encoding: identity<EOL>User-Agent: Mozilla/5.0 (compatible; PRTG Network Monitor (www.paessler.com); Windows)<EOL><EOL>
Recv 10.06.2013 16:17:53: HTTP/1.1 302 Moved Temporarily<EOL>Date: Mon, 10 Jun 2013 14:17:52 GMT<EOL>Server: Apache-Coyote/1.1<EOL>Expires: Thu, 01 Jan 1970 00:00:00 GMT<EOL>Pragma: no-cache<EOL>Cache-Control: no-cache, no-store<EOL>Location: http://xxx.xxx.xxx/mc/portal/wicket/page;jsessionid=UzcUiSdjjxUqSJJWdLdqC8dB.undefined?1<EOL>Content-Length: 0<EOL>Set-Cookie: JSESSIONID=UzcUiSdjjxUqSJJWdLdqC8dB.undefined; Path=/mc<EOL><EOL>
Sent 10.06.2013 16:17:53: GET /mc/portal/wicket/page;jsessionid=UzcUiSdjjxUqSJJWdLdqC8dB.undefined?1 HTTP/1.1<EOL>Host: xxx.xxx.xxx<EOL>Accept: text/html, */*<EOL>Accept-Encoding: identity<EOL>User-Agent: Mozilla/5.0 (compatible; PRTG Network Monitor (www.paessler.com); Windows)<EOL>Cookie: JSESSIONID=UzcUiSdjjxUqSJJWdLdqC8dB.undefined<EOL><EOL>
Recv 10.06.2013 16:17:53: HTTP/1.1 200 OK<EOL>Date: Mon, 10 Jun 2013 14:17:52 GMT<EOL>Server: Apache-Coyote/1.1<EOL>Expires: Thu, 01 Jan 1970 00:00:00 GMT<EOL>Pragma: no-cache<EOL>Cache-Control: no-cache, no-store<EOL>Content-Type: text/html;charset=UTF-8<EOL>Vary: Accept-Encoding<EOL>Transfer-Encoding: chunked<EOL><EOL>a57<EOL><LF><!--<LF> Licensed to the Apache Software Foundation (ASF) under one or more<LF> contributor license agreements. See the NOTICE file distributed with<LF> this work for additional information regardi...
Recv 10.06.2013 16:17:53: /<LF> function submitform() {<LF> document.postback.navigatorAppName.value = window.navigator.appName;<LF> document.postback.navigatorAppVersion.value = window.navigator.appVersion;<LF> document.postback.navigatorAppCodeName.value = window.navigator.appCodeName;<LF> var cookieEnabled = (window.navigator.cookieEnabled)? true : false;<LF> if (typeof window.navigator.cookieEnabled == "undefined" && !cookieEnabled) { <LF> document.cookie = "wickettestcookie";<LF> cookieEnabled = (document.cooki...
Stat Disconnected.
Any idea why PRTG changes it's behavior like this?
Regards,
Frank
Add comment