From 30fa8ff455652ea1e23b95db73f08a5a65a5d52d Mon Sep 17 00:00:00 2001 From: Patrik Holmqvist Date: Fri, 17 Jan 2025 15:08:11 +0100 Subject: [PATCH] Add custom check for baas2 restore --- global/overlay/etc/puppet/modules/net/manifests/nrpe.pp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/global/overlay/etc/puppet/modules/net/manifests/nrpe.pp b/global/overlay/etc/puppet/modules/net/manifests/nrpe.pp index 31720be..765ac7d 100644 --- a/global/overlay/etc/puppet/modules/net/manifests/nrpe.pp +++ b/global/overlay/etc/puppet/modules/net/manifests/nrpe.pp @@ -19,4 +19,10 @@ class net::nrpe { 'nrpe_check_zombie_procs', ] } + nagioscfg::service {'check_baas2-restore-status': + host_name => ['baas2-restoretest-prod-1.sunet.se'], + check_command => "check_command => 'check_nrpe_1arg!check_baas2-restore-status',", + description => 'Validates that baas2 restores are working as intended', + contact_groups => ['alerts'] + } }