check_ntp oddity
Posted: Thu Nov 07, 2013 9:50 am
Hello,
I'm trying to configure check_ntp to monitor hosts in our environment for sync offset or drift. I have this working via command line:
[root@vmnagios libexec]# ./check_ntp -H x.x.x.x -w 0.5 -c 1
NTP OK: Offset 0.002705574036 secs|offset=0.002706s;0.500000;1.000000;
I set up my config as follows:
#define service{
# use generic-service
# hostgroup_name jpm
# service_description NTP SYNC
# check_command check_ntp!-H 10.8.57.41 -w 0.5 -c 1
# }
and then in the commands.cfg I added:
define command{
command_name check_ntp
command_line $USER1$/check_ntp -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$
}
However, on our Nagios website, I am receiving the following:
Current Status: UNKNOWN (for 0d 0h 0m 5s)
Status Information: WARNING: check_ntp is deprecated. Please use check_ntp_peer or
check_ntp_time instead.
\nUsage:
check_ntp -H <host> [-w <warn>] [-c <crit>] [-j <warn>] [-k <crit>] [-v verbose]
Performance Data:
Current Attempt: 1/3 (SOFT state)
Last Check Time: 11-07-2013 09:42:15
Check Type: ACTIVE
Check Latency / Duration: 2.160 / 0.008 seconds
Next Scheduled Check: 11-07-2013 09:44:15
Am I doing something wrong? Thank you.
I'm trying to configure check_ntp to monitor hosts in our environment for sync offset or drift. I have this working via command line:
[root@vmnagios libexec]# ./check_ntp -H x.x.x.x -w 0.5 -c 1
NTP OK: Offset 0.002705574036 secs|offset=0.002706s;0.500000;1.000000;
I set up my config as follows:
#define service{
# use generic-service
# hostgroup_name jpm
# service_description NTP SYNC
# check_command check_ntp!-H 10.8.57.41 -w 0.5 -c 1
# }
and then in the commands.cfg I added:
define command{
command_name check_ntp
command_line $USER1$/check_ntp -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$
}
However, on our Nagios website, I am receiving the following:
Current Status: UNKNOWN (for 0d 0h 0m 5s)
Status Information: WARNING: check_ntp is deprecated. Please use check_ntp_peer or
check_ntp_time instead.
\nUsage:
check_ntp -H <host> [-w <warn>] [-c <crit>] [-j <warn>] [-k <crit>] [-v verbose]
Performance Data:
Current Attempt: 1/3 (SOFT state)
Last Check Time: 11-07-2013 09:42:15
Check Type: ACTIVE
Check Latency / Duration: 2.160 / 0.008 seconds
Next Scheduled Check: 11-07-2013 09:44:15
Am I doing something wrong? Thank you.