[Nagiosplug-help] check_ntp errors cause UNKNOWN status
Subhendu Ghosh
sghosh at sghosh.org
Wed Aug 24 11:28:28 CEST 2005
Bug 1267741
Can you remove the $jitter = statement in the else branch at line 309:
}else {
print "No match!\n" if $verbose;
# $jitter = '(not parsed)';
}
On Wed, 24 Aug 2005, Aaron Carr wrote:
> plugin version - 1.4.1
> ntpdc version - 4.2.0a at 1.1190-r
> ntpq version - 4.2.0a at 1.1190-r
>
> On 8/24/05, Subhendu Ghosh <sghosh at sghosh.org> wrote:
>> On Wed, 24 Aug 2005, Aaron Carr wrote:
>>
>>> I've been digging through the archives, but I don't see any solid
>>> answers to this question.
>>>
>>> If I execute check_ntp at the command line, I get the following as my
>>> first line of output:
>>> "Use of uninitialized value in division (/) at check_ntp line 424."
>>> The next line reads "NTP OK: Offset 0.023199 secs|offset=0.023199,
>>> jitter=0,peer_stratum=5", which is great, but with the first line
>>> being the error, Nagios has already changed the status to "UNKNOWN".
>>>
>>> Does anyone have a working check_ntp?
>>>
>>> Thanks.
>>>
>>> Aaron
>>>
>>
>> plugin version
>> ntpdc version
>> ntpq version
>>
>> --
>> -sg
>>
>>
--
More information about the Help
mailing list