X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=contrib%2Fredhat%2Fcollectd.spec;h=55f10225c1c64938392d7b0ff03a76440c0633c8;hb=e90816c2d4098474e562f0710415ef0c975ca0fe;hp=246fcb52cf811a6c2991a99fe2fe31082ef640ad;hpb=e4324858a82a0623b5069555b624f203660a25ed;p=collectd.git diff --git a/contrib/redhat/collectd.spec b/contrib/redhat/collectd.spec index 246fcb52..55f10225 100644 --- a/contrib/redhat/collectd.spec +++ b/contrib/redhat/collectd.spec @@ -53,6 +53,7 @@ %define with_ceph 0%{!?_without_ceph:1} %define with_cgroups 0%{!?_without_cgroups:1} %define with_chrony 0%{!?_without_chrony:1} +%define with_connectivity 0%{!?_without_connectivity:1} %define with_conntrack 0%{!?_without_conntrack:1} %define with_contextswitch 0%{!?_without_contextswitch:1} %define with_cpu 0%{!?_without_cpu:1} @@ -123,6 +124,7 @@ %define with_postgresql 0%{!?_without_postgresql:1} %define with_powerdns 0%{!?_without_powerdns:1} %define with_processes 0%{!?_without_processes:1} +%define with_procevent 0%{!?_without_procevent:1} %define with_protocols 0%{!?_without_protocols:1} %define with_python 0%{!?_without_python:1} %define with_redis 0%{!?_without_redis:1} @@ -136,6 +138,7 @@ %define with_statsd 0%{!?_without_statsd:1} %define with_swap 0%{!?_without_swap:1} %define with_synproxy 0%{!?_without_synproxy:0} +%define with_sysevent 0%{!?_without_sysevent:1} %define with_syslog 0%{!?_without_syslog:1} %define with_table 0%{!?_without_table:1} %define with_tail 0%{!?_without_tail:1} @@ -246,13 +249,16 @@ # Plugins not buildable on RHEL < 7 %if 0%{?rhel} && 0%{?rhel} < 7 +%define with_connectivity 0 %define with_cpusleep 0 %define with_gps 0 %define with_mqtt 0 %define with_ovs_events 0 %define with_ovs_stats 0 +%define with_procevent 0 %define with_redis 0 %define with_rrdcached 0 +%define with_sysevent 0 %define with_write_redis 0 %define with_write_riemann 0 %define with_xmms 0 @@ -380,6 +386,16 @@ Requires: %{name}%{?_isa} = %{version}-%{release} Chrony plugin for collectd %endif +%if %{with_connectivity} +%package connectivity +Summary: Connectivity plugin for collectd +Group: System Environment/Daemons +Requires: %{name}%{?_isa} = %{version}-%{release} +BuildRequires: libmnl-devel, yajl-devel +%description connectivity +Monitors network interface up/down status via netlink library. +%endif + %if %{with_curl} %package curl Summary: Curl plugin for collectd @@ -792,6 +808,16 @@ The PostgreSQL plugin connects to and executes SQL statements on a PostgreSQL database. %endif +%if %{with_procevent} +%package procevent +Summary: Processes event plugin for collectd +Group: System Environment/Daemons +Requires: %{name}%{?_isa} = %{version}-%{release} +BuildRequires: yajl-devel +%description procevent +Monitors process starts/stops via netlink library. +%endif + %if %{with_python} %package python Summary: Python plugin for collectd @@ -891,6 +917,16 @@ BuildRequires: net-snmp-devel This plugin for collectd to support AgentX integration. %endif +%if %{with_sysevent} +%package sysevent +Summary: Rsyslog event plugin for collectd +Group: System Environment/Daemons +Requires: %{name}%{?_isa} = %{version}-%{release} +BuildRequires: yajl-devel +%description sysevent +Monitors rsyslog for system events. +%endif + %if %{with_varnish} %package varnish Summary: Varnish plugin for collectd @@ -1136,6 +1172,12 @@ Collectd utilities %define _with_chrony --disable-chrony %endif +%if %{with_connectivity} +%define _with_connectivity --enable-connectivity +%else +%define _with_connectivity --disable-connectivity +%endif + %if %{with_conntrack} %define _with_conntrack --enable-conntrack %else @@ -1634,6 +1676,12 @@ Collectd utilities %define _with_processes --disable-processes %endif +%if %{with_procevent} +%define _with_procevent --enable-procevent +%else +%define _with_procevent --disable-procevent +%endif + %if %{with_protocols} %define _with_protocols --enable-protocols %else @@ -1729,6 +1777,12 @@ Collectd utilities %define _with_synproxy --disable-synproxy %endif +%if %{with_sysevent} +%define _with_sysevent --enable-sysevent +%else +%define _with_sysevent --disable-sysevent +%endif + %if %{with_syslog} %define _with_syslog --enable-syslog %else @@ -1992,6 +2046,7 @@ Collectd utilities %{?_with_ceph} \ %{?_with_cgroups} \ %{?_with_chrony} \ + %{?_with_connectivity} \ %{?_with_conntrack} \ %{?_with_contextswitch} \ %{?_with_cpufreq} \ @@ -2073,6 +2128,7 @@ Collectd utilities %{?_with_postgresql} \ %{?_with_powerdns} \ %{?_with_processes} \ + %{?_with_procevent} \ %{?_with_protocols} \ %{?_with_python} \ %{?_with_redis} \ @@ -2088,6 +2144,7 @@ Collectd utilities %{?_with_statsd} \ %{?_with_swap} \ %{?_with_synproxy} \ + %{?_with_sysevent} \ %{?_with_syslog} \ %{?_with_table} \ %{?_with_tail_csv} \ @@ -2539,6 +2596,11 @@ fi %{_libdir}/%{name}/chrony.so %endif +%if %{with_connectivity} +%files connectivity +%{_libdir}/%{name}/connectivity.so +%endif + %if %{with_curl} %files curl %{_libdir}/%{name}/curl.so @@ -2748,6 +2810,11 @@ fi %{_libdir}/%{name}/postgresql.so %endif +%if %{with_procevent} +%files procevent +%{_libdir}/%{name}/procevent.so +%endif + %if %{with_python} %files python %{_mandir}/man5/collectd-python* @@ -2795,6 +2862,11 @@ fi %{_libdir}/%{name}/snmp_agent.so %endif +%if %{with_sysevent} +%files sysevent +%{_libdir}/%{name}/sysevent.so +%endif + %if %{with_varnish} %files varnish %{_libdir}/%{name}/varnish.so