rut-prod-ops/global/overlay/etc/puppet/modules/rut/manifests/rut_mon.pp
2025-04-23 10:49:09 +02:00

19 lines
870 B
Puppet

class rut::rut_mon {
nagioscfg::service {'check_rut_pods':
host_name => ['internal-sto4-prod-k8sc-0.rut.sunet.se', 'internal-sto4-prod-k8sc-1.rut.sunet.se', 'internal-sto4-prod-k8sc-2.rut.sunet.se'],
check_command => 'check_nrpe!check_rut_pods',
description => 'Microk8s cluster health',
}
nagioscfg::service {'check_rut_postgres':
host_name => ['internal-sto4-prod-k8sc-0.rut.sunet.se', 'internal-sto4-prod-k8sc-1.rut.sunet.se', 'internal-sto4-prod-k8sc-2.rut.sunet.se'],
check_command => 'check_nrpe!check_rut_postgres',
description => 'Postgres cluster health',
}
nagioscfg::service {'check_rut_snapshots':
host_name => ['internal-sto4-prod-monitor-1.rut.sunet.se'],
check_command => 'check_nrpe!check_rut_snapshots',
description => 'Backup snapshots stored in sto4 (bad)',
}
}