From 0ca06f7f32e183e23efc5e2dab5475b150c1506b Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Fri, 22 May 2026 19:29:08 +0200 Subject: [PATCH] add check_ntp_time --- defaults/main.yml | 4 ++++ templates/nrpe.j2 | 1 + 2 files changed, 5 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index c2a22a1..6b47ce1 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -63,3 +63,7 @@ nrpe_uptime_critical: 30 nrpe_ssl_path: '/etc/haproxy/ssl' nrpe_ssl_warning: 21 nrpe_ssl_critical: 14 + +nrpe_ntp_host: 'europe.pool.ntp.org' +nrpe_ntp_warning: 10 +nrpe_ntp_critical: 15 diff --git a/templates/nrpe.j2 b/templates/nrpe.j2 index d2a8a9f..37e67ad 100644 --- a/templates/nrpe.j2 +++ b/templates/nrpe.j2 @@ -21,6 +21,7 @@ command[check_proc_age_{{ process }}]=/usr/lib/nagios/plugins/check_proc_age -p command[check_systemd_failed]=/usr/lib/nagios/plugins/check_systemd_failed command[check_needrestart]=/usr/lib/nagios/plugins/check_needrestart command[check_reboot_required]=/usr/lib/nagios/plugins/check_reboot_required +command[check_ntp_time]=/usr/lib/nagios/plugins/check_ntp_time -H {{ nrpe_ntp_host }} -w {{ nrpe_ntp_warning }} -c {{ nrpe_ntp_critical }} # disk # -w <%>: Warning threshold for block usage.