From 62e84c5eebc839e990cb386d7d9b8ddee8fbbd95 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 25 Aug 2012 18:18:16 +0200 Subject: [PATCH] dsa-check-backuppg: Ignore .dotfiles in rootdir --- dsa-nagios-checks/checks/dsa-check-backuppg | 4 ++++ dsa-nagios-checks/debian/changelog | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dsa-nagios-checks/checks/dsa-check-backuppg b/dsa-nagios-checks/checks/dsa-check-backuppg index ccf9e3d..b7b05c8 100755 --- a/dsa-nagios-checks/checks/dsa-check-backuppg +++ b/dsa-nagios-checks/checks/dsa-check-backuppg @@ -138,6 +138,10 @@ config = load_conf(options.conffile) os.chdir(config['rootdir']) for dir in os.listdir('.'): + if dir.startswith('.'): + note_info('IGNORED', dir) + continue + if not os.path.isdir(dir): if min(os.path.getmtime(dir), os.path.getctime(dir)) + 3600*4 > time.time(): note_info('IGNORED', dir) diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index 7adfa64..74505bd 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -15,6 +15,7 @@ dsa-nagios-checks (9X) Xnstable; urgency=low * dsa-check-packages: Ignore :$arch in package names of dpkg -l output, at least for the "primary" arch. Does not really handle multi-arch packages, but it makes things work again for now. + * dsa-check-backuppg: Ignore .dotfiles in rootdir. [ Stephen Gran ] * dsa-check-udldap-freshness: check new last_update.trace if it @@ -24,7 +25,7 @@ dsa-nagios-checks (9X) Xnstable; urgency=low [ Uli Martens ] * dsa-check-soas: Add --no-soa-ns flag. - -- Stephen Gran Sun, 15 Jul 2012 17:32:57 +0100 + -- Peter Palfrader Sat, 25 Aug 2012 18:17:55 +0200 dsa-nagios-checks (92.1) unstable; urgency=low -- 2.20.1