bundles/backup-server: add option to disable "last backup" check

This commit is contained in:
Franzi 2022-01-05 22:56:23 +01:00
parent c535ce24a4
commit b20e729298
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -138,7 +138,10 @@ def zfs_datasets_and_snapshots(metadata):
def monitoring(metadata):
services = {}
for client in metadata.get('backup-server/clients', {}).keys():
for client, config in metadata.get('backup-server/clients', {}).items():
if config.get('exclude_from_monitoring', False):
continue
services[f'BACKUPS FOR NODE {client}'] = {
'command_on_monitored_host': f'sudo /usr/local/share/icinga/plugins/check_backup_for_node {client}',
}