projects
/
mirror
/
dsa-nagios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Do not print status in expire mode unless verbose is set
[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
83f54ba
..
6f405e8
100755
(executable)
--- a/
dsa-nagios-checks/checks/dsa-check-backuppg
+++ b/
dsa-nagios-checks/checks/dsa-check-backuppg
@@
-311,7
+311,8
@@
if options.expire:
if len(problems_seq) > 0:
sys.exit(1)
-print "OK: no problems detected"
+if not options.expire or options.verbose:
+ print "OK: no problems detected"
sys.exit(0)
# vim:set et: