Hi There
Im pretty new to Zabbix but have managed to get everything setup and working great
that is all accept one thing
web checks.
I’ve been through the user manual and can get zabbix to check itself no probs but im trying to monitor a website written in java when trying to get the webchecks to login to the site i kept getting the following error
Failed on "Check Login" [3 of 3] Error: Page did not match
after a bit of investergation i tried to open the site from the server using
curl -v --data
which outputted the java souce rather than the html output below “ problem found”
* About to connect() to *** port 8080 (#0)
* Trying 192.*.*.*... connected
* Connected to *** (192.*.*.*) port 8080 (#0)
> POST /rjBackOffice/index.html HTTP/1.1
> User-Agent: curl/7.19.7 (i386-redhat-linux-gnu) libcurl/7.19.7 NSS/3.12.6.2 zlib/1.2.3 libidn/1.9 libssh2/1.2.4
> Host: ***:8080
> Accept: */*
> Content-Length: 64
> Content-Type: application/x-www-form-urlencoded
>
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< ETag: W/"1029-1263455514000"
< Last-Modified: Thu, 14 Jan 2010 07:51:54 GMT
< Content-Type: text/html
< Content-Length: 1029
< Date: Tue, 29 Mar 2011 14:39:16 GMT
<
<html>
<head>
<title>retail-j</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<!-- framespacing and style ignored by NS6; frameborder ignored by IE5 !!! -->
<frameset name ="mainFrameset" id ="mainFrameset" rows="28,*" frameborder="1" framespacing="2" border="2" bordercolor="#000000">
<frame name="titleFrame" src="title.jsp" marginheight="0" marginwidth="0" noresize="noresize" scrolling="no">
<frameset name="innerFrameset" id="innerFrameset" cols="20%,*" frameborder="0" border="0" framespacing="0" >
<frame name="contentFrame" src="dynamicContents.jsp" marginheight="0" marginwidth="0" noresize="noresize" target="mainFrame" scrolling="auto">
<frame name="mainFrame" src="Welcome.jsp" marginheight="0" marginwidth="0" scrolling="auto">
</frameset>
<noframes>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0">
Sorry your browser does not support framesets.
</body>
</noframes>
</frameset>
</* Connection #0 to host cbsv left intact
* Closing connection #0[/COLOR]
so my question is, is there a way to get zabbix to check the outputed html so that I can check its working.
Hope this makes sence
Regards
Kevin
Im pretty new to Zabbix but have managed to get everything setup and working great
that is all accept one thing
web checks.I’ve been through the user manual and can get zabbix to check itself no probs but im trying to monitor a website written in java when trying to get the webchecks to login to the site i kept getting the following error
Failed on "Check Login" [3 of 3] Error: Page did not match
after a bit of investergation i tried to open the site from the server using
curl -v --data
which outputted the java souce rather than the html output below “ problem found”
* About to connect() to *** port 8080 (#0)
* Trying 192.*.*.*... connected
* Connected to *** (192.*.*.*) port 8080 (#0)
> POST /rjBackOffice/index.html HTTP/1.1
> User-Agent: curl/7.19.7 (i386-redhat-linux-gnu) libcurl/7.19.7 NSS/3.12.6.2 zlib/1.2.3 libidn/1.9 libssh2/1.2.4
> Host: ***:8080
> Accept: */*
> Content-Length: 64
> Content-Type: application/x-www-form-urlencoded
>
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< ETag: W/"1029-1263455514000"
< Last-Modified: Thu, 14 Jan 2010 07:51:54 GMT
< Content-Type: text/html
< Content-Length: 1029
< Date: Tue, 29 Mar 2011 14:39:16 GMT
<
<html>
<head>
<title>retail-j</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<!-- framespacing and style ignored by NS6; frameborder ignored by IE5 !!! -->
<frameset name ="mainFrameset" id ="mainFrameset" rows="28,*" frameborder="1" framespacing="2" border="2" bordercolor="#000000">
<frame name="titleFrame" src="title.jsp" marginheight="0" marginwidth="0" noresize="noresize" scrolling="no">
<frameset name="innerFrameset" id="innerFrameset" cols="20%,*" frameborder="0" border="0" framespacing="0" >
<frame name="contentFrame" src="dynamicContents.jsp" marginheight="0" marginwidth="0" noresize="noresize" target="mainFrame" scrolling="auto">
<frame name="mainFrame" src="Welcome.jsp" marginheight="0" marginwidth="0" scrolling="auto">
</frameset>
<noframes>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0">
Sorry your browser does not support framesets.
</body>
</noframes>
</frameset>
</* Connection #0 to host cbsv left intact
* Closing connection #0[/COLOR]
so my question is, is there a way to get zabbix to check the outputed html so that I can check its working.
Hope this makes sence
Regards
Kevin
Comment