From gitlab at salsa.debian.org Mon May 6 15:35:31 2024 From: gitlab at salsa.debian.org (Jan Wagner (@waja)) Date: Mon, 06 May 2024 14:35:31 +0000 Subject: [pkg-nagios-changes] [Git][nagios-team/nagios-plugins-contrib][master] check_libs_ng: catch FileNotFoundErrors when trying to read the map files Message-ID: <6638eab360567_5785b6448046e8@godard.mail> Jan Wagner pushed to branch master at Debian Nagios Maintainer Group / nagios-plugins-contrib Commits: 8a9233bf by Evgeni Golov at 2024-04-30T13:50:46+02:00 check_libs_ng: catch FileNotFoundErrors when trying to read the map files Closes: #1070073 - - - - - 1 changed file: - check_libs_ng/check_libs_ng Changes: ===================================== check_libs_ng/check_libs_ng ===================================== @@ -56,20 +56,23 @@ def main(): for proc in glob('/proc/[0-9]*'): # numbers to avoid e.g. /proc/self exe = os.path.join(proc, 'exe') if os.path.exists(exe): - proc_pid = os.path.basename(proc) - proc_name = os.path.basename(os.path.realpath(exe)) - logger.debug('checking process %s', proc_name) - os.chdir(os.path.join(proc, 'map_files')) - for map_file in os.listdir('.'): - # all files in /map_files/ are absolute symlinks, so we don't need abspath() - real_map_file_path = os.path.realpath(map_file) - if not '/lib/' in real_map_file_path: - logger.debug('skipping non-lib path %s', real_map_file_path) - continue - else: - logger.debug('checking lib %s', real_map_file_path) - if os.stat(map_file).st_nlink == 0: - needs_reload.setdefault(proc_name, set()).add(proc_pid) + try: + proc_pid = os.path.basename(proc) + proc_name = os.path.basename(os.path.realpath(exe)) + logger.debug('checking process %s', proc_name) + os.chdir(os.path.join(proc, 'map_files')) + for map_file in os.listdir('.'): + # all files in /map_files/ are absolute symlinks, so we don't need abspath() + real_map_file_path = os.path.realpath(map_file) + if not '/lib/' in real_map_file_path: + logger.debug('skipping non-lib path %s', real_map_file_path) + continue + else: + logger.debug('checking lib %s', real_map_file_path) + if os.stat(map_file).st_nlink == 0: + needs_reload.setdefault(proc_name, set()).add(proc_pid) + except FileNotFoundError: + pass else: logger.debug('skipping kernel process %s', os.path.basename(proc)) View it on GitLab: https://salsa.debian.org/nagios-team/nagios-plugins-contrib/-/commit/8a9233bff1aca03cc0bd507a34fcb08170f0260f -- View it on GitLab: https://salsa.debian.org/nagios-team/nagios-plugins-contrib/-/commit/8a9233bff1aca03cc0bd507a34fcb08170f0260f You're receiving this email because of your account on salsa.debian.org. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gitlab at salsa.debian.org Fri May 17 05:03:42 2024 From: gitlab at salsa.debian.org (Bas Couwenberg (@sebastic)) Date: Fri, 17 May 2024 04:03:42 +0000 Subject: [pkg-nagios-changes] [Git][nagios-team/centreon-plugins][debian/master] Update watch file to also match new tag format. Message-ID: <6646d71e3179b_3db70e5c79c160842@godard.mail> Bas Couwenberg pushed to branch debian/master at Debian Nagios Maintainer Group / centreon-plugins Commits: 4e84ccfb by Bas Couwenberg at 2024-05-17T06:03:17+02:00 Update watch file to also match new tag format. - - - - - 2 changed files: - debian/changelog - debian/watch Changes: ===================================== debian/changelog ===================================== @@ -2,6 +2,7 @@ centreon-plugins (0.0~20230118-2) UNRELEASED; urgency=medium * Team upload. * Use dh-sequence-sphinxdoc. + * Update watch file to also match new tag format. -- Bas Couwenberg Wed, 30 Aug 2023 15:47:58 +0200 ===================================== debian/watch ===================================== @@ -4,4 +4,4 @@ pgpmode=none,\ uversionmangle=s/^/0.0~/,\ filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%@PACKAGE at -$1.tar.gz% \ https://github.com/centreon/@PACKAGE@/tags \ -(?:.*?/)?v?(\d[\d.]*)\.tar\.gz +(?:.*?/)?(?:v|plugins\-?)?(\d[\d.]*)\.tar\.gz View it on GitLab: https://salsa.debian.org/nagios-team/centreon-plugins/-/commit/4e84ccfb155a282822fba8e3a347bd8463bb8e7f -- View it on GitLab: https://salsa.debian.org/nagios-team/centreon-plugins/-/commit/4e84ccfb155a282822fba8e3a347bd8463bb8e7f You're receiving this email because of your account on salsa.debian.org. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastic at xs4all.nl Fri May 17 05:04:48 2024 From: sebastic at xs4all.nl (Sebastiaan Couwenberg) Date: Fri, 17 May 2024 06:04:48 +0200 Subject: [pkg-nagios-changes] [Git][nagios-team/centreon-plugins][debian/master] Update watch file to also match new tag format. In-Reply-To: <6646d71e3179b_3db70e5c79c160842@godard.mail> References: <6646d71e3179b_3db70e5c79c160842@godard.mail> Message-ID: On 5/17/24 6:03 AM, Bas Couwenberg (@sebastic) wrote: > Commits: > 4e84ccfb by Bas Couwenberg at 2024-05-17T06:03:17+02:00 > Update watch file to also match new tag format. There are quite a few new upstream releases now found by uscan. Kind Regards, Bas -- GPG Key ID: 4096R/6750F10AE88D4AF1 Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1 From lyknode at debian.org Sun May 19 09:48:35 2024 From: lyknode at debian.org (Baptiste Beauplat) Date: Sun, 19 May 2024 10:48:35 +0200 Subject: [pkg-nagios-changes] [Git][nagios-team/centreon-plugins][debian/master] Update watch file to also match new tag format. In-Reply-To: References: <6646d71e3179b_3db70e5c79c160842@godard.mail> Message-ID: Hi Sebastiaan, On Fri, 2024-05-17 at 06:04 +0200, Sebastiaan Couwenberg wrote: > On 5/17/24 6:03 AM, Bas Couwenberg (@sebastic) wrote: > > Commits: > > 4e84ccfb by Bas Couwenberg at 2024-05-17T06:03:17+02:00 > > Update watch file to also match new tag format. > > There are quite a few new upstream releases now found by uscan. Thanks for the fix and the heads up. I was completely oblivious to that change. I guess I have some updating to do. -- Baptiste Beauplat -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 228 bytes Desc: This is a digitally signed message part URL: