]> xn--ix-yja.es Git - alex.git/commitdiff
Monitor idp internal cert
authoralex <alex@pdp7.net>
Mon, 29 Jan 2024 09:35:47 +0000 (10:35 +0100)
committeralex <alex@pdp7.net>
Mon, 29 Jan 2024 09:35:47 +0000 (10:35 +0100)
personal_infra/puppet/site/ipsilon.h1.int.pdp7.net.pp

index ccc824111d2056ecdbdbe1e1f620a06c57871336..40c05bd8dc0ab32f935c3cf2d83d7bffca5d40a4 100644 (file)
@@ -2,4 +2,27 @@ node 'ipsilon.h1.int.pdp7.net' {
   class {'ipsilon':
     session_timeout_minutes => 60*24*7,
   }
+
+  service {'nagios':}
+  package {'nagios':
+    ensure => absent,
+  }
+
+  nagios_service {'idp.pdp7.net-internal-cert':
+    use => 'generic-service',
+    service_description => 'idp.pdp7.net-internal-cert',
+    host_name => 'ipsilon.h1.int.pdp7.net',
+    check_command => 'check_idp.pdp7.net-internal-cert',
+    require => Package['nagios'],
+    notify => Service['nagios'],
+    owner => 'nagios',
+  }
+
+  nagios_command {'check_idp.pdp7.net-internal-cert':
+    command_name => 'check_idp.pdp7.net-internal-cert',
+    command_line => '/usr/lib64/nagios/plugins/check_http -H idp.pdp7.net -I ipsilon.h1.int.pdp7.net -C 10,5 -p 443',
+    require => Package['nagios'],
+    notify => Service['nagios'],
+    owner => 'nagios',
+  }
 }