projects
/
mirror
/
dsa-nagios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
port dsa-check-memory to python3
[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
0784348
..
ce6a9a0
100755
(executable)
--- a/
dsa-nagios-checks/checks/dsa-check-backuppg
+++ b/
dsa-nagios-checks/checks/dsa-check-backuppg
@@
-1,4
+1,4
@@
-#!/usr/bin/python
+#!/usr/bin/python
3
# Copyright 2010 Peter Palfrader
#
# Copyright 2010 Peter Palfrader
#
@@
-361,21
+361,21
@@
for dir in os.listdir('.'):
for p in problems_seq:
for p in problems_seq:
- print
p
+ print
(p)
if options.verbose:
for p in notices_seq:
if options.verbose:
for p in notices_seq:
- print
p
+ print
(p)
if options.expire:
for f in global_expires:
if options.expire:
for f in global_expires:
- if options.verbose: print
"Expiring %s"%(
f)
+ if options.verbose: print
("Expiring %s" %
f)
if not options.dry_run: os.unlink(f)
if len(problems_seq) > 0:
sys.exit(1)
if not options.expire or options.verbose:
if not options.dry_run: os.unlink(f)
if len(problems_seq) > 0:
sys.exit(1)
if not options.expire or options.verbose:
- print
"OK: no problems detected"
+ print
("OK: no problems detected")
sys.exit(0)
# vim:set et:
sys.exit(0)
# vim:set et: