]> xn--ix-yja.es Git - alex.git/commitdiff
Fix ac plug IP and monitor
authoralex <alex@pdp7.net>
Sat, 20 Jul 2024 19:30:32 +0000 (21:30 +0200)
committeralexpdp7 <alex@corcoles.net>
Sat, 20 Jul 2024 19:31:50 +0000 (21:31 +0200)
personal_infra/puppet/site/maelcum.mad.int.pdp7.net.pp
personal_infra/puppet/site/nagios.h1.int.pdp7.net.pp

index 064af4d4f03f0ca9dae4d2ea846cee7218c42563..238725373cd9d00d9ee2374c5908e228d12475e3 100644 (file)
@@ -3,6 +3,7 @@ node 'maelcum.mad.int.pdp7.net' {
   file {'/etc/dnsmasq.d/static.conf':
     content => 'host-record=router,router.mad.int.pdp7.net,10.34.10.1
 dhcp-host=d8:8c:79:1a:11:59,chromecast,10.34.10.3
+dhcp-host=10:d5:61:d2:5c:24,ac,10.34.10.4
 host-record=maelcum.mad.int.pdp7.net,maelcum,10.34.10.2
 ',
     notify => Service['dnsmasq'],
index f6d5f69337eda2c30bb3dfc7b84f06a3734e3f5b..1889e1f2960e14935ebec03ef30e0700db012fb0 100644 (file)
@@ -16,6 +16,14 @@ node 'nagios.h1.int.pdp7.net' {
     }
   }
 
+  nagios_host {"ac.mad.int.pdp7.net":
+    use => 'generic-host',
+    max_check_attempts => 5,
+    contact_groups => 'admins',
+    hostgroups => 'k8s',
+    check_command => 'check-host-alive',
+  }
+
   nagios_service {'alex.corcoles.net-gemini-cert':
     use => 'generic-service',
     service_description => 'alex.corcoles.net-gemini-cert',