Solved

Grab local HTML and alert me based on a threshold

Posted on 2010-09-01
5
392 Views
Last Modified: 2012-05-10
Hi experts.
I'm looking for something that may not exist or may be too hard to make.  I want a little program that can monitor a local webpage and then alert me whenever a particular value in a table equals 0.  The webpage is built-in to a local appliance.  It updates every 10 secs, but it's very simple so there's no feature to report or alert on it's data.  I need this tool to be able to run as a service and then do something useful like email me when the alert threshold is reached.  There is also a basic username/password to access this page, so it'd be great if that was able to be configured too, but it probably doesn't matter as I'll login once and then it will be able to keep refreshing without asking for the login again.

This could run on a 2008 server or XP machine.  Does anyone know of a piece of software that could do this, or know how to do it myself perhaps with Powershell?
0
Comment
Question by:theras2000
  • 3
  • 2
5 Comments
 
LVL 27

Expert Comment

by:Lukasz Chmielewski
ID: 33584557
What is the web server ?
0
 
LVL 14

Author Comment

by:theras2000
ID: 33586808
OK a bit more digging around has given me some info, but not heaps.  The webpage isn't coming from an appliance, but from the server that I control.  I believe that the web server is probably built-in to a running service which runs constantly.  This is how many other services work which were created by the same person.  It somehow pulls a file called template.htt, which uses javascript to fill in the dynamic values on the page.  The page is very basic .. just a header, the javascript reference, and then a table full of rows and such.

I have tried using 'netstat -a -b' to discover exactly where the web port (81) comes from, but it says I can't obtain ownership information to display the exe filename (presumably a permissions issue).  Other possibilities are an Apache server residing on the server, but I've looked at the config (httpd.conf) and it's only serving one static page on port 82 (as far as I can tell).
0
 
LVL 27

Expert Comment

by:Lukasz Chmielewski
ID: 33590139
can you place your php scripts on that server ?
0
 
LVL 14

Author Comment

by:theras2000
ID: 33594315
Unfortunately no.  It runs critical services setup by another company, so I can't interfere with it.  That's why I wanted something that can run elsewhere and just monitor the webpage.
0
 
LVL 14

Accepted Solution

by:
theras2000 earned 0 total points
ID: 33618717
Don't wory.  I finally found some sites that look like they'll teach me how to do it in Powershell http://poshcode.org/561 and http://www.scriptinganswers.com/forum2/forum_posts.asp?TID=3906
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now