Compare commits

..

No commits in common. "583a5ca5945cad7d461f3f89cd965892ce3fcabf" and "5acfd4e657970450db17cccb4b2ccd778483f2f0" have entirely different histories.

3 changed files with 2 additions and 6 deletions

View file

@ -38,7 +38,7 @@ try:
last_snap = sorted(snaps)[-1]
delta = NOW - last_snap
print('Last backup was on {} UTC'.format(
print('Last backup was on {}'.format(
datetime.fromtimestamp(last_snap).strftime('%Y-%m-%d %H:%M:%S'),
))

View file

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

View file

@ -35,7 +35,6 @@ nodes['htz-hel.backup-kunsi'] = {
'clients': {
'kunsi-t470': {
'user': 'kunsi-t470',
'exclude_from_monitoring': True,
'retain': {
'daily': 30,
'weekly': 6,