Random Project
Directory > NTP and Time> check_chrony_primary

Thank you for your review!

Your review has been submitted and is pending approval.

Description

Overview

check_chrony_primary.sh verifies that Chrony has selected a primary NTP source and that the selected source remains within administrator-defined offset and optional jitter thresholds.

Unlike tracking-based Chrony checks that evaluate overall synchronization state, this plugin specifically validates the currently selected primary source, making it useful in environments where compliance or operational requirements demand confirmation of active primary time-source selection.

Features
  • Verifies a primary Chrony source is selected (^*)
  • Checks offset against warning and critical thresholds
  • Optional 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_primary.sh -w 0.001 -c 0.002
  • check_chrony_primary.sh -w 0.001,0.010 -c 0.002,0.050
  • check_chrony_primary.sh -H ntpserver.example.com -w 0.001 -c 0.002


Project Details

Current Version

1.0.0

Last Release Date

2026-04-24

Owner

John Shorey

License

GPL

Compatible With

  • Nagios XI

Recommend

To:


From: