projects
/
mirror
/
dsa-nagios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
buxtehude has postgresql 11
[mirror/dsa-nagios.git]
/
dsa-nagios-checks
/
checks
/
dsa-check-backuppg
diff --git
a/dsa-nagios-checks/checks/dsa-check-backuppg
b/dsa-nagios-checks/checks/dsa-check-backuppg
index
b12479b
..
0784348
100755
(executable)
--- a/
dsa-nagios-checks/checks/dsa-check-backuppg
+++ b/
dsa-nagios-checks/checks/dsa-check-backuppg
@@
-102,10
+102,7
@@
def wal_pre(w, host, db):
(w1,w2) = w
if w2 == 0:
w1 -= 1
(w1,w2) = w
if w2 == 0:
w1 -= 1
- if (host,db) in ( ('moszumanska', 'main'), ):
- w2 = 0xFE
- else:
- w2 = 0xFF
+ w2 = 0xFF
else:
w2 -= 1
else:
w2 -= 1
@@
-162,7
+159,7
@@
config = load_conf(options.conffile)
os.chdir(config['rootdir'])
for dir in os.listdir('.'):
os.chdir(config['rootdir'])
for dir in os.listdir('.'):
- if dir.startswith('.') or dir.endswith('.old'):
+ if dir.startswith('.') or dir.endswith('.old')
or dir == 'lost+found'
:
note_info('IGNORED', dir)
continue
note_info('IGNORED', dir)
continue
@@
-348,6
+345,7
@@
for dir in os.listdir('.'):
global_expires.append(f)
for db in notyetseen_dbs:
global_expires.append(f)
for db in notyetseen_dbs:
+ if db.startswith('_'): continue
note_warning_db(dir, db, 'NO-BACKUP', 'no backups! (no .backup files found)')
#if not db in backup_state:
note_warning_db(dir, db, 'NO-BACKUP', 'no backups! (no .backup files found)')
#if not db in backup_state: