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

Thomas Guyot-Sionnest dermoth at aei.ca
Tue Nov 10 00:46:18 CET 2009


-----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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFK+KnK6dZ+Kt5BchYRArmRAJ9+UNN497pejAqDBvBC3Iz67Y3fXACeMJqA
BS9/ts0jmwwigT+Mcz9RuMo=
=XpKx
-----END PGP SIGNATURE-----




More information about the Help mailing list