That is what I would try, but are all your servers on the same 192.168 subnet? If they have 2 NIC's, shouldn't you be using the other interfaces IP address instead of the one used for the thin clients?<br><br><div>
<span class="gmail_quote">On 10/18/07, <b class="gmail_sendername">Huck</b> <<a href="mailto:dhuckaby@paasda.org">dhuckaby@paasda.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
double-replying..<br><br>$list = <a href="http://192.168.0.222">192.168.0.222</a>,<a href="http://192.168.0.223">192.168.0.223</a><br><br>for $x in $list<br>do<br>sleep 30<br>if ping -i 3 -c 3 $x<br>then continue<br>else<br>
echo "$x down!" | mail -s "222 down" <a href="mailto:veewee777@alltel.net">veewee777@alltel.net</a><br>break<br>fi<br>done<br><br><br><br><br>something like that?<br><br><br>Doug Simpson wrote:<br>> I am trying to make a script that will ping servers and if they are down, send a message. If they are up it won't send a message.
<br>><br>> The problem I am having is if there are more than one, it won't work.<br>><br>> Here is a sample of my script:<br>> **********sample begins below*************<br>> while (true)<br>> do<br>
> sleep 30<br>> if ping -i 3 -c 3 <a href="http://192.168.0.222">192.168.0.222</a><br>> then<br>> continue<br>> else<br>> echo "<a href="http://192.168.0.222">192.168.0.222</a> down!" | mail -s "222 down" 
<a href="mailto:veewee77@alltel.net">veewee77@alltel.net</a><br>> break<br>> fi<br>> done<br>> **********sample ends above***************<br>><br>><br>> If I add a second (or more) to it, it fails to work properly.
<br>> **********broken sample begins below********<br>> while (true)<br>> do<br>> sleep 30<br>> if ping -i 3 -c 3 <a href="http://192.168.0.222">192.168.0.222</a><br>> then<br>> continue<br>> else<br>
> echo "<a href="http://192.168.0.222">192.168.0.222</a> down!" | mail -s "222 down" <a href="mailto:me@here.there">me@here.there</a><br>> break<br>> fi<br>> if ping -i 3 -c 3 <a href="http://192.168.0.223">
192.168.0.223</a><br>> then<br>> continue<br>> else<br>> echo "<a href="http://192.168.0.223">192.168.0.223</a> down!" |mail -s "223 down" <a href="mailto:me@here.there">me@here.there</a><br>
> done<br>> ***********broken sample ends above**************<br>><br>> Obviously a bogus email address, but it is for reference.<br>>  Any ideas?<br>><br>> Doug<br>><br>> Doug Simpson<br>> Technology Specialist
<br>> De Queen Public Schools<br>> De Queen, AR<br>> <a href="mailto:simpsond@leopards.k12.ar.us">simpsond@leopards.k12.ar.us</a><br>><br>><br>> _______________________________________________<br>> K12OSN mailing list
<br>> <a href="mailto:K12OSN@redhat.com">K12OSN@redhat.com</a><br>> <a href="https://www.redhat.com/mailman/listinfo/k12osn">https://www.redhat.com/mailman/listinfo/k12osn</a><br>> For more info see <<a href="http://www.k12os.org">
http://www.k12os.org</a>><br>><br>><br><br>_______________________________________________<br>K12OSN mailing list<br><a href="mailto:K12OSN@redhat.com">K12OSN@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/k12osn">
https://www.redhat.com/mailman/listinfo/k12osn</a><br>For more info see <<a href="http://www.k12os.org">http://www.k12os.org</a>><br></blockquote></div><br>