From 56887ecc2721f52ffe8c35aca5827773440e17e5 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 14 Nov 2017 10:20:21 +0100 Subject: [PATCH] dsa-check-backuppg: Do not print info level items (IGNORED, etc.) without -v --- dsa-nagios-checks/checks/dsa-check-backuppg | 5 +++-- dsa-nagios-checks/debian/changelog | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dsa-nagios-checks/checks/dsa-check-backuppg b/dsa-nagios-checks/checks/dsa-check-backuppg index ca6c159..ddef856 100755 --- a/dsa-nagios-checks/checks/dsa-check-backuppg +++ b/dsa-nagios-checks/checks/dsa-check-backuppg @@ -345,8 +345,9 @@ for dir in os.listdir('.'): for p in problems_seq: print p -for p in notices_seq: - print p +if options.verbose: + for p in notices_seq: + print p if options.expire: for f in global_expires: diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index 664c713..c7c3861 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -5,6 +5,8 @@ dsa-nagios-checks (111) UNRELEASED; urgency=medium * dsa-check-dnssec-delegation: Net::DNS::RR::DNSKEY no longer has an is_sep() method. Update. * dsa-update-unowned-file-status: ignore autofs and nfs4 + * dsa-check-backuppg: Do not print info level items (IGNORED, etc.) + without -v. [ Julien Cristau ] * Set LWP::UserAgent timeout in dsa-check-mirrorsync -- 2.20.1