GitHub

The check_ntp_time Plugin

check_ntp_time v2.4.0.7.g78ce (monitoring-plugins 2.4git)
Copyright (c) 2006 Sean Finney
Copyright (c) 2006-2008 Monitoring Plugins Development Team
    <devel@monitoring-plugins.org>

This plugin checks the clock offset with the ntp server

Usage:
 check_ntp_time -H <host> [-4|-6] [-w <warn>] [-c <crit>] [-v verbose] [-o <time offset>]

Options:
 -h, --help
    Print detailed help screen
 -V, --version
    Print version information
 --extra-opts=[section][@file]
    Read options from an ini file. See
    https://www.monitoring-plugins.org/doc/extra-opts.html
    for usage and examples.
 -4, --use-ipv4
    Use IPv4 connection
 -6, --use-ipv6
    Use IPv6 connection
 -H, --hostname=ADDRESS
    Host name, IP Address, or unix socket (must be an absolute path)
 -p, --port=INTEGER
    Port number (default: 123)
 -q, --quiet
    Returns UNKNOWN instead of CRITICAL if offset cannot be found
 -w, --warning=THRESHOLD
    Offset to result in warning status (seconds)
 -c, --critical=THRESHOLD
    Offset to result in critical status (seconds)
 -o, --time_offset=INTEGER
    Expected offset of the ntp server relative to local server (seconds)
 -t, --timeout=INTEGER
    Seconds before connection times out (default: 10)
 -v, --verbose
    Show details for command-line debugging (output may be truncated by
    the monitoring system)

This plugin checks the clock offset between the local host and a
remote NTP server. It is independent of any commandline programs or
external libraries.

Notes:
 If you'd rather want to monitor an NTP server, please use
 check_ntp_peer.
 --time-offset is useful for compensating for servers with known
 and expected clock skew.

 See:
 https://www.monitoring-plugins.org/doc/guidelines.html#THRESHOLDFORMAT
 for THRESHOLD format and examples.

Examples:
  ./check_ntp_time -H ntpserv -w 0.5 -c 1

Send email to help@monitoring-plugins.org if you have questions regarding
use of this software. To submit patches or suggest improvements, send email
to devel@monitoring-plugins.org