From 8d062caf3edf41735287ec06ded20e77ab595d49735c608f869f9690372f8c6e Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Tue, 14 Sep 2021 19:17:07 +0000 Subject: [PATCH] Accepting request 917601 from home:matwey:branches:server:monitoring - add amqp plugin OBS-URL: https://build.opensuse.org/request/show/917601 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/collectd?expand=0&rev=174 --- collectd.changes | 5 +++++ collectd.spec | 25 ++++++++++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/collectd.changes b/collectd.changes index 4b8aa13..b7f7601 100644 --- a/collectd.changes +++ b/collectd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 8 14:08:46 UTC 2021 - Matwey Kornilov + +- add amqp plugin + ------------------------------------------------------------------- Wed Sep 1 11:14:56 UTC 2021 - Christian Vögl diff --git a/collectd.spec b/collectd.spec index 774fa2f..eeebc31 100644 --- a/collectd.spec +++ b/collectd.spec @@ -105,7 +105,6 @@ BuildRequires: pkgconfig(libsigrok) BuildRequires: pkgconfig(dbi) BuildRequires: pkgconfig(libatasmart) BuildRequires: pkgconfig(libcurl) -BuildRequires: pkgconfig(libevent) BuildRequires: pkgconfig(libiptc) BuildRequires: pkgconfig(libmemcached) BuildRequires: pkgconfig(libmicrohttpd) @@ -116,9 +115,13 @@ BuildRequires: pkgconfig(libmodbus) %if 0%{?is_opensuse} BuildRequires: pkgconfig(libmosquitto) %endif +BuildRequires: pkgconfig(libevent) BuildRequires: pkgconfig(libnotify) BuildRequires: pkgconfig(liboping) BuildRequires: pkgconfig(libpq) +%if 0%{?suse_version} > 1520 +BuildRequires: pkgconfig(librabbitmq) +%endif BuildRequires: pkgconfig(librrd) BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(libupsclient) @@ -184,6 +187,17 @@ a browser. Please look at %{_sysconfdir}/apache2/conf.d/%{name}-js.conf on how to enable. +%if 0%{?suse_version} > 1520 +%package plugin-amqp +Summary: AMQP Plugin for %{name} +Group: System/Monitoring +Requires: %{name} = %{version}-%{release} + +%description plugin-amqp +The AMQP plugin transmits or receives values collected by collectd via the +Advanced Message Queuing Protocol (AMQP). +%endif + %package plugin-notify-desktop Summary: Desktop Notification Plugin for %{name} Group: System/Monitoring @@ -479,6 +493,9 @@ Optional %{name} plugin to send values to InfluxDB using line protocol via udp Summary: All Monitoring Plugins for %{name} Group: System/Monitoring Requires: %{name} = %{version}-%{release} +%if 0%{?suse_version} > 1520 +Requires: %{name}-plugin-amqp = %{version}-%{release} +%endif Requires: %{name}-plugin-buddyinfo = %{version}-%{release} Requires: %{name}-plugin-connectivity = %{version}-%{release} Requires: %{name}-plugin-dbi = %{version}-%{release} @@ -773,6 +790,12 @@ ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} /srv/www/collectd-js %{_libexecdir}/collectd-js +%if 0%{?suse_version} > 1520 +%files plugin-amqp +%{_libdir}/collectd/amqp.so +%{_libdir}/collectd/amqp.la +%endif + %files plugin-notify-desktop %{_libdir}/collectd/notify_desktop.so %{_libdir}/collectd/notify_desktop.la