From 37655d2e3b008235d0e0008096dc2899cd3f9a7f Mon Sep 17 00:00:00 2001 From: Billy Olsen Date: Fri, 20 Aug 2021 01:29:08 -0700 Subject: [PATCH] Update git submodules * Update charm-rabbitmq-server from branch 'master' to fd8d018babb16de3ea54f9c99bdd4a9c572695ea - Move cron max file age calculation to rabbit_utils The check_rabbitmq_queues nrpe check accesses the cron file created for running collect stats job. This is done in order to determine if the stats are too old and an alert should be raised. The nagios user does not have access to read the cron job when running in a hardened environment where /etc/cron.d is not readable. This change refactors this logic to move the calculation of maximum age for a stats file from the check_rabbitmq_queues script and into the rabbit_utils code where it is generating the nrpe configuration. A new (optional) parameter is added to the check_rabbitmq_queues script to accept the maximum age in seconds a file can last be modified. This change also removes the trusty support in hooks/install and hooks/upgrade-charm as the rabbit_utils.py file needs to import a dependency which is installed by the scripts. It is cleaned up to make sure the croniter package is always installed on install or upgrade. Change-Id: If948fc921ee0b63682946c7cc879ac50e971e588 Closes-Bug: #1940495 Co-authored-by: Aurelien Lourot --- charm-rabbitmq-server | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charm-rabbitmq-server b/charm-rabbitmq-server index 8948fe7a49..fd8d018bab 160000 --- a/charm-rabbitmq-server +++ b/charm-rabbitmq-server @@ -1 +1 @@ -Subproject commit 8948fe7a4941450f95a1bd31eb4f262a6525ce7a +Subproject commit fd8d018babb16de3ea54f9c99bdd4a9c572695ea