X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-checks%2Fchecks%2Fdsa-check-backuppg;h=e7cfd1a386280aeb88eff3d39bc01b54e4e90d94;hb=da18908986869dded7853ac0d1ab28c350e0d849;hp=0ce4d9501e67a8a78a8637fb62fb17d22e8fd8a6;hpb=32ae2957d29a34049726edb63b3ef2c659a818bb;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-checks/checks/dsa-check-backuppg b/dsa-nagios-checks/checks/dsa-check-backuppg index 0ce4d95..e7cfd1a 100755 --- a/dsa-nagios-checks/checks/dsa-check-backuppg +++ b/dsa-nagios-checks/checks/dsa-check-backuppg @@ -219,8 +219,11 @@ for dir in os.listdir('.'): basefn = '%s.BASE.%s-%s.tar.gz'%(db, info['label'], info['start wal location'].split(' ',2)[0].replace('/', '_')) baseffn = os.path.join(dir, basefn) if not basefn in files: - note_warning_db(dir, db, 'MISSING-BASE', basefn) - continue + basefn = '%s.BASE.%s.tar.gz'%(db, info['label']) + baseffn = os.path.join(dir, basefn) + if not basefn in files: + note_warning_db(dir, db, 'MISSING-BASE', basefn) + continue files.remove(basefn) if backup_state[db]['can_expire_next']: backup_state[db]['expires'].append(baseffn)