Random Project
Directory > NTP and Time> check_chrony_tracking
NTP and Time

check_chrony_tracking

0 (0)
16
0
0

Thank you for your review!

Your review has been submitted and is pending approval.

Description

Overview

check_chrony_tracking.sh validates Chrony synchronization health using chronyc tracking. It verifies that the system clock is synchronized, that Chrony is tracking a valid time reference, and that the current system offset remains within administrator-defined thresholds.

Unlike peer-based checks, this plugin does not depend on which NTP source is currently selected. It relies on Chrony\’s authoritative view of synchronization state and clock correctness, making it the preferred check for overall time synchronization health.

Features

  • Verifies Chrony is synchronized
  • Validates synchronization state using chronyc tracking
  • Checks system offset against warning and critical thresholds
  • Optional RMS jitter threshold monitoring
  • Supports local and remote Chrony queries
  • Returns standard Nagios plugin status codes
  • Provides performance data for graphing
  • Lightweight Bash implementation

Example Commands

  • check_chrony_tracking.sh -w 0.001 -c 0.002
  • check_chrony_tracking.sh -w 0.001,0.010 -c 0.002,0.050
  • check_chrony_tracking.sh -H ntpserver.example.com -w 0.001 -c 0.002


Project Details

Recommend

To:


From: