Icinga2 / Nagios check for Chrony NTP & PTP offset to reference
Switch branches/tags
Nothing to show
Clone or download
Decstasy Removed + prefix from offset perfdata
Due to icinga2 interpretation problems while value was positive.
Latest commit acf390d Dec 4, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Nov 22, 2018
LICENSE Initial commit Nov 22, 2018
README.md Added license information Nov 22, 2018
check_chrony Removed + prefix from offset perfdata Dec 4, 2018

README.md

check_chrony

Icinga2 / Nagios check for Chrony NTP & PTP offset to reference. Performance data is also included and no sudo privileges are needed for execution.

Example

user@server:~$ ./check_chrony -w 1 -c 3
OK: Time offset of +0.000056025 seconds to reference. | offset=+0.000056025s;1;3

-x Seconds: Your client is running x seconds slower than the reference.
+x Seconds: ... Guess ^^

Requirements

Perl min. version 5.10.1

Tested on

  • Ubuntu 16.04
  • Ubuntu 18.04
  • Debian 9

Parameters

  • -w [Warning threshold] : (required) in seconds (e.g. 2 or 0.4)
  • -c [Critical threshold] : (required) in seconds (e.g. 4 or 0.8)
  • -h : Help

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/