diff options
| author | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-06-08 00:33:50 +0000 |
|---|---|---|
| committer | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-06-08 00:33:50 +0000 |
| commit | 5313d0d60331cc5136bf097c75556039ca27f4c4 (patch) | |
| tree | d18ea5a35a1b539b274b9fd0bd42bdbeae2fbead /plugins-scripts | |
| parent | 4bea73077b3a601911ffb8338da8c35d00e2477a (diff) | |
| download | monitoring-plugins-5313d0d60331cc5136bf097c75556039ca27f4c4.tar.gz | |
xntpdc/ntpdc patch - John Koyle
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@48 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins-scripts')
| -rwxr-xr-x | plugins-scripts/check_ntp.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins-scripts/check_ntp.pl b/plugins-scripts/check_ntp.pl index 68acdf65..fee58e69 100755 --- a/plugins-scripts/check_ntp.pl +++ b/plugins-scripts/check_ntp.pl | |||
| @@ -120,10 +120,11 @@ my $dispersion_error = $ERRORS{'UNKNOWN'}; | |||
| 120 | 120 | ||
| 121 | my $key = undef; | 121 | my $key = undef; |
| 122 | # some systems don't have a proper ntpdc/xntpdc | 122 | # some systems don't have a proper ntpdc/xntpdc |
| 123 | my $have_ntpdc = undef; | ||
| 123 | if ($utils::PATH_TO_NTPDC && -x $utils::PATH_TO_NTPDC ) { | 124 | if ($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 |
