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.<div>
<br></div><div><div>If it's just the image that isn't being updated, then grab a copy with curl:</div><div><br></div><div> curl -s -S -L -o image.jpg <a href="http://www.server.com/img.jpg">http://www.server.com/img.jpg</a></div>
<div><br></div><div>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.</div><div><br></div><div>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.</div>
<div><br></div><div>Ralph Mitchell</div><div><br><br></div><div><br><div class="gmail_quote">On Fri, Jul 29, 2011 at 10:40 AM, Josh Luthman <span dir="ltr"><<a href="mailto:josh@imaginenetworksllc.com">josh@imaginenetworksllc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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.<br>
<br>Thanks in advance!<br><font color="#888888"><br clear="all">Josh Luthman<br>Office: <a href="tel:937-552-2340" value="+19375522340" target="_blank">937-552-2340</a><br>Direct: <a href="tel:937-552-2343" value="+19375522343" target="_blank">937-552-2343</a><br>
1100 Wayne St<br>Suite 1337<br>Troy, OH 45373<br>
</font><br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div></div>