Do not print status in expire mode unless verbose is set
[mirror/dsa-nagios.git] / dsa-nagios-checks / checks / dsa-check-backuppg
index 83f54ba..6f405e8 100755 (executable)
@@ -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: