Om firman, Saya belum test scriptsnya, tapi dari scripts tidak mengirim sms apabila setelah down kemudian up. jadi sms dikirim bila ada down dan up saja, thanks ...
salam IYAN > /* dihapus|deleted */ > ----------------------->8-- > #!/bin/bash > # Seperti biasa - You Use With Your Own Risk (NO WARRANTY). > #cd /home/iyan/scripts/sms/ > LOCK="./monitor.lock" > NEXT="gnokii --sendsms 08127113000" > ping 192.168.0.1 -c 1 -w 1 |grep "round-trip" > /dev/null 2>&1 > > if [ "$?" -eq 0 ]; then > { > if [ -f $LOCK ]; then > { > rm -f $LOCK > } > fi > echo "Server Up" > } > else > { > if [ ! -f $LOCK ]; then > { > touch $LOCK > echo "Server Down" | $NEXT > } > fi > } > fi > --8<---------------------- > HTH, > -- > Firman Pribadi > -------------- > Orang yang sukses sejati adalah orang yang terus menerus berusaha > membersihkan hati./MQ > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]