[Nagiosplug-help] check_ntp_time threshold checking in 1.4.14 appear broken on AIX 5.3

Frost, Mark {PBG} mark.frost1 at pepsi.com
Tue Nov 10 17:04:21 CET 2009



>-----Original Message-----
>From: Thomas Guyot-Sionnest [mailto:dermoth at aei.ca]
>Sent: Monday, November 09, 2009 6:46 PM
>To: Nagios Plugin Help List
>Subject: Re: [Nagiosplug-help] check_ntp_time threshold checking in
>1.4.14 appear broken on AIX 5.3
>
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>On 09/11/09 05:22 PM, Frost, Mark {PBG} wrote:
>> I'm not a new user of the Nagios Plugins, but I am new to building and
>using them on AIX.  I'm doing the build on AIX 5.3.
>>
>> My initial build on AIX was with 1.4.14.  Everything seemed to build
>OK, but I found when I tried the check_ntp_time plugin, I got correct
>results, but an incorrect return code:
>>
>> $ ./check_ntp_time --version
>> check_ntp_time v1.4.14 (nagios-plugins 1.4.14)
>> $ ./check_ntp_time -H time.xxx.yyy -w 20 -c 10
>> NTP CRITICAL: Offset 0.002554655075
>secs|offset=0.002555s;20.000000;10.000000;
>>
>> No value that I enter for warning or critical yields anything but a
>critical return code.
>>
>> However, if I do the same build with 1.4.12 or 1.4.13, I get results I
>expect:
>>
>> $ ./check_ntp_time --version
>> check_ntp_time v2051 (nagios-plugins 1.4.13)
>> $ ./check_ntp_time -H time.xxx.yyy -w 20 -c 10
>> NTP OK: Offset 0.0003122091293
>secs|offset=0.000312s;20.000000;10.000000;
>> $ ./check_ntp_time -H time.xxx.yyy -w 20 -c 0.00001
>> NTP CRITICAL: Offset -0.002978086472 secs|offset=-
>0.002978s;20.000000;0.000010;
>>
>> I haven't done a lot of testing with other plugins, but I can see that
>check_disk seems to work properly detecting critical and ok states
>correct.
>>
>> So I'm guessing that something broke (as far as AIX is concerned) with
>1.4.14 and the threshold comparisons.  When I do the same test on a SLES
>10.2 platform with 1.4.14 I don't see this problem.
>
>Or it might be something else... There's more than the offset check IIRC
>and the plugin may be missing some verbosity in some rare cases.
>
>Please post the full output of the plugin with -vvv added to the
>arguments. You can use one of the public NTP server if you don't want to
>disclose the hostnames/IPs.
>
>Thank you,
>
>- --
>Thomas



Thanks, Thomas.  Here's the output:

$ ./check_ntp_time --version
check_ntp_time v1.4.14 (nagios-plugins 1.4.14)
$ ./check_ntp_time -H time.xxx.yyy -w 20 -c 10 -vvv
Found 4 peers to check
sending request to peer 0
response from peer 0: packet contents:
        flags: 0x24
          li=0 (0x00)
          vn=4 (0x20)
          mode=4 (0x04)
        stratum = 2
        poll = 16
        precision = 9.53674e-07
        rtdelay = 0.0395355224609375
        rtdisp = 0.0183563232421875
        refid = ac12fd2c
        refts = 1257868638.821967
        origts = 1257868760.482864
        rxts = 1257868760.506258
        txts = 1257868760.506271
offset 0.0005898475647
sending request to peer 0
response from peer 0: packet contents:
        flags: 0x24
          li=0 (0x00)
          vn=4 (0x20)
          mode=4 (0x04)
        stratum = 2
        poll = 16
        precision = 9.53674e-07
        rtdelay = 0.0395355224609375
        rtdisp = 0.0183563232421875
        refid = ac12fd2c
        refts = 1257868638.821967
        origts = 1257868760.528737
        rxts = 1257868760.551385
        txts = 1257868760.551397
offset 0.0002174377441
sending request to peer 0
response from peer 0: packet contents:
        flags: 0x24
          li=0 (0x00)
          vn=4 (0x20)
          mode=4 (0x04)
        stratum = 2
        poll = 16
        precision = 9.53674e-07
        rtdelay = 0.0395355224609375
        rtdisp = 0.0183563232421875
        refid = ac12fd2c
        refts = 1257868638.821967
        origts = 1257868760.573795
        rxts = 1257868760.596649
        txts = 1257868760.59666
offset 4.029273987e-05
sending request to peer 0
response from peer 0: packet contents:
        flags: 0x24
          li=0 (0x00)
          vn=4 (0x20)
          mode=4 (0x04)
        stratum = 2
        poll = 16
        precision = 9.53674e-07
        rtdelay = 0.0395355224609375
        rtdisp = 0.0183563232421875
        refid = ac12fd2c
        refts = 1257868638.821967
        origts = 1257868760.619618
        rxts = 1257868760.642839
        txts = 1257868760.642857
offset 0.000509262085
sending request to peer 1
response from peer 1: packet contents:
        flags: 0x24
          li=0 (0x00)
          vn=4 (0x20)
          mode=4 (0x04)
        stratum = 2
        poll = 16
        precision = 9.53674e-07
        rtdelay = 0.0266876220703125
        rtdisp = 0.049072265625
        refid = ac12022c
        refts = 1257866796.52282
        origts = 1257868760.665251
        rxts = 1257868760.66939
        txts = 1257868760.669401
offset 0.003944396973
sending request to peer 1
response from peer 1: packet contents:
        flags: 0x24
          li=0 (0x00)
          vn=4 (0x20)
          mode=4 (0x04)
        stratum = 2
        poll = 16
        precision = 9.53674e-07
        rtdelay = 0.0266876220703125
        rtdisp = 0.049072265625
        refid = ac12022c
        refts = 1257866796.52282
        origts = 1257868760.66583
        rxts = 1257868760.669854
        txts = 1257868760.669864
