<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>If it was a static page, you could check the md5sum, too.<br>If the whole site was static, you could md5sum the whole site.<br>Then, you'd get a beacon every time anything changed: site down, or content change.<br><span><br>beacon is the new bacon.<br><br><span name="x"></span>--<br>David L. Willson<br>Teacher, Engineer, Evangelist<br>RHCE+Satellite CCAH Network+ A+ Linux+ LPIC-1 UbuntuCP NovellCLA<br>Mobile 720-333-LANS(5267)<br>http://sofree.us<br><br>This is a good time for a r3VOLution.<span name="x"></span><br></span><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr">It seems like you'd want something that checked the page from outside. &nbsp;If you scripted something and set it up as a cron, you'd only find out about it if the server was otherwise functional. &nbsp;I can set up a check on my Nagios server, though there might be gratis services on the Internet that do that. &nbsp;If so, I haven't found any.<div>

<br></div><div>If you're interested, the simple check that I usually use to check sites looks like this (Nagios is CRITICAL on exit 2, OK on exit 0):</div><div><br><div>#!/bin/bash</div><div><br></div><div>Catch() {</div>

<div>&nbsp; code=$1</div><div>&nbsp; message=$2</div><div><br></div><div>&nbsp; if [[ $code -ne 0 ]]</div><div>&nbsp; then</div><div>&nbsp; &nbsp; echo "ERROR: $message. &nbsp;Returned $code"</div><div>&nbsp; &nbsp; exit 2</div><div>&nbsp; fi</div><div>}</div>
<div>
<br></div><div>url='http://&lt;some page on my site&gt;'<br></div><div>string='&lt;some string that's on my page when it's working&gt;'</div><div>contents=$(curl -s $url)<br></div><div>Catch $? "Could not connect to $url"</div>

<div>echo "$contents" | grep "$string" &gt; /dev/null</div><div>Catch $? "Couldn't find $string in $url"</div><div>echo "OK: Found $string in $url"</div><div>exit 0</div><br></div>

</div>
<br>_______________________________________________<br>clue mailing list: clue@cluedenver.org<br>For information, account preferences, or to unsubscribe see:<br>http://cluedenver.org/mailman/listinfo/clue</blockquote><br></div></body></html>