[EMAIL PROTECTED] writes: >Hi there. I did just set up a Linux box to time synchronize to a Cisco >router. I would like to have a way to know whenever the Linux box >stops synchronizing (because of any network connecticity issue, for >instance). any ideas?
$!/bin/sh if ! ntpq|grep '* name.of.router'>/dev/null; then mail -s "NTP sync has been lost" [EMAIL PROTECTED] fi And put the shell script into crontab to run every minute. (your milage may vary) _______________________________________________ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions