Hi!
It seems that the results of the ntp checks depend on the used locale:
=========================================
root@longinus:~# locale
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=
root@longinus:~# /usr/lib/nagios/plugins/check_ntp_peer -H localhost -w 0.5 -c 1
NTP WARNING: Offset 0,014 secs|offset=0,014000s;0,000000;1,000000;
root@longinus:~# LANG=POSIX /usr/lib/nagios/plugins/check_ntp_peer -H localhost -w 0.5 -c 1
NTP OK: Offset 0.014145 secs|offset=0.014145s;0.500000;1.000000;
===========================================
Note that the values didn't change much, but the german locale uses a
"," to sepperate decimal values instead of a dot.
(Causes especially funny results, if you invoke the test via nrpe and
the locale settings of the user starting nrpe influence the results of
this test...)
Best regards,
Alexander