summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xplugins-scripts/check_ntp.pl5
1 files changed, 3 insertions, 2 deletions
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'};
120 120
121my $key = undef; 121my $key = undef;
122# some systems don't have a proper ntpdc/xntpdc 122# some systems don't have a proper ntpdc/xntpdc
123my $have_ntpdc = undef;
123if ($utils::PATH_TO_NTPDC && -x $utils::PATH_TO_NTPDC ) { 124if ($utils::PATH_TO_NTPDC && -x $utils::PATH_TO_NTPDC ) {
124 my $have_ntpdc = 1; 125 $have_ntpdc = 1;
125}else{ 126}else{
126 my $have_ntpdc = 0; 127 $have_ntpdc = 0;
127} 128}
128 129
129# Just in case of problems, let's not hang Nagios 130# Just in case of problems, let's not hang Nagios