check_ntp_peer truechimers option
Posted: Fri Mar 02, 2018 6:57 am
Dear support,
The manual page for check_ntp_peer (http://nagios-plugins.org/doc/man/check_ntp_peer.html) uses this example for truechimers:
Our environment has 4 truechimers and while applying thresholds I stumble upon:
Thank you in advance. Jørgen
The manual page for check_ntp_peer (http://nagios-plugins.org/doc/man/check_ntp_peer.html) uses this example for truechimers:
I can't find this example with the at-sign and only one single integer in the Plugin Development Guidelines. https://nagios-plugins.org/doc/guidelin ... HOLDFORMATOnly check the number of usable time sources ("truechimers"):
./check_ntp_peer -H ntpserv -m @5 -n @3
Our environment has 4 truechimers and while applying thresholds I stumble upon:
When I use the syntax with an integer and a colon everything looks fine (except for the performance data for truechimers)[root@nagiosxi libexec]# ./check_ntp_peer -H myntpserver -w 0.5 -c 0.7 -m @4 -n @3
NTP WARNING: Offset 0.00023 secs, truechimers=4 (WARNING)|offset=0.000230s;0.500000;0.700000; truechimers=4;4;3;0
Is this the format I should be using? threshold warning = X - 1, critical = Y - 1[root@nagiosxi libexec]# ./check_ntp_peer -H myntpserver -w 0.5 -c 0.7 -m 4: -n 3:
NTP OK: Offset 0.00023 secs, truechimers=4|offset=0.000230s;0.500000;0.700000; truechimers=4;0;0;0
[root@nagiosxi libexec]#
Could you please shine some light on the expected threshold format?[root@nagiosxi libexec]# ./check_ntp_peer -H myntpserver -w 0.5 -c 0.7 -m @3 -n @2
NTP OK: Offset 0.000209 secs, truechimers=4|offset=0.000209s;0.500000;0.700000; truechimers=4;3;2;0
Thank you in advance. Jørgen