projects
/
mirror
/
dsa-nagios.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2fbfd6
)
Do not print status in expire mode unless verbose is set
author
Peter Palfrader
<peter@palfrader.org>
Sun, 6 Jun 2010 10:38:22 +0000
(12:38 +0200)
committer
Peter Palfrader
<peter@palfrader.org>
Sun, 6 Jun 2010 10:38:22 +0000
(12:38 +0200)
dsa-nagios-checks/checks/dsa-check-backuppg
patch
|
blob
|
history
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: