Possible sure. Also depends on your skill. And as well a choice of scripting language to use.
http://www.tldp.org/LDP/Bash-Beginners-Guide/html/ should get you started if you want to use BASH.
You could also use perl as its installed on most linux distributions per default.
As soon as you have your script maybe use cron to have it run on a schedule. If you are stuck with any of this try
man cron or
man crontrab on a command line.
Example bash script
Quote:
ping $TARGET
if [ $? -ne 0 ]; then
date > /tmp/logfile
fi
|