From d3097d5dfa3d4064693a971a5cece70d1006b18e Mon Sep 17 00:00:00 2001 From: Daniel Vrcic Date: Thu, 6 Jun 2024 12:20:25 +0200 Subject: [PATCH 1/3] list all changes in CHANGELOG for the release --- CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 423baab..119459b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [0.4.1] - 2024-06-06 + +### Changed + +* ARGO-4445 Increase cmd query size for publisher probe inspection + +### Added + +* ARGO-4524 ams-publisher Rocky 9 RPM + ## [0.4.0] - 2022-09-1 ### Changed From d8686ee603e3eb52f469e147eca7b17d0256dfa9 Mon Sep 17 00:00:00 2001 From: Daniel Vrcic Date: Thu, 6 Jun 2024 12:24:50 +0200 Subject: [PATCH 2/3] increase maxcmdlength --- pymod/stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pymod/stats.py b/pymod/stats.py index ff30d6e..a4d7aa5 100644 --- a/pymod/stats.py +++ b/pymod/stats.py @@ -11,7 +11,7 @@ from multiprocessing import Process from ams_publisher.shared import Shared -MAXCMDLENGTH = 128 +MAXCMDLENGTH = 1024 STATSOCK = '/run/ams-publisher/sock' @@ -30,7 +30,7 @@ def parse_result(query): shared = Shared() - maxcmdlength = 128 + maxcmdlength = 1024 query_consumed, query_published = '', '' for w in shared.workers: From 31a623773762095336ea9de9e537387b2008b946 Mon Sep 17 00:00:00 2001 From: Daniel Vrcic Date: Thu, 6 Jun 2024 12:29:40 +0200 Subject: [PATCH 3/3] refine README with basic Rocky 9 info --- README.md | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index e9b5ea4..53357ad 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,9 @@ Complete list of features are: ## Installation -Component is supported on CentOS 7. RPM packages and all needed dependencies are available in ARGO repositories so installation of component simply narrows down to installing a package: +Component is supported on CentOS 7 and Rocky 9 Linux. RPM packages and all needed dependencies are available in ARGO repositories so installation of component simply narrows down to installing a package: - yum install -y ams-publisher + dnf install -y ams-publisher Component relies on: - `argo-ams-library` - interaction with ARGO Messaging @@ -42,14 +42,13 @@ Component relies on: | File Types | Destination | |-------------------|----------------------------------------------------| -| Configuration | `/etc/ams-publisher/ams-publisher.conf`| +| Configuration | `/etc/ams-publisher/ams-publisher.conf` | | Daemon component | `/usr/bin/ams-publisherd` | | Cache delivery | `/usr/bin/ams-alarm-to-queue, ams-metric-to-queue` | -| Init script (C6) | `/etc/init.d/ams-publisher` | -| SystemD Unit (C7) | `/usr/lib/systemd/system/ams-publisher.service` | -| Local caches | `/var/spool/ams-publisher/` | -| Inspection socket | `/var/run/ams-publisher/sock` | -| Log files | `/var/log/ams-publisher/` | +| SystemD Unit (R9) | `/usr/lib/systemd/system/ams-publisher.service` | +| Local caches | `/var/spool/ams-publisher/` | +| Inspection socket | `/run/ams-publisher/sock` | +| Log files | `/var/log/ams-publisher/` | ## Configuration @@ -120,12 +119,7 @@ SleepRetry = 300 Components needs to be properly configured before starting it. At least one worker must be spawned so at least one directory queue needs to exist, Nagios should deliver results to it and publisher part of the worker needs to be associated to it. Afterward, it's just a matter of starting the service. -CentOS 6: -``` -/etc/init.d/ams-publisher start -``` - -CentOS 7: +CentOS 7 and Rocky 9: ``` systemctl start ams-publisher.service ```