]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Put longer time for ntp checks
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 26 Jul 2018 10:26:36 +0000 (12:26 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 26 Jul 2018 10:29:52 +0000 (12:29 +0200)
modules/profile/manifests/monitoring/commands.pp
modules/profile/manifests/monitoring/params.pp
modules/profile/manifests/monitoring/services.pp

index 7c5d8ed7a3e24be70e4a0cbe288b930731f6f6c8..fddff66543c532ea875eebe13c09596db4d7c442 100644 (file)
@@ -46,7 +46,7 @@ class profile::monitoring::commands inherits profile::monitoring {
     "check_local_swap":
       command_line => '$USER1$/check_swap -n ok -w $ARG1$ -c $ARG2$';
     "check_ntp":
-      command_line => '$USER1$/check_ntp_time -H 0.arch.pool.ntp.org';
+      command_line => '$USER1$/check_ntp_time -t 30 -q -H 0.arch.pool.ntp.org';
     "check_md_raid":
       command_line => '$USER2$/check_md_raid',
       require      => File["$plugins/check_md_raid"];
index 285393ca5c58a14aa4d7ac14c87c253c4f0abd30..fa8dc5e37dcd7847154a80851b24d684a3479109 100644 (file)
@@ -40,10 +40,10 @@ class profile::monitoring::params {
     })
 
   $service_local_for_master = {
-    host_name       => $service_local["host_name"],
-    check_interval  => $service_local["check_interval"],
-    retry_interval  => $service_local["retry_interval"],
-    check_freshness => Integer(Integer($service_local["check_interval"]) * 1.5),
-    use             => $service_types["passive"],
+    host_name           => $service_local["host_name"],
+    check_interval      => $service_local["check_interval"],
+    retry_interval      => $service_local["retry_interval"],
+    freshness_threshold => Integer(60 * Integer($service_local["check_interval"]) * 1.5),
+    use                 => $service_types["passive"],
   }
 }
index 0ecc135ebbab8b31418545667fbc78fe96c7fd02..5ff3c6dcb358215d3c367ed513f423535d212535 100644 (file)
@@ -35,8 +35,13 @@ class profile::monitoring::services {
         check_command => "check_command_output!fail2ban-client ping!pong!-r root",
       };
     "NTP is activated and working":
-      local => {
-        check_command => "check_ntp",
+      master => {
+        check_interval      => "60",
+        freshness_threshold => Integer(60*60*1.5),
+      },
+      local  => {
+        check_command  => "check_ntp",
+        check_interval => "60"
       };
     "No mdadm array is degraded":
       common => {