offset 0.003867864609
sending request to peer 1
response from peer 1: packet contents:
        flags: 0x24
          li=0 (0x00)
          vn=4 (0x20)
          mode=4 (0x04)
        stratum = 2
        poll = 16
        precision = 9.53674e-07
        rtdelay = 0.0266876220703125
        rtdisp = 0.049072265625
        refid = ac12022c
        refts = 1257866796.52282
        origts = 1257868760.666327
        rxts = 1257868760.670347
        txts = 1257868760.670357
offset 0.00386428833
sending request to peer 1
response from peer 1: packet contents:
        flags: 0x24
          li=0 (0x00)
          vn=4 (0x20)
          mode=4 (0x04)
        stratum = 2
        poll = 16
        precision = 9.53674e-07
        rtdelay = 0.0266876220703125
        rtdisp = 0.049072265625
        refid = ac12022c
        refts = 1257866796.52282
        origts = 1257868760.66683
        rxts = 1257868760.67085
        txts = 1257868760.67086
offset 0.003866314888
sending request to peer 2
response from peer 2: packet contents:
        flags: 0x24
          li=0 (0x00)
          vn=4 (0x20)
          mode=4 (0x04)
        stratum = 2
        poll = 16
        precision = 9.53674e-07
        rtdelay = 0.0561370849609375
        rtdisp = 0.0214080810546875
        refid = ac12022d
        refts = 1257868635.906858
        origts = 1257868760.667326
        rxts = 1257868760.667682
        txts = 1257868760.667693
offset 0.0001492500305
sending request to peer 2
response from peer 2: packet contents:
        flags: 0x24
          li=0 (0x00)
          vn=4 (0x20)
          mode=4 (0x04)
        stratum = 2
        poll = 16
        precision = 9.53674e-07
        rtdelay = 0.0561370849609375
        rtdisp = 0.0214080810546875
        refid = ac12022d
        refts = 1257868635.906858
        origts = 1257868760.667928
        rxts = 1257868760.668211
        txts = 1257868760.66822
offset 0.0001298189163
sending request to peer 2
response from peer 2: packet contents:
        flags: 0x24
          li=0 (0x00)
          vn=4 (0x20)
          mode=4 (0x04)
        stratum = 2
        poll = 16
        precision = 9.53674e-07
        rtdelay = 0.0561370849609375
        rtdisp = 0.0214080810546875
        refid = ac12022d
        refts = 1257868635.906858
        origts = 1257868760.668419
        rxts = 1257868760.668701
        txts = 1257868760.66871
offset 0.0001237392426
sending request to peer 2
response from peer 2: packet contents:
        flags: 0x24
          li=0 (0x00)
          vn=4 (0x20)
          mode=4 (0x04)
        stratum = 2
        poll = 16
        precision = 9.53674e-07
        rtdelay = 0.0561370849609375
        rtdisp = 0.0214080810546875
        refid = ac12022d
        refts = 1257868635.906858
        origts = 1257868760.668921
        rxts = 1257868760.669245
        txts = 1257868760.669255
offset 0.0001667737961
sending request to peer 3
response from peer 3: packet contents:
        flags: 0x24
          li=0 (0x00)
          vn=4 (0x20)
          mode=4 (0x04)
        stratum = 2
        poll = 16
        precision = 9.53674e-07
        rtdelay = 0.0390625
        rtdisp = 0.0284881591796875
        refid = ac12fd2d
        refts = 1257868140.633971
        origts = 1257868760.669421
        rxts = 1257868760.692222
        txts = 1257868760.692235
offset -0.00191617012
sending request to peer 3
response from peer 3: packet contents:
        flags: 0x24
          li=0 (0x00)
          vn=4 (0x20)
          mode=4 (0x04)
        stratum = 2
        poll = 16
        precision = 9.53674e-07
        rtdelay = 0.0390625
        rtdisp = 0.0284881591796875
        refid = ac12fd2d
        refts = 1257868140.633971
        origts = 1257868760.719052
        rxts = 1257868760.743315
        txts = 1257868760.743325
offset -0.001249432564
sending request to peer 3
response from peer 3: packet contents:
        flags: 0x24
          li=0 (0x00)
          vn=4 (0x20)
          mode=4 (0x04)
        stratum = 2
        poll = 16
        precision = 9.53674e-07
        rtdelay = 0.0390625
        rtdisp = 0.0284881591796875
        refid = ac12fd2d
        refts = 1257868140.633971
        origts = 1257868760.770273
        rxts = 1257868760.80385
        txts = 1257868760.803875
offset 0.002882957458
sending request to peer 3
response from peer 3: packet contents:
        flags: 0x24
          li=0 (0x00)
          vn=4 (0x20)
          mode=4 (0x04)
        stratum = 2
        poll = 16
        precision = 9.53674e-07
        rtdelay = 0.0390625
        rtdisp = 0.0284881591796875
        refid = ac12fd2d
        refts = 1257868140.633971
        origts = 1257868760.831874
        rxts = 1257868760.854948
        txts = 1257868760.854978
offset -0.001777291298
using peer 0 as our first candidate
comparing peer 1 with peer 0
stratum for peer 1 <= peer 0
comparing peer 2 with peer 0
stratum for peer 2 <= peer 0
comparing peer 3 with peer 0
stratum for peer 3 <= peer 0
best server selected: peer 0
overall average offset: 0.0005898475647
NTP CRITICAL: Offset 0.0005898475647 secs|offset=0.000590s;20.000000;10.000000;




Mark




More information about the Help mailing list