Web page contents check is failing - please advise on this?

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
ironcurtain
Posts: 34
Joined: Mon Apr 28, 2008 10:15 am

Web page contents check is failing - please advise on this?

Post by ironcurtain »

HostMonitor v7.72
Operating System: Windos Server 2003
Platform: 64Bit server

Test Purpose:
If the web page has expected text existing in it then the test passes.

Problem:
This test is always failing, even though the text I am checking for does indeed exist. Am I doing something incorrectly, please?

Test Details:
I have included the test parameters below:

;-----------------------------------------------------------------------------
;- HostMonitor`s export/import file -
;- Generated by HostMonitor at 18/12/2008 19:05:39 -
;- Source file: C:\Program Files (x86)\HMBackup\20081013HostMonitorTests.hml -
;- Generation mode: Selected_Tests -
;-----------------------------------------------------------------------------


; ------- Test #01 -------


Method = Url
;--- Common properties ---
;DestFolder = Root\Live Assets\Live Projects\Live Website Monitoring\
Title = Grant Test on Google Page
Comment = Check for page contents. If The system is not accessible at the moment then send an alert.
RelatedURL =
ScheduleMode= Regular
Schedule = IFS Live Website Monitoring
Interval = 900
Alerts = Do nothing
ReverseAlert= No
UnknownIsBad= Yes
WarningIsBad= No
UseCommonLog= Yes
PrivLogMode = Default
CommLogMode = Default
;--- Test specific properties ---
URL = http://www.google.co.uk:80/
UrlUseMacros= Yes
is302ok = No
IgnoreUnknCA= Yes
Timeout = 90000
UseFrames = No
UseImages = No
CheckContents = contain
Expression = pages from the UK
CaseSensitive = No
WholeWordsOnly= No
ExprUseMacros = No

;-----------------------------------------------------------------------------
; Exported 1 items
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

It works just fine on my system. Test status: "Host is alive"
Could you check page content using your web browser?
May be google provides different content depending on browser... What agent name have you selected on Misc page in the Options dialog (Options -> Misc -> Settings for URL test)?

Regards
Alex
ironcurtain
Posts: 34
Joined: Mon Apr 28, 2008 10:15 am

Post by ironcurtain »

I have Agent Name set to Mozilla/4.0 (compatible; MSIE 6.0)
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We are using the same default option, evething works fine.
Could you please check page content using your web browser?

What version of Internet Explorer is installed on your system?
Could you try HTTP test method instead? HTTP test uses our own code and does not depend on Microsoft software.

Regards
Alex
grantqa
Posts: 7
Joined: Mon Aug 04, 2008 12:03 pm
Location: London

Post by grantqa »

Hello Alex,
We are using IE7.0

By HTTP test method are you referring to "URL Request" test method, using service HTTP? This is what we are using this for the test.

We have imported the test included in the earlier posting in to HostMonitor 7.14 Beta installed on a Windows Server 2003 platform with Internet Explorer 7 installed and the test works fine. The Agent Name is also set to Mozilla/4.0 (compatible; MSIE 6.0)
For this setup, using either of the text below results in test passing:
1. <label for=cty> pages from the UK </label>
2. pages from the UK
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

By HTTP test method are you referring to "URL Request" test method, using service HTTP?
No. There are 2 test methods:
- URL test that allows you to check FTP, HTTP, HTTPS servers
- HTTP test that allows you to check HTTP services only
HTTP test uses our own code and does not depend on version of IE installed on the system. While URL test uses Windows wininet and winhttp DLLs
We have imported the test included in the earlier posting in to HostMonitor 7.14 Beta installed on a Windows Server 2003 platform with Internet Explorer 7 installed and the test works fine.
Is this the same Windows2003 system where HostMonitor 7.72 cannot check the page? or you are using different system?
We have tested HM on system where IE 7.0 is installed. Everything works fine as well.
Could you please check page content using your web browser on the system where test fails (IE menu View->Source)?

Regards
Alex
ironcurtain
Posts: 34
Joined: Mon Apr 28, 2008 10:15 am

Post by ironcurtain »

Is this the same Windows2003 system where HostMonitor 7.72 cannot check the page? or you are using different system?
This was on a different system.
Could you please check page content using your web browser on the system where test fails (IE menu View->Source)?
The source is the same as on the different system, the source being:
<label for=cty> pages from the UK </label>

I had left the test running and now looking at the results after a few days it had started to pass. If I change the contents check from "pages from the UK" to "pages from the UK1" the test URL Request (HTTP) fails as expected, with message "bad Contents".
I will try the HTTP test "Internet Service Test" -> HTTP to check the performance.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We cannot reproduce this problem on our systems.... something must be wrong with that machine :roll:

Regards
Alex
Post Reply