[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
Mon Nov 9 23:22:43 CET 2009


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.


Thanks

Mark






More information about the Help mailing list