aboutsummaryrefslogtreecommitdiffstats
path: root/net/nagios-plugins/files/patch-ac
blob: 796ee76bcc2a61526c18236c1d44f14bb0b48b22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- 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 @@
 ###
 ###
 
-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 |")) {
    while (<NTPDC>) {
        print if ($verbose);
        if (/([^\s]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) {