rut-prod-ops/global/overlay/etc/puppet/modules/rut/manifests/controller_nrpe.pp

24 lines
754 B
ObjectPascal
Raw Normal View History

2025-04-07 09:38:56 +02:00
class rut::controller_nrpe {
sunet::nagios::nrpe_command {'check_rut_pods':
command_line => '/usr/lib/nagios/plugins/check_rut_pods.sh'
}
file { "/usr/lib/nagios/plugins/check_rut_pods.sh":
ensure => "file",
2025-04-07 10:02:47 +02:00
content => template("rut/check_rut_pods.sh.erb"),
2025-04-07 10:01:15 +02:00
mode => '0755',
2025-04-07 09:38:56 +02:00
}
2025-04-22 12:43:04 +02:00
sunet::nagios::nrpe_command {'check_rut_postgres':
command_line => '/usr/lib/nagios/plugins/check_rut_postgres.sh'
}
file { "/usr/lib/nagios/plugins/check_rut_postgres.sh":
ensure => "file",
content => template("rut/check_rut_postgres.sh.erb"),
mode => '0755',
}
2025-04-07 09:38:56 +02:00
user { 'nagios':
ensure => present,
groups => ['microk8s'],
membership => minimum,
}
}