[Nagiosplug-devel] check_ntp patch

John Koyle jkoyle at lineo.com
Fri Jun 7 15:13:01 CEST 2002


The latest version in CVS needs this simple patch:

[root at shire plugins]# diff -uNr check_ntp.orig check_ntp
--- check_ntp.orig      Fri Jun  7 16:02:01 2002
+++ check_ntp   Fri Jun  7 16:02:34 2002
@@ -112,6 +112,7 @@

 my $answer = undef;
 my $offset = undef;
+my $have_ntpdc = undef;
 my $msg; # first line of output to print if format is invalid

 my $state = $ERRORS{'UNKNOWN'};
@@ -121,9 +122,9 @@
 my $key = undef;
 # some systems don't have a proper ntpdc/xntpdc
 if ($utils::PATH_TO_NTPDC && -x $utils::PATH_TO_NTPDC ) {
-       my $have_ntpdc = 1;
+       $have_ntpdc = 1;
 }else{
-       my $have_ntpdc = 0;
+       $have_ntpdc = 0;
 }

 # Just in case of problems, let's not hang Nagios


Thanks,
John





More information about the Devel mailing list