bundles/backup-server: add option to disable "last backup" check
This commit is contained in:
parent
c535ce24a4
commit
b20e729298
1 changed files with 4 additions and 1 deletions
|
@ -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}',
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue