/usr/share/check_mk/checks-man/ntp is in check-mk-server 1.2.2p3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | title: Check state of NTP peers
agents: linux
author: Mathias Kettner <mk@mathias-kettner.de>
license: GPL
distribution: check_mk
description:
This check uses the output of {ntpq -p} as sent by the agent. It is
a list of all NTP peers with their state, stratum, offset and jitter.
The check gets critical if the time offset exceeds a configurable level,
if the stratum is too high or on othe error conditions. It gets UNKNOWN
if the peer is unreachable or has not answered for a long time.
Note: This check creates one individual service for each peer. It is useful
for monitoring the health of the peers. If you want to monitor only the
time of the NTP client, you might rather use {ntp.time}.
item:
The name or IP address of the peer (first column in output of {ntpq -p}.
examples:
# Set critical stratum to 3, global warning/critical levels to 5.0 and 10.0 ms
ntp_default_levels = (3, 5.0, 10.0)
perfdata:
Two variables: the time {offset} to the peer in milliseconds and the
{jitter} in ms.
inventory:
Checks are created for all peers which have been contacted at least once,
if {ntp_inventory_mode} is set to {"detailed"} or {"both"}. In case
of {"summary"} a check of type {ntp.time} is being created.
[parameters]
critical_stratum (int): The stratum at which the check gets critical
warning (float): The offset in ms at which a warning is triggered
critical (float): the critical offset in ms
[configuration]
ntp_default_levels (int, float, float): The global default levels for all checks
of this type. This is preset to {(10, 200.0, 500.0)} (which means that the check
gets critical if the stratum is {10} or higher, warning if time offset is more than
200ms or critical if the time offset is more than 500ms).
ntp_inventory_mode (string): This variable controls which kind of NTP checks
are created. A check of this type ({ntp}) is only created, if this variable is
set to {"detailed"} or {"both"}. Default is {"summary"}.
|