I wrote something like that when I was with EDS. It grabs an image and
compares the md5sum to the md5sum of a stored copy of the image. If it's
different, sound the alarm. I can probably dredge that up this evening when
I get home. In the meantime, it would not be too hard to reconstruct.
If it's just the image that isn't being updated, then grab a copy with curl:
curl -s -S -L -o image.jpg http://www.server.com/img.jpg
and md5sum it. Compare that to the md5sum of the last image you fetched.
If different, you can then send a red report, otherwise send green.
If the page itself is not being update, just have the tcsh script insert a
timestamp as a comment, then grab the page in much the same way and grep the
timestamp from it. If the timestamp varies from real time by several
minutes, sound the alarm.
Ralph Mitchell
On Fri, Jul 29, 2011 at 10:40 AM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid>wrote:
I have a tsch script that does some things, manipulates and image and such
and posts it on a web site. Occasionally, I have found a bug or two where
the image stops updating. I don't know this until it is too late. Is there
any sort of technique or custom script that will poll a website and see if
something is to old? I'm at a bit of a loss as to how to correctly indicate
a problem and hoping there is something I can start from already.
Thanks in advance!
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX