Random Project

Worked well with one exception

So far we have run across several of our servers that for whatever reason, never correctly connected with their NTP servers. The result was that ntpq -p returned “No Association” as its result which created a false positive since this script didn’t recognize the failure case.

Added at line 36:
} elsif($server_list[$i] =~ /^No association/) {
splice(@server_list, $i, 1);
$i–;

to deal with this edge case