Skip to content

Icinga2 / Nagios check for Chrony NTP & PTP offset to reference

License

Notifications You must be signed in to change notification settings

0kaba0hub/check_chrony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Igor Rusyn
Dec 24, 2024
24169dc · Dec 24, 2024

History

2 Commits
Dec 24, 2024
Dec 24, 2024
Dec 24, 2024

Repository files navigation

check_chrony

Icinga2 / Nagios check for Chrony NTP & PTP offset to reference. Performance data is also included and no sudo privileges are required for execution. No additional languages like perl or python required. Written on bash

Example

# /usr/local/nagios/plugins/check_chrony -w 1 -c 3
OK: Time offset of +0.000046626 seconds to reference. |offset=0.000046626s;1.000000000;3.000000000

Requirements

Bash

Tested on

  • Debian 11 - 12
  • Ubuntu 22 - 24.04

Parameters

  • -w [Warning threshold] : (required) in seconds
  • -c [Critical threshold] : (required) in seconds
  • --debug : debug output

Notes

Full documentation will follow soon.

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed hoping that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/

About

Icinga2 / Nagios check for Chrony NTP & PTP offset to reference

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages