Perform logic & numeric tests on web page contents.

Need new test, action, option? Post request here.
Post Reply
HarryHsyd

Perform logic & numeric tests on web page contents.

Post by HarryHsyd »

I currently monitor some things by using an External Program to retrieve a web page (.txt file) that contains just an integer. The External Program sets the Error Level to the integer value. In Host Monitor I use ‘is > then’ test to indicate an error.
If the External Program fails it’s difficult to report the error back.
Is there some way I can do it all with Host Monitor?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

H'm.. you may use expression to check content of the web page, but HostMonitor compare values as strings... How many different values may have that variable (values range)? If just several, you may use "Check contents" option and expression like "'11' or '12' or '15'"

Regards
Alex
HarryHsyd

Post by HarryHsyd »

Thanks for the reply Alex.
I'm actually monitoring queue depth, logged on users etc. so it’s difficult if not impossible to use string-matching.
Maybe in the next version?

Cheers
Harry
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

H'm... I am not sure. Web page contains single number in your case but in general web page is large amount of text. How can we define expression to check some unknown number that located somewhere in the text?

Regards
Alex
totte
Posts: 55
Joined: Wed May 30, 2007 3:40 am

Post by totte »

Hi

I have the same problem. Several of our program generates webpages that displays diffrent queue's.

I would like a function for looking for a string and then checks the numeric value on the same row.


Exampel from one of our applications.
Total number of handled DatedCall-messages: 189635321

Is this possible?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

No, this is impossible in current version and will not be implemented soon. May be in version 8

Regards
Alex
Post Reply