]> xn--ix-yja.es Git - alex.git/commitdiff
Monitor alex.corcoles.net Gemini cert
authoralex <alex@pdp7.net>
Sat, 27 Jan 2024 09:53:14 +0000 (10:53 +0100)
committeralex <alex@pdp7.net>
Sat, 27 Jan 2024 09:53:44 +0000 (10:53 +0100)
personal_infra/puppet/site/nagios.h1.int.pdp7.net.pp

index 4010d3c44d485274ef3e1bdf730452937dbcd0a1..f6d5f69337eda2c30bb3dfc7b84f06a3734e3f5b 100644 (file)
@@ -16,6 +16,24 @@ node 'nagios.h1.int.pdp7.net' {
     }
   }
 
+  nagios_service {'alex.corcoles.net-gemini-cert':
+    use => 'generic-service',
+    service_description => 'alex.corcoles.net-gemini-cert',
+    host_name => 'k8s-prod.h1.int.pdp7.net',
+    check_command => 'check_alex.corcoles.net-gemini-cert',
+    require => Package['nagios'],
+    notify => Service['nagios'],
+    owner => 'nagios',
+  }
+
+  nagios_command {'check_alex.corcoles.net-gemini-cert':
+    command_name => 'check_alex.corcoles.net-gemini-cert',
+    command_line => '/usr/lib64/nagios/plugins/check_http -H alex.corcoles.net -C 10,5 -p 1965',
+    require => Package['nagios'],
+    notify => Service['nagios'],
+    owner => 'nagios',
+  }
+
   package {'nagios-plugins-pgsql':}
 
   class {'otel':