Am 2013-08-01 09:58, schrieb James Patterson:
> Hello,
> 
> I have two questions.
> 
> What's the best way
> of asking ntpd if it is receiving time from a good time source?

You remind me that I should start to monitor our timeservers better (2
of which are in the pool).

Our main monitoring tool is Icinga (a Nagios fork), and it comes with
several ntp related plugins.

check_ntp_peer seems to be apropriate, see attached help text.

I hope I don't break any list rules by attaching something, sorry otherwise.

Does anybody have experience using check_ntp_peer and can recommend
apropriate jitter margins for, say level 3 to 5 time servers?

Thanks,

Regards,

Christoph

check_ntp_peer v1.4.16 (nagios-plugins 1.4.16)
Copyright (c) 2006 Sean Finney
Copyright (c) 2006-2008 Nagios Plugin Development Team
        <[email protected]>

This plugin checks the selected ntp server


Usage:
 check_ntp_peer -H <host> [-w <warn>] [-c <crit>] [-W <warn>] [-C <crit>]
       [-j <warn>] [-k <crit>] [-v verbose]

Options:
 -h, --help
    Print detailed help screen
 -V, --version
    Print version information
 -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 or WARNING if server isn't synchronized
 -w, --warning=THRESHOLD
    Offset to result in warning status (seconds)
 -c, --critical=THRESHOLD
    Offset to result in critical status (seconds)
 -W, --swarn=THRESHOLD
    Warning threshold for stratum
 -C, --scrit=THRESHOLD
    Critical threshold for stratum
 -j, --jwarn=THRESHOLD
    Warning threshold for jitter
 -k, --jcrit=THRESHOLD
    Critical threshold for jitter
 -m, --twarn=THRESHOLD
    Warning threshold for number of usable time sources ("truechimers")
 -n, --tcrit=THRESHOLD
    Critical threshold for number of usable time sources ("truechimers")
 -t, --timeout=INTEGER
    Seconds before connection times out (default: 10)
 -v, --verbose
    Show details for command-line debugging (Nagios may truncate output)

This plugin checks an NTP server independent of any commandline
programs or external libraries.

Notes:
 Use this plugin to check the health of an NTP server. It supports
 checking the offset with the sync peer, the jitter and stratum. This
 plugin will not check the clock offset between the local host and NTP
 server; please use check_ntp_time for that purpose.

 See:
 http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT
 for THRESHOLD format and examples.

Examples:
 Simple NTP server check:
  ./check_ntp_peer -H ntpserv -w 0.5 -c 1

 Check jitter too, avoiding critical notifications if jitter isn't available
 (See Notes above for more details on thresholds formats):
  ./check_ntp_peer -H ntpserv -w 0.5 -c 1 -j -1:100 -k -1:200

 Only check the number of usable time sources ("truechimers"):
  ./check_ntp_peer -H ntpserv -m :5 -n :3

 Check only stratum:
  ./check_ntp_peer -H ntpserv -W 4 -C 6

Send email to [email protected] if you have questions
regarding use of this software. To submit patches or suggest improvements,
send email to [email protected]

_______________________________________________
pool mailing list
[email protected]
http://lists.ntp.org/listinfo/pool

Reply via email to