19 lines
857 B
Puppet
19 lines
857 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 in sto4',
|
|
}
|
|
}
|