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 <josh at imaginenetworksllc.com>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: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon