VMware Cloud Community
aerosteak
Contributor
Contributor

Availability based on HTML page content + Login form

Hello

I am reading the Documentation/Plugins but I cannot found how to do this.

- I have a webpage that I need to monitor
- I need to extract content on this page to evaluate the ‘availability’ (if a html row contain the work OK)
- Also, the web site is secure and prior to call my web page, I need to authenticate via a Web Form (Basically, I need to do A POST with a username/password and I need to re-use the Cookie for the next Http call).

Any good Idea on how to do that (beside using the Script Service)?
0 Kudos
5 Replies
admin
Immortal
Immortal

aerosteak,

A script plug in is probably the way to go for that, unless there's a reason you want to avoid the script service:
http://support.hyperic.com/display/DOCSHQ30/Script+Plugin

Is there a reason you want to check via parsing "post" results rather than monitoring the availability of the web server? i.e. do you have an issue where the page will not load when the web server is healthy?

--jermy
0 Kudos
aerosteak
Contributor
Contributor

Hello,

To me, the only way to be sure, at 100%, that an application is behaving properly is to validate the content of a page. A App Server can be up and running but so many other thing can go wrong in a Java App...

If my monitoring tool can see the same content as a user, then I can assert everything is ok.


Thanks
0 Kudos
TheChristoph
Contributor
Contributor

Hello,

I had a similar problem.
I solved it by using the HTTP-Platform Service.

You get it if you browse on your platform and add a "New Platform Service" from the Tools Menu. Choose Service Type "HTTP" and then configure it like you need to.
You see in the site that also can authenticate with username an password.

Fill into "pattern" what content you want to monitor on your site.
If the website contains the pattern in it's HTML-Sourcecode, the HTTP-Availability will be green, if it not contains the pattern it will be yellow at 50% Availability.
0 Kudos
njyeti
Contributor
Contributor

Hello Aerosteak,
Were you able to solve your issue? I have a similar requirement....I tried

1) Using the Http Service with username & password: It gives me availability 100% even if I give a wrong username or a password. So I am not that confident using this feature. Please let me know if I am missing any configuration of this setup though

2) Using script (Selenium): However it opens the browser when the script is called through the Hyperic HQ. Maybe I am missing some setup here as well.

Anyway, please let me know if you have found good solution to handle it. Any help/suggestion will be much appreciated.

Cheers!!!
0 Kudos
excowboy
Virtuoso
Virtuoso

Hi,

did you read my comment about selenium ?
http://communities.vmware.com/thread/354075?tstart=0

Cheers,
Mirko
0 Kudos