diff options
| author | alex <alex@pdp7.net> | 2023-05-15 21:03:58 +0200 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2023-05-15 21:03:58 +0200 |
| commit | 7be6707592b036544d0ad3c52d4ae56304bc059c (patch) | |
| tree | 26d67ded4fff56ae3b36911cfa886a12cc33c55e /personal_infra/puppet/site | |
| parent | 58b1f095a6a0cff0dfbf4b787950d89db3e836e7 (diff) | |
Add K8S monitoring
Diffstat (limited to 'personal_infra/puppet/site')
| -rw-r--r-- | personal_infra/puppet/site/nagios.h1.int.pdp7.net.pp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/personal_infra/puppet/site/nagios.h1.int.pdp7.net.pp b/personal_infra/puppet/site/nagios.h1.int.pdp7.net.pp index ddd0dabf..6db53e62 100644 --- a/personal_infra/puppet/site/nagios.h1.int.pdp7.net.pp +++ b/personal_infra/puppet/site/nagios.h1.int.pdp7.net.pp @@ -1,3 +1,16 @@ node 'nagios.h1.int.pdp7.net' { class {'nagios':} + class {'nagios::k8s':} + + $k8s_hosts = lookup("groups.k8s") + + $k8s_hosts.each |String $k8s_host| { + nagios_host {$k8s_host: + use => 'generic-host', + max_check_attempts => 5, + contact_groups => 'admins', + hostgroups => 'k8s', + check_command => 'check-host-alive', + } + } } |
