2001-05-17 08:02:17 +02:00
|
|
|
--- plugins-scripts/check_ntp.pl.orig Mon Apr 23 19:43:00 2001
|
|
|
|
+++ plugins-scripts/check_ntp.pl Sun Apr 29 18:38:26 2001
|
|
|
|
@@ -154,7 +154,8 @@
|
2001-04-10 11:32:38 +02:00
|
|
|
###
|
|
|
|
###
|
|
|
|
|
2001-05-17 08:02:17 +02:00
|
|
|
-if (open(NTPDC,"/usr/sbin/xntpdc -c peers $host 2>&1 |") ) {
|
|
|
|
+if (open(NTPDC,"/usr/sbin/xntpdc -c peers $host 2>&1 |") ||
|
|
|
|
+ open(NTPDC,"/usr/sbin/ntpdc -c peers $host 2>&1 |")) {
|
2001-04-10 11:32:38 +02:00
|
|
|
while (<NTPDC>) {
|
|
|
|
print if ($verbose);
|
2001-05-17 08:02:17 +02:00
|
|
|
if (/([^\s]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) {
|