Code

xntpdc/ntpdc patch - John Koyle
authorSubhendu Ghosh <sghosh@users.sourceforge.net>
Sat, 8 Jun 2002 00:33:50 +0000 (00:33 +0000)
committerSubhendu Ghosh <sghosh@users.sourceforge.net>
Sat, 8 Jun 2002 00:33:50 +0000 (00:33 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@48 f882894a-f735-0410-b71e-b25c423dba1c

plugins-scripts/check_ntp.pl

index 68acdf65e34c7f3f85f649fdc43b66e03aeebb63..fee58e69deb1107a0c381f567e5939bbc8c53fc0 100755 (executable)
@@ -120,10 +120,11 @@ my $dispersion_error = $ERRORS{'UNKNOWN'};
 
 my $key = undef;
 # some systems don't have a proper ntpdc/xntpdc
+my $have_ntpdc = undef;
 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