Add nagios check baas2-restore-status

This commit is contained in:
Patrik Holmqvist 2025-02-12 08:17:18 +01:00
parent f171907ba7
commit cec2315b2d
Signed by: pahol
GPG key ID: 5D5B0D4E93F77273
3 changed files with 9 additions and 7 deletions

View file

@ -0,0 +1,2 @@
# check_baas2-restore-status
command[check_baas2-restore-status]=/usr/local/sbin/baas2-check-restore-status

View file

@ -71,6 +71,13 @@ class net::baas2_restoretest(
hour => '8',
ok_criteria => ['exit_status=0', 'max_age=48h'],
}
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']
}
}
if $node_type == 'backupnode' {

View file

@ -18,12 +18,5 @@ class net::nrpe {
'nrpe_check_var',
'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']
}
}
}