From: Subhendu Ghosh Date: Sat, 8 Jun 2002 00:33:50 +0000 (+0000) Subject: xntpdc/ntpdc patch - John Koyle X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5313d0d60331cc5136bf097c75556039ca27f4c4;p=nagiosplug.git xntpdc/ntpdc patch - John Koyle git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@48 f882894a-f735-0410-b71e-b25c423dba1c --- diff --git a/plugins-scripts/check_ntp.pl b/plugins-scripts/check_ntp.pl index 68acdf6..fee58e6 100755 --- a/plugins-scripts/check_ntp.pl +++ b/plugins-scripts/check_ntp.pl @@ -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