Add write_syslog output plugin
[collectd.git] / contrib / redhat / collectd.spec
1 #
2 # q: What is this ?
3 # a: A specfile for building RPM packages of current collectd releases, for
4 #    RHEL/CentOS versions 5, 6 and 7. By default all the plugins which are
5 #    buildable based on the libraries available in the distribution + the
6 #    EPEL repository, will be built. Plugins depending on external libs will
7 #    be packaged in separate RPMs.
8 #
9 # q: And how can I do that ?
10 # a: By following these instructions, using mock:
11 #
12 # - install and configure mock (https://fedoraproject.org/wiki/Projects/Mock)
13 #
14 # - enable the EPEL repository (http://dl.fedoraproject.org/pub/epel/) in the
15 #   configuration files for your target systems (/etc/mock/*.cfg).
16 #
17 # - fetch the desired collectd release file from https://collectd.org/files/
18 #   and save it in your ~/rpmbuild/SOURCES/ directory (or build your own out of
19 #   the git repository: ./build.sh && ./configure && make dist)
20 #
21 # - copy this file in your ~/rpmbuild/SPECS/ directory. Make sure the
22 #   "Version:" tag matches the version from the tarball.
23 #
24 # - build the SRPM first:
25 #   mock -r centos-6-x86_64 --buildsrpm --spec ~/rpmbuild/SPECS/collectd.spec \
26 #     --sources ~/rpmbuild/SOURCES/
27 #
28 # - then build the RPMs:
29 #   mock -r centos-6-x86_64 --no-clean --rebuild \
30 #     /var/lib/mock/centos-6-x86_64/result/collectd-X.Y.Z-NN.src.rpm
31 #
32 # - you can also optionally enable/disable plugins which are disabled/enabled
33 #   by default:
34 #   mock -r centos-6-x86_64 --no-clean --without=java --with=oracle --rebuild \
35 #     /var/lib/mock/centos-6-x86_64/result/collectd-X.Y.Z-NN.src.rpm
36 #
37
38 %global _hardened_build 1
39 %{?perl_default_filter}
40
41 # disable collectd debug by default
42 %bcond_with debug
43
44 # plugins enabled by default
45 %define with_aggregation 0%{!?_without_aggregation:1}
46 %define with_amqp 0%{!?_without_amqp:1}
47 %define with_amqp1 0%{!?_without_amqp1:1}
48 %define with_apache 0%{!?_without_apache:1}
49 %define with_apcups 0%{!?_without_apcups:1}
50 %define with_ascent 0%{!?_without_ascent:1}
51 %define with_battery 0%{!?_without_battery:1}
52 %define with_bind 0%{!?_without_bind:1}
53 %define with_ceph 0%{!?_without_ceph:1}
54 %define with_cgroups 0%{!?_without_cgroups:1}
55 %define with_chrony 0%{!?_without_chrony:1}
56 %define with_conntrack 0%{!?_without_conntrack:1}
57 %define with_contextswitch 0%{!?_without_contextswitch:1}
58 %define with_cpu 0%{!?_without_cpu:1}
59 %define with_cpufreq 0%{!?_without_cpufreq:1}
60 %define with_cpusleep 0%{!?_without_cpusleep:1}
61 %define with_csv 0%{!?_without_csv:1}
62 %define with_curl 0%{!?_without_curl:1}
63 %define with_curl_json 0%{!?_without_curl_json:1}
64 %define with_curl_xml 0%{!?_without_curl_xml:1}
65 %define with_dbi 0%{!?_without_dbi:1}
66 %define with_df 0%{!?_without_df:1}
67 %define with_disk 0%{!?_without_disk:1}
68 %define with_dns 0%{!?_without_dns:1}
69 %define with_drbd 0%{!?_without_drbd:1}
70 %define with_email 0%{!?_without_email:1}
71 %define with_entropy 0%{!?_without_entropy:1}
72 %define with_ethstat 0%{!?_without_ethstat:1}
73 %define with_exec 0%{!?_without_exec:1}
74 %define with_fhcount 0%{!?_without_fhcount:1}
75 %define with_filecount 0%{!?_without_filecount:1}
76 %define with_fscache 0%{!?_without_fscache:1}
77 %define with_gmond 0%{!?_without_gmond:1}
78 %define with_gps 0%{!?_without_gps:1}
79 %define with_hddtemp 0%{!?_without_hddtemp:1}
80 %define with_hugepages 0%{!?_without_hugepages:1}
81 %define with_interface 0%{!?_without_interface:1}
82 %define with_ipc 0%{!?_without_ipc:1}
83 %define with_ipmi 0%{!?_without_ipmi:1}
84 %define with_iptables 0%{!?_without_iptables:1}
85 %define with_ipvs 0%{!?_without_ipvs:1}
86 %define with_irq 0%{!?_without_irq:1}
87 %define with_java 0%{!?_without_java:1}
88 %define with_load 0%{!?_without_load:1}
89 %define with_log_logstash 0%{!?_without_log_logstash:1}
90 %define with_logfile 0%{!?_without_logfile:1}
91 %define with_lua 0%{!?_without_lua:1}
92 %define with_lvm 0%{!?_without_lvm:1}
93 %define with_madwifi 0%{!?_without_madwifi:1}
94 %define with_mbmon 0%{!?_without_mbmon:1}
95 %define with_mcelog 0%{!?_without_mcelog:1}
96 %define with_md 0%{!?_without_md:1}
97 %define with_memcachec 0%{!?_without_memcachec:1}
98 %define with_memcached 0%{!?_without_memcached:1}
99 %define with_memory 0%{!?_without_memory:1}
100 %define with_modbus 0%{!?_without_modbus:1}
101 %define with_mqtt 0%{!?_without_mqtt:1}
102 %define with_multimeter 0%{!?_without_multimeter:1}
103 %define with_mysql 0%{!?_without_mysql:1}
104 %define with_netlink 0%{!?_without_netlink:1}
105 %define with_network 0%{!?_without_network:1}
106 %define with_nfs 0%{!?_without_nfs:1}
107 %define with_nginx 0%{!?_without_nginx:1}
108 %define with_notify_desktop 0%{!?_without_notify_desktop:1}
109 %define with_notify_email 0%{!?_without_notify_email:1}
110 %define with_notify_nagios 0%{!?_without_notify_nagios:1}
111 %define with_ntpd 0%{!?_without_ntpd:1}
112 %define with_numa 0%{!?_without_numa:1}
113 %define with_nut 0%{!?_without_nut:1}
114 %define with_olsrd 0%{!?_without_olsrd:1}
115 %define with_openldap 0%{!?_without_openldap:1}
116 %define with_openvpn 0%{!?_without_openvpn:1}
117 %define with_ovs_events 0%{!?_without_ovs_events:1}
118 %define with_ovs_stats 0%{!?_without_ovs_stats:1}
119 %define with_perl 0%{!?_without_perl:1}
120 %define with_pinba 0%{!?_without_pinba:1}
121 %define with_ping 0%{!?_without_ping:1}
122 %define with_postgresql 0%{!?_without_postgresql:1}
123 %define with_powerdns 0%{!?_without_powerdns:1}
124 %define with_processes 0%{!?_without_processes:1}
125 %define with_protocols 0%{!?_without_protocols:1}
126 %define with_python 0%{!?_without_python:1}
127 %define with_redis 0%{!?_without_redis:1}
128 %define with_rrdcached 0%{!?_without_rrdcached:1}
129 %define with_rrdtool 0%{!?_without_rrdtool:1}
130 %define with_sensors 0%{!?_without_sensors:1}
131 %define with_serial 0%{!?_without_serial:1}
132 %define with_smart 0%{!?_without_smart:1}
133 %define with_snmp 0%{!?_without_snmp:1}
134 %define with_snmp_agent 0%{!?_without_snmp_agent:1}
135 %define with_statsd 0%{!?_without_statsd:1}
136 %define with_swap 0%{!?_without_swap:1}
137 %define with_synproxy 0%{!?_without_synproxy:0}
138 %define with_syslog 0%{!?_without_syslog:1}
139 %define with_table 0%{!?_without_table:1}
140 %define with_tail 0%{!?_without_tail:1}
141 %define with_tail_csv 0%{!?_without_tail_csv:1}
142 %define with_tcpconns 0%{!?_without_tcpconns:1}
143 %define with_teamspeak2 0%{!?_without_teamspeak2:1}
144 %define with_ted 0%{!?_without_ted:1}
145 %define with_thermal 0%{!?_without_thermal:1}
146 %define with_threshold 0%{!?_without_threshold:1}
147 %define with_turbostat 0%{!?_without_turbostat:1}
148 %define with_unixsock 0%{!?_without_unixsock:1}
149 %define with_uptime 0%{!?_without_uptime:1}
150 %define with_users 0%{!?_without_users:1}
151 %define with_uuid 0%{!?_without_uuid:1}
152 %define with_varnish 0%{!?_without_varnish:1}
153 %define with_virt 0%{!?_without_virt:1}
154 %define with_vmem 0%{!?_without_vmem:1}
155 %define with_vserver 0%{!?_without_vserver:1}
156 %define with_wireless 0%{!?_without_wireless:1}
157 %define with_write_graphite 0%{!?_without_write_graphite:1}
158 %define with_write_http 0%{!?_without_write_http:1}
159 %define with_write_log 0%{!?_without_write_log:1}
160 %define with_write_prometheus 0%{!?_without_write_prometheus:1}
161 %define with_write_redis 0%{!?_without_write_redis:1}
162 %define with_write_riemann 0%{!?_without_write_riemann:1}
163 %define with_write_sensu 0%{!?_without_write_sensu:1}
164 %define with_write_syslog 0%{!?_without_write_syslog:1}
165 %define with_write_tsdb 0%{!?_without_write_tsdb:1}
166 %define with_xmms 0%{!?_without_xmms:0%{?_has_xmms}}
167 %define with_zfs_arc 0%{!?_without_zfs_arc:1}
168 %define with_zookeeper 0%{!?_without_zookeeper:1}
169
170 # Plugins not built by default because of dependencies on libraries not
171 # available in RHEL or EPEL:
172
173 # plugin apple_sensors disabled, requires a Mac
174 %define with_apple_sensors 0%{!?_without_apple_sensors:0}
175 # plugin aquaero disabled, requires a libaquaero5
176 %define with_aquaero 0%{!?_without_aquaero:0}
177 # plugin barometer disabled, requires a libi2c
178 %define with_barometer 0%{!?_without_barometer:0}
179 # plugin dpdkevents disabled, requires libdpdk
180 %define with_dpdkevents 0%{!?_without_dpdkevents:0}
181 # plugin dpdkstat disabled, requires libdpdk
182 %define with_dpdkstat 0%{!?_without_dpdkstat:0}
183 # plugin grpc disabled, requires protobuf-compiler >= 3.0
184 %define with_grpc 0%{!?_without_grpc:0}
185 # plugin lpar disabled, requires AIX
186 %define with_lpar 0%{!?_without_lpar:0}
187 # plugin intel_pmu disabled, requires libjevents
188 %define with_intel_pmu 0%{!?_without_intel_pmu:0}
189 # plugin intel_rdt disabled, requires intel-cmt-cat
190 %define with_intel_rdt 0%{!?_without_intel_rdt:0}
191 # plugin mic disabled, requires Mic
192 %define with_mic 0%{!?_without_mic:0}
193 # plugin netapp disabled, requires libnetapp
194 %define with_netapp 0%{!?_without_netapp:0}
195 # plugin onewire disabled, requires libowfs
196 %define with_onewire 0%{!?_without_onewire:0}
197 # plugin oracle disabled, requires Oracle
198 %define with_oracle 0%{!?_without_oracle:0}
199 # plugin oracle disabled, requires BSD
200 %define with_pf 0%{!?_without_pf:0}
201 # plugin routeros disabled, requires librouteros
202 %define with_routeros 0%{!?_without_routeros:0}
203 # plugin sigrok disabled, requires libsigrok
204 %define with_sigrok 0%{!?_without_sigrok:0}
205 # plugin tape disabled, requires libkstat
206 %define with_tape 0%{!?_without_tape:0}
207 # plugin tokyotyrant disabled, requires tcrdb.h
208 %define with_tokyotyrant 0%{!?_without_tokyotyrant:0}
209 # plugin write_kafka disabled, requires librdkafka
210 %define with_write_kafka 0%{!?_without_write_kafka:0}
211 # plugin write_mongodb disabled, requires libmongoc
212 %define with_write_mongodb 0%{!?_without_write_mongodb:0}
213 # plugin xencpu disabled, requires xen-devel from non-default repo
214 %define with_xencpu 0%{!?_without_xencpu:0}
215 # plugin zone disabled, requires Solaris
216 %define with_zone 0%{!?_without_zone:0}
217
218 # Plugins not buildable on RHEL < 6
219 %if 0%{?rhel} && 0%{?rhel} < 6
220 %define with_ceph 0
221 %define with_curl_json 0
222 %define with_log_logstash 0
223 %define with_dns 0
224 %define with_ethstat 0
225 %define with_gmond 0
226 %define with_iptables 0
227 %define with_ipvs 0
228 %define with_lvm 0
229 %define with_modbus 0
230 %define with_netlink 0
231 %define with_redis 0
232 %define with_smart 0
233 %define with_turbostat 0
234 %define with_write_prometheus 0
235 %define with_write_redis 0
236 %define with_write_riemann 0
237 %endif
238
239 # Plugins not buildable on RHEL < 7
240 %if 0%{?rhel} && 0%{?rhel} < 7
241 %define with_cpusleep 0
242 %define with_gps 0
243 %define with_mqtt 0
244 %define with_ovs_events 0
245 %define with_ovs_stats 0
246 %define with_redis 0
247 %define with_rrdcached 0
248 %define with_write_redis 0
249 %define with_write_riemann 0
250 %define with_xmms 0
251 %endif
252
253 Summary:        Statistics collection and monitoring daemon
254 Name:           collectd
255 Version:        5.7.1
256 Release:        9%{?dist}
257 URL:            https://collectd.org
258 Source:         https://collectd.org/files/%{name}-%{version}.tar.bz2
259 License:        GPLv2
260 Group:          System Environment/Daemons
261 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
262 BuildRequires:  libgcrypt-devel, kernel-headers, libcap-devel, which
263 Vendor:         collectd development team <collectd@verplant.org>
264
265 %if 0%{?fedora} || 0%{?rhel} >= 7
266 BuildRequires:          xfsprogs-devel
267 %{?systemd_requires}
268 BuildRequires:          systemd
269 %else
270 Requires(post):         chkconfig
271 Requires(preun):        chkconfig, initscripts
272 Requires(postun):       initscripts
273 %endif
274
275 %description
276 collectd is a small daemon which collects system information periodically and
277 provides mechanisms to monitor and store the values in a variety of ways. It
278 is written in C for performance. Since the daemon doesn't need to start up
279 every time it wants to update the values it's very fast and easy on the
280 system. Also, the statistics are very fine grained since the files are updated
281 every 10 seconds by default.
282
283 %if %{with_amqp}
284 %package amqp
285 Summary:        AMQP 0.9 plugin for collectd
286 Group:          System Environment/Daemons
287 Requires:       %{name}%{?_isa} = %{version}-%{release}
288 BuildRequires:  librabbitmq-devel
289 %description amqp
290 The AMQP 0.9 plugin transmits or receives values collected by collectd via the
291 Advanced Message Queuing Protocol v0.9 (AMQP).
292 %endif
293
294 %if %{with_amqp1}
295 %package amqp1
296 Summary:        AMQP 1.0 plugin for collectd
297 Group:          System Environment/Daemons
298 Requires:       %{name}%{?_isa} = %{version}-%{release}
299 BuildRequires:  qpid-proton-c-devel
300 %description amqp1
301 The AMQP 1.0 plugin transmits or receives values collected by collectd via the
302 Advanced Message Queuing Protocol v1.0 (AMQP1).
303 %endif
304
305 %if %{with_apache}
306 %package apache
307 Summary:        Apache plugin for collectd
308 Group:          System Environment/Daemons
309 Requires:       %{name}%{?_isa} = %{version}-%{release}
310 BuildRequires:  curl-devel
311 %description apache
312 This plugin collects data provided by Apache's `mod_status'.
313 %endif
314
315 %if %{with_aquaero}
316 %package aquaero
317 Summary:        aquaero plugin for collectd
318 Group:          System Environment/Daemons
319 Requires:       %{name}%{?_isa} = %{version}-%{release}
320 %description aquaero
321 Various sensors in the Aquaero 5 watercooling board made by Aquacomputer.
322 %endif
323
324 %if %{with_ascent}
325 %package ascent
326 Summary:        Ascent plugin for collectd
327 Group:          System Environment/Daemons
328 Requires:       %{name}%{?_isa} = %{version}-%{release}
329 BuildRequires:  libxml2-devel, curl-devel
330 %description ascent
331 The Ascent plugin reads and parses the statistics page of Ascent, a free and
332 open-source server software for the game World of Warcraft by Blizzard
333 Entertainment.
334 %endif
335
336 %if %{with_barometer}
337 %package barometer
338 Summary:       barometer plugin for collectd
339 Group:         System Environment/Daemons
340 Requires:      %{name}%{?_isa} = %{version}-%{release}
341 %description barometer
342 Collects pressure and temperature from digital barometers.
343 %endif
344
345 %if %{with_bind}
346 %package bind
347 Summary:        Bind plugin for collectd
348 Group:          System Environment/Daemons
349 Requires:       %{name}%{?_isa} = %{version}-%{release}
350 BuildRequires:  libxml2-devel, curl-devel
351 %description bind
352 The BIND plugin retrieves this information that's encoded in XML and provided
353 via HTTP and submits the values to collectd.
354 %endif
355
356 %if %{with_ceph}
357 %package ceph
358 Summary:       Ceph plugin for collectd
359 Group:         System Environment/Daemons
360 Requires:      %{name}%{?_isa} = %{version}-%{release}
361 BuildRequires: yajl-devel
362 %description ceph
363 Ceph plugin for collectd
364 %endif
365
366 %if %{with_chrony}
367 %package chrony
368 Summary:       Chrony plugin for collectd
369 Group:         System Environment/Daemons
370 Requires:      %{name}%{?_isa} = %{version}-%{release}
371 %description chrony
372 Chrony plugin for collectd
373 %endif
374
375 %if %{with_curl}
376 %package curl
377 Summary:        Curl plugin for collectd
378 Group:          System Environment/Daemons
379 Requires:       %{name}%{?_isa} = %{version}-%{release}
380 BuildRequires:  curl-devel
381 %description curl
382 The cURL plugin uses libcurl to read files and then parses them according to
383 the configuration.
384 %endif
385
386 %if %{with_curl_json}
387 %package curl_json
388 Summary:        Curl_json plugin for collectd
389 Group:          System Environment/Daemons
390 Requires:       %{name}%{?_isa} = %{version}-%{release}
391 BuildRequires:  curl-devel, yajl-devel
392 %description curl_json
393 The cURL-JSON plugin queries JavaScript Object Notation (JSON) data using the
394 cURL library and parses it according to the user's configuration.
395 %endif
396
397 %if %{with_curl_xml}
398 %package curl_xml
399 Summary:        Curl_xml plugin for collectd
400 Group:          System Environment/Daemons
401 Requires:       %{name}%{?_isa} = %{version}-%{release}
402 BuildRequires:  curl-devel, libxml2-devel
403 %description curl_xml
404 The cURL-XML plugin reads files using libcurl and parses it as Extensible
405 Markup Language (XML).
406 %endif
407
408 %if %{with_dbi}
409 %package dbi
410 Summary:        DBI plugin for collectd
411 Group:          System Environment/Daemons
412 Requires:       %{name}%{?_isa} = %{version}-%{release}
413 BuildRequires:  libdbi-devel
414 %description dbi
415 The DBI plugin uses libdbi, a database abstraction library, to execute SQL
416 statements on a database and read back the result.
417 %endif
418
419 %if %{with_disk}
420 %package disk
421 Summary:        disk plugin for collectd
422 Group:          System Environment/Daemons
423 Requires:       %{name}%{?_isa} = %{version}-%{release}
424 %{?_has_libudev:BuildRequires:  libudev-devel}
425 %description disk
426 The "disk" plugin collects information about the usage of physical disks and
427 logical disks (partitions).
428 %endif
429
430 %if %{with_dns}
431 %package dns
432 Summary:        DNS plugin for collectd
433 Group:          System Environment/Daemons
434 Requires:       %{name}%{?_isa} = %{version}-%{release}, libpcap >= 1.0
435 BuildRequires:  libpcap-devel >= 1.0
436 %description dns
437 The DNS plugin has a similar functionality to dnstop: It uses libpcap to get a
438 copy of all traffic from/to port UDP/53 (that's the DNS port), interprets the
439 packets and collects statistics of your DNS traffic.
440 %endif
441
442 %if %{with_email}
443 %package email
444 Summary:        Email plugin for collectd
445 Group:          System Environment/Daemons
446 Requires:       %{name}%{?_isa} = %{version}-%{release}, spamassassin
447 %description email
448 This plugin collects data provided by spamassassin.
449 %endif
450
451 %if %{with_gmond}
452 %package gmond
453 Summary:        Gmond plugin for collectd
454 Group:          System Environment/Daemons
455 Requires:       %{name}%{?_isa} = %{version}-%{release}
456 BuildRequires:  ganglia-devel
457 %description gmond
458 The gmond plugin subscribes to a Multicast group to receive data from gmond,
459 the client daemon of the Ganglia project.
460 %endif
461
462 %if %{with_gps}
463 %package gps
464 Summary:        GPS plugin for collectd
465 Group:          System Environment/Daemons
466 Requires:       %{name}%{?_isa} = %{version}-%{release}
467 BuildRequires:  gpsd-devel
468 %description gps
469 This plugin monitor gps related data through gpsd.
470 %endif
471
472 %if %{with_grpc}
473 %package grpc
474 Summary:        GRPC plugin for collectd
475 Group:          System Environment/Daemons
476 Requires:       %{name}%{?_isa} = %{version}-%{release}
477 BuildRequires:  protobuf-compiler
478 %description grpc
479 This plugin embeds a gRPC server into Collectd.
480 %endif
481
482 %if %{with_hddtemp}
483 %package hddtemp
484 Summary:        Hddtemp plugin for collectd
485 Group:          System Environment/Daemons
486 Requires:       %{name}%{?_isa} = %{version}-%{release}, hddtemp
487 %description hddtemp
488 The HDDTemp plugin collects the temperature of hard disks. The temperatures are
489 provided via SMART and queried by the external hddtemp daemon.
490 %endif
491
492 %if %{with_intel_pmu}
493 %package intel_pmu
494 Summary:        Intel PMU plugin for collectd
495 Group:          System Environment/Daemons
496 Requires:       %{name}%{?_isa} = %{version}-%{release}
497 %description intel_pmu
498 The intel_pmu plugin reads performance counters provided by the Linux
499 kernel perf interface.
500 %endif
501
502 %if %{with_intel_rdt}
503 %package intel_rdt
504 Summary:        Intel RDT plugin for collectd
505 Group:          System Environment/Daemons
506 Requires:       %{name}%{?_isa} = %{version}-%{release}
507 BuildRequires:  intel-cmt-cat
508 %description intel_rdt
509 The intel_rdt plugin collects information provided by monitoring features of
510 Intel Resource Director Technology (Intel(R) RDT).
511 %endif
512
513 %if %{with_ipmi}
514 %package ipmi
515 Summary:        IPMI plugin for collectd
516 Group:          System Environment/Daemons
517 Requires:       %{name}%{?_isa} = %{version}-%{release}
518 BuildRequires:  OpenIPMI-devel
519 %description ipmi
520 The IPMI plugin uses the OpenIPMI library to read hardware sensors from servers
521 using the Intelligent Platform Management Interface (IPMI).
522 %endif
523
524 %if %{with_iptables}
525 %package iptables
526 Summary:        IPtables plugin for collectd
527 Group:          System Environment/Daemons
528 Requires:       %{name}%{?_isa} = %{version}-%{release}
529 BuildRequires:  iptables-devel
530 %description iptables
531 The IPtables plugin can gather statistics from your ip_tables based packet
532 filter (aka. firewall) for both the IPv4 and the IPv6 protocol. It can collect
533 the byte- and packet-counters of selected rules and submit them to collectd.
534 %endif
535
536 %if %{with_java}
537 %package java
538 Summary:        Java plugin for collectd
539 Group:          System Environment/Daemons
540 Requires:       %{name}%{?_isa} = %{version}-%{release}
541 BuildRequires:  java-devel >= 1.6, jpackage-utils >= 1.6
542 Requires:       java >= 1.6, jpackage-utils >= 1.6
543 %description java
544 This plugin for collectd allows plugins to be written in Java and executed
545 in an embedded JVM.
546 %endif
547
548 %if %{with_log_logstash}
549 %package log_logstash
550 Summary:       log_logstash plugin for collectd
551 Group:         System Environment/Daemons
552 Requires:      %{name}%{?_isa} = %{version}-%{release}
553 BuildRequires: yajl-devel
554 %description log_logstash
555 This plugin logs in logstash JSON format
556 %endif
557
558 %if %{with_lua}
559 %package lua
560 Summary:        Lua plugin for collectd
561 Group:          System Environment/Daemons
562 Requires:       %{name}%{?_isa} = %{version}-%{release}
563 BuildRequires:  lua-devel
564 %description lua
565 The Lua plugin embeds a Lua interpreter into collectd and exposes the
566 application programming interface (API) to Lua scripts.
567 %endif
568
569 %if %{with_lvm}
570 %package lvm
571 Summary:        LVM plugin for collectd
572 Group:          System Environment/Daemons
573 Requires:       %{name}%{?_isa} = %{version}-%{release}
574 BuildRequires:  lvm2-devel
575 %description lvm
576 This plugin collects size of “Logical Volumes” (LV) and “Volume Groups” (VG)
577 of Linux' “Logical Volume Manager” (LVM).
578 %endif
579
580 %if %{with_mcelog}
581 %package mcelog
582 Summary:        Mcelog plugin for collectd
583 Group:          System Environment/Daemons
584 Requires:       %{name}%{?_isa} = %{version}-%{release}
585 %description mcelog
586 This plugin monitors machine check exceptions reported by mcelog and generates
587 appropriate notifications when machine check exceptions are detected.
588 %endif
589
590 %if %{with_memcachec}
591 %package memcachec
592 Summary:        Memcachec plugin for collectd
593 Group:          System Environment/Daemons
594 Requires:       %{name}%{?_isa} = %{version}-%{release}
595 BuildRequires:  libmemcached-devel
596 %description memcachec
597 The Memcachec plugin uses libmemcached to read statistics from a Memcached
598 instance. Note that another plugin, named `memcached', exists and does a
599 similar job, without requiring the installation of libmemcached.
600 %endif
601
602 %if %{with_mic}
603 %package mic
604 Summary:        mic plugin for collectd
605 Group:          System Environment/Daemons
606 Requires:       %{name}%{?_isa} = %{version}-%{release}
607 %description mic
608 The mic plugin collects CPU usage, memory usage, temperatures and power
609 consumption from Intel Many Integrated Core (MIC) CPUs.
610 %endif
611
612 %if %{with_modbus}
613 %package modbus
614 Summary:       modbus plugin for collectd
615 Group:         System Environment/Daemons
616 Requires:      %{name}%{?_isa} = %{version}-%{release}
617 BuildRequires:  libmodbus-devel
618 %description modbus
619 The modbus plugin collects values from Modbus/TCP enabled devices
620 %endif
621
622 %if %{with_mysql}
623 %package mysql
624 Summary:        MySQL plugin for collectd
625 Group:          System Environment/Daemons
626 Requires:       %{name}%{?_isa} = %{version}-%{release}
627 BuildRequires:  mysql-devel
628 %description mysql
629 MySQL querying plugin. This plugin provides data of issued commands, called
630 handlers and database traffic.
631 %endif
632
633 %if %{with_mqtt}
634 %package mqtt
635 Summary:        mqtt plugin for collectd
636 Group:          System Environment/Daemons
637 Requires:       %{name}%{?_isa} = %{version}-%{release}
638 BuildRequires:  mosquitto-devel
639 %description mqtt
640 The MQTT plugin publishes and subscribes to MQTT topics.
641 %endif
642
643 %if %{with_netlink}
644 %package netlink
645 Summary:        netlink plugin for collectd
646 Group:          System Environment/Daemons
647 Requires:       %{name}%{?_isa} = %{version}-%{release}
648 BuildRequires:  libmnl-devel, iproute-devel
649 %description netlink
650 The netlink plugin collects detailed network interface and routing statistics.
651 %endif
652
653 %if %{with_nginx}
654 %package nginx
655 Summary:        Nginx plugin for collectd
656 Group:          System Environment/Daemons
657 Requires:       %{name}%{?_isa} = %{version}-%{release}
658 BuildRequires:  curl-devel
659 %description nginx
660 This plugin gets data provided by nginx.
661 %endif
662
663 %if %{with_notify_desktop}
664 %package notify_desktop
665 Summary:        Notify_desktop plugin for collectd
666 Group:          System Environment/Daemons
667 Requires:       %{name}%{?_isa} = %{version}-%{release}
668 BuildRequires:  libnotify-devel, gtk2-devel
669 %description notify_desktop
670 The Notify Desktop plugin uses libnotify to display notifications to the user
671 via the desktop notification specification, i. e. on an X display.
672 %endif
673
674 %if %{with_notify_email}
675 %package notify_email
676 Summary:        Notify_email plugin for collectd
677 Group:          System Environment/Daemons
678 Requires:       %{name}%{?_isa} = %{version}-%{release}
679 BuildRequires:  libesmtp-devel
680 %description notify_email
681 The Notify Email plugin uses libESMTP to send notifications to a configured
682 email address.
683 %endif
684
685 %if %{with_nut}
686 %package nut
687 Summary:        Nut plugin for collectd
688 Group:          System Environment/Daemons
689 Requires:       %{name}%{?_isa} = %{version}-%{release}
690 BuildRequires:  nut-devel
691 %description nut
692 This plugin for collectd provides Network UPS Tools support.
693 %endif
694
695 %if %{with_openldap}
696 %package openldap
697 Summary:       Openldap plugin for collectd
698 Group:         System Environment/Daemons
699 Requires:      %{name}%{?_isa} = %{version}-%{release}
700 BuildRequires: openldap-devel
701 %description openldap
702 This plugin reads monitoring information from OpenLDAP's cn=Monitor subtree.
703 %endif
704
705 %if %{with_ovs_events}
706 %package ovs_events
707 Summary:       Open vSwitch events plugin for collectd
708 Group:         System Environment/Daemons
709 Requires:      %{name}%{?_isa} = %{version}-%{release}
710 BuildRequires: yajl-devel
711 %description ovs_events
712 This plugin monitors the link status of Open vSwitch (OVS) connected
713 interfaces, dispatches the values to collectd and sends notifications
714 whenever a link state change occurs in the OVS database.
715 %endif
716
717 %if %{with_ovs_stats}
718 %package ovs_stats
719 Summary:       Open vSwitch statistics plugin for collectd
720 Group:         System Environment/Daemons
721 Requires:      %{name}%{?_isa} = %{version}-%{release}
722 BuildRequires: yajl-devel
723 %description ovs_stats
724 This plugin collects statictics of OVS connected bridges and
725 interfaces.
726 %endif
727
728 %if %{with_perl}
729 %package perl
730 Summary:        Perl plugin for collectd
731 Group:          System Environment/Daemons
732 Requires:       %{name}%{?_isa} = %{version}-%{release}
733 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
734         %if 0%{?rhel} && 0%{?rhel} < 6
735 BuildRequires:  perl
736         %else
737 BuildRequires:  perl-ExtUtils-Embed
738         %endif
739 %description perl
740 The Perl plugin embeds a Perl interpreter into collectd and exposes the
741 application programming interface (API) to Perl-scripts.
742 %endif
743
744 %if %{with_pinba}
745 %package pinba
746 Summary:        Pinba plugin for collectd
747 Group:          System Environment/Daemons
748 Requires:       %{name}%{?_isa} = %{version}-%{release}
749 BuildRequires:  protobuf-c-devel
750 %description pinba
751 The Pinba plugin receives and dispatches timing values from Pinba, a profiling
752 extension for PHP.
753 %endif
754
755 %if %{with_ping}
756 %package ping
757 Summary:        Ping plugin for collectd
758 Group:          System Environment/Daemons
759 Requires:       %{name}%{?_isa} = %{version}-%{release}
760 BuildRequires:  liboping-devel
761 %description ping
762 The Ping plugin measures network latency using ICMP “echo requests”, usually
763 known as “ping”.
764 %endif
765
766 %if %{with_postgresql}
767 %package postgresql
768 Summary:        PostgreSQL plugin for collectd
769 Group:          System Environment/Daemons
770 Requires:       %{name}%{?_isa} = %{version}-%{release}
771 BuildRequires:  postgresql-devel
772 %description postgresql
773 The PostgreSQL plugin connects to and executes SQL statements on a PostgreSQL
774 database.
775 %endif
776
777 %if %{with_python}
778 %package python
779 Summary:        Python plugin for collectd
780 Group:          System Environment/Daemons
781 Requires:       %{name}%{?_isa} = %{version}-%{release}
782         %if 0%{?rhel} && 0%{?rhel} < 6
783 BuildRequires: python26-devel
784         %else
785 BuildRequires: python-devel
786         %endif
787 %description python
788 The Python plugin embeds a Python interpreter into collectd and exposes the
789 application programming interface (API) to Python-scripts.
790 %endif
791
792 %if %{with_redis}
793 %package redis
794 Summary:        Redis plugin for collectd
795 Group:          System Environment/Daemons
796 Requires:       %{name}%{?_isa} = %{version}-%{release}
797 BuildRequires:  hiredis-devel
798 %description redis
799 The Redis plugin connects to one or more instances of Redis, a key-value store,
800 and collects usage information using the hiredis library.
801 %endif
802
803 %if %{with_rrdcached}
804 %package rrdcached
805 Summary:        RRDCached plugin for collectd
806 Group:          System Environment/Daemons
807 Requires:       %{name}%{?_isa} = %{version}-%{release}, rrdtool >= 1.4
808 BuildRequires:  rrdtool-devel
809 %description rrdcached
810 The RRDCacheD plugin connects to the “RRD caching daemon”, rrdcached and
811 submits updates for RRD files to that daemon.
812 %endif
813
814 %if %{with_rrdtool}
815 %package rrdtool
816 Summary:        RRDtool plugin for collectd
817 Group:          System Environment/Daemons
818 Requires:       %{name}%{?_isa} = %{version}-%{release}
819 BuildRequires:  rrdtool-devel
820 %description rrdtool
821 The RRDtool plugin writes values to RRD-files using librrd.
822 %endif
823
824 %if %{with_sensors}
825 %package sensors
826 Summary:        Sensors plugin for collectd
827 Group:          System Environment/Daemons
828 Requires:       %{name}%{?_isa} = %{version}-%{release}
829 BuildRequires:  lm_sensors-devel
830 %description sensors
831 This plugin for collectd provides querying of sensors supported by lm_sensors.
832 %endif
833
834 %if %{with_sigrok}
835 %package sigrok
836 Summary:        sigrok plugin for collectd
837 Group:          System Environment/Daemons
838 Requires:       %{name}%{?_isa} = %{version}-%{release}
839 %description sigrok
840 Uses libsigrok as a backend, allowing any sigrok-supported device to have its
841 measurements fed to collectd. This includes multimeters, sound level meters,
842 thermometers, and much more.
843 %endif
844
845 %if %{with_smart}
846 %package smart
847 Summary:       SMART plugin for collectd
848 Group:         System Environment/Daemons
849 Requires:      %{name}%{?_isa} = %{version}-%{release}
850 BuildRequires: libatasmart-devel
851 %description smart
852 Collect SMART statistics, notably load cycle count, temperature and bad
853 sectors.
854 %endif
855
856 %if %{with_snmp}
857 %package snmp
858 Summary:        SNMP plugin for collectd
859 Group:          System Environment/Daemons
860 Requires:       %{name}%{?_isa} = %{version}-%{release}
861 BuildRequires:  net-snmp-devel
862 %description snmp
863 This plugin for collectd allows querying of network equipment using SNMP.
864 %endif
865
866 %if %{with_snmp_agent}
867 %package snmp_agent
868 Summary:        SNMP AgentX plugin for collectd
869 Group:          System Environment/Daemons
870 Requires:       %{name}%{?_isa} = %{version}-%{release}
871 BuildRequires:  net-snmp-devel
872 %description snmp_agent
873 This plugin for collectd to support AgentX integration.
874 %endif
875
876 %if %{with_varnish}
877 %package varnish
878 Summary:        Varnish plugin for collectd
879 Group:          System Environment/Daemons
880 Requires:       %{name}%{?_isa} = %{version}-%{release}
881 BuildRequires:  varnish-libs-devel
882 %description varnish
883 The Varnish plugin collects information about Varnish, an HTTP accelerator.
884 %endif
885
886 %if %{with_virt}
887 %package virt
888 Summary:        Virt plugin for collectd
889 Group:          System Environment/Daemons
890 Requires:       %{name}%{?_isa} = %{version}-%{release}
891 BuildRequires:  libvirt-devel
892 %description virt
893 This plugin collects information from virtualized guests.
894 %endif
895
896 %if %{with_write_http}
897 %package write_http
898 Summary:        Write-HTTP plugin for collectd
899 Group:          System Environment/Daemons
900 Requires:       %{name}%{?_isa} = %{version}-%{release}
901 BuildRequires:  curl-devel
902 %description write_http
903 The Write-HTTP plugin sends the values collected by collectd to a web-server
904 using HTTP POST requests.
905 %endif
906
907 %if %{with_write_kafka}
908 %package write_kafka
909 Summary:       Write-kafka plugin for collectd
910 Group:         System Environment/Daemons
911 Requires:      %{name}%{?_isa} = %{version}-%{release}
912 BuildRequires: librdkafka-devel
913 %description write_kafka
914 The write_kafka plugin sends values to kafka, a distributed messaging system.
915 %endif
916
917 %if %{with_write_prometheus}
918 %package write_prometheus
919 Summary:        Write-prometheus plugin for collectd
920 Group:          System Environment/Daemons
921 Requires:       %{name}%{?_isa} = %{version}-%{release}
922 BuildRequires:  libmicrohttpd-devel
923 %description write_prometheus
924 The Write Prometheus plugin exposes collected values using an embedded HTTP
925 server, turning the collectd daemon into a Prometheus exporter.
926 %endif
927
928 %if %{with_write_redis}
929 %package write_redis
930 Summary:        Write-Redis plugin for collectd
931 Group:          System Environment/Daemons
932 Requires:       %{name}%{?_isa} = %{version}-%{release}
933 BuildRequires:  hiredis-devel
934 %description write_redis
935 The Write Redis plugin stores values in Redis, a “data structures server”.
936 %endif
937
938 %if %{with_write_riemann}
939 %package write_riemann
940 Summary:        riemann plugin for collectd
941 Group:          System Environment/Daemons
942 Requires:       %{name}%{?_isa} = %{version}-%{release}
943 BuildRequires:  riemann-c-client-devel >= 1.6
944 %description write_riemann
945 The riemann plugin submits values to Riemann, an event stream processor.
946 %endif
947
948 %if %{with_xencpu}
949 %package xencpu
950 Summary:        xencpu plugin for collectd
951 Group:          System Environment/Daemons
952 Requires:       %{name}%{?_isa} = %{version}-%{release}
953 BuildRequires:  xen-devel
954 %description xencpu
955 The xencpu plugin collects CPU statistics from Xen.
956 %endif
957
958 %if %{with_xmms}
959 %package xmms
960 Summary:        XMMS plugin for collectd
961 Group:          System Environment/Daemons
962 Requires:       %{name}%{?_isa} = %{version}-%{release}
963 BuildRequires:  xmms-devel
964 %description xmms
965 The xmms plugin collects information from the XMMS music player.
966 %endif
967
968 %package collection3
969 Summary:        Web-based viewer for collectd
970 Group:          System Environment/Daemons
971 Requires:       %{name}%{?_isa} = %{version}-%{release}
972 Requires: httpd
973 %description collection3
974 collection3 is a graphing front-end for the RRD files created by and filled
975 with collectd. It is written in Perl and should be run as an CGI-script.
976 Graphs are generated on-the-fly, so no cron job or similar is necessary.
977
978 %package php-collection
979 Summary:        collect php webfrontent
980 Group:          System Environment/Daemons
981 Requires:       collectd = %{version}-%{release}
982 Requires:       httpd
983 Requires:       php
984 Requires:       php-rrdtool
985 %description php-collection
986 PHP graphing frontend for RRD files created by and filled with collectd.
987
988 %package contrib
989 Summary:        Contrib files for collectd
990 Group:          System Environment/Daemons
991 Requires:       %{name}%{?_isa} = %{version}-%{release}
992 %description contrib
993 All the files found under contrib/ in the source tree are bundled in this
994 package.
995
996 %package -n libcollectdclient
997 Summary:        Collectd client library
998 Group:          System Environment/Daemons
999 %description -n libcollectdclient
1000 Collectd client library
1001
1002 %package -n libcollectdclient-devel
1003 Summary:        Development files for libcollectdclient
1004 Group:          System Environment/Daemons
1005 Requires:       pkgconfig
1006 Requires:       libcollectdclient%{?_isa} = %{version}-%{release}
1007 %description -n libcollectdclient-devel
1008 Development files for libcollectdclient
1009
1010 %package -n collectd-utils
1011 Summary:        Collectd utilities
1012 Group:          System Environment/Daemons
1013 Requires:       libcollectdclient%{?_isa} = %{version}-%{release}
1014 Requires:       collectd%{?_isa} = %{version}-%{release}
1015 %description -n collectd-utils
1016 Collectd utilities
1017
1018 %prep
1019 %setup -q
1020
1021 %build
1022 %if %{with_aggregation}
1023 %define _with_aggregation --enable-aggregation
1024 %else
1025 %define _with_aggregation --disable-aggregation
1026 %endif
1027
1028 %if %{with_amqp}
1029 %define _with_amqp --enable-amqp
1030 %else
1031 %define _with_amqp --disable-amqp
1032 %endif
1033
1034 %if %{with_amqp1}
1035 %define _with_amqp1 --enable-amqp1
1036 %else
1037 %define _with_amqp1 --disable-amqp1
1038 %endif
1039
1040 %if %{with_apache}
1041 %define _with_apache --enable-apache
1042 %else
1043 %define _with_apache --disable-apache
1044 %endif
1045
1046 %if %{with_apcups}
1047 %define _with_apcups --enable-apcups
1048 %else
1049 %define _with_apcups --disable-apcups
1050 %endif
1051
1052 %if %{with_apple_sensors}
1053 %define _with_apple_sensors --enable-apple_sensors
1054 %else
1055 %define _with_apple_sensors --disable-apple_sensors
1056 %endif
1057
1058 %if %{with_aquaero}
1059 %define _with_aquaero --enable-aquaero
1060 %else
1061 %define _with_aquaero --disable-aquaero
1062 %endif
1063
1064 %if %{with_ascent}
1065 %define _with_ascent --enable-ascent
1066 %else
1067 %define _with_ascent --disable-ascent
1068 %endif
1069
1070 %if %{with_barometer}
1071 %define _with_barometer --enable-barometer
1072 %else
1073 %define _with_barometer --disable-barometer
1074 %endif
1075
1076 %if %{with_battery}
1077 %define _with_battery --enable-battery
1078 %else
1079 %define _with_battery --disable-battery
1080 %endif
1081
1082 %if %{with_bind}
1083 %define _with_bind --enable-bind
1084 %else
1085 %define _with_bind --disable-bind
1086 %endif
1087
1088 %if %{with_cgroups}
1089 %define _with_cgroups --enable-cgroups
1090 %else
1091 %define _with_cgroups --disable-cgroups
1092 %endif
1093
1094 %if %{with_chrony}
1095 %define _with_chrony --enable-chrony
1096 %else
1097 %define _with_chrony --disable-chrony
1098 %endif
1099
1100 %if %{with_conntrack}
1101 %define _with_conntrack --enable-conntrack
1102 %else
1103 %define _with_conntrack --disable-conntrack
1104 %endif
1105
1106 %if %{with_contextswitch}
1107 %define _with_contextswitch --enable-contextswitch
1108 %else
1109 %define _with_contextswitch --disable-contextswitch
1110 %endif
1111
1112 %if %{with_cpu}
1113 %define _with_cpu --enable-cpu
1114 %else
1115 %define _with_cpu --disable-cpu
1116 %endif
1117
1118 %if %{with_cpufreq}
1119 %define _with_cpufreq --enable-cpufreq
1120 %else
1121 %define _with_cpufreq --disable-cpufreq
1122 %endif
1123
1124 %if %{with_cpusleep}
1125 %define _with_cpusleep --enable-cpusleep
1126 %else
1127 %define _with_cpusleep --disable-cpusleep
1128 %endif
1129
1130 %if %{with_csv}
1131 %define _with_csv --enable-csv
1132 %else
1133 %define _with_csv --disable-csv
1134 %endif
1135
1136 %if %{with_ceph}
1137 %define _with_ceph --enable-ceph
1138 %else
1139 %define _with_ceph --disable-ceph
1140 %endif
1141
1142 %if %{with_curl}
1143 %define _with_curl --enable-curl
1144 %else
1145 %define _with_curl --disable-curl
1146 %endif
1147
1148 %if %{with_curl_json}
1149 %define _with_curl_json --enable-curl_json
1150 %else
1151 %define _with_curl_json --disable-curl_json
1152 %endif
1153
1154 %if %{with_curl_xml}
1155 %define _with_curl_xml --enable-curl_xml
1156 %else
1157 %define _with_curl_xml --disable-curl_xml
1158 %endif
1159
1160 %if %{with_dbi}
1161 %define _with_dbi --enable-dbi
1162 %else
1163 %define _with_dbi --disable-dbi
1164 %endif
1165
1166 %if %{with_df}
1167 %define _with_df --enable-df
1168 %else
1169 %define _with_df --disable-df
1170 %endif
1171
1172 %if %{with_disk}
1173 %define _with_disk --enable-disk
1174 %else
1175 %define _with_disk --disable-disk
1176 %endif
1177
1178 %if %{with_dns}
1179 %define _with_dns --enable-dns
1180 %else
1181 %define _with_dns --disable-dns
1182 %endif
1183
1184 %if %{with_drbd}
1185 %define _with_drbd --enable-drbd
1186 %else
1187 %define _with_drbd --disable-drbd
1188 %endif
1189
1190 %if %{with_dpdkevents}
1191 %define _with_dpdkevents --enable-dpdkevents
1192 %else
1193 %define _with_dpdkevents --disable-dpdkevents
1194 %endif
1195
1196 %if %{with_dpdkstat}
1197 %define _with_dpdkstat --enable-dpdkstat
1198 %else
1199 %define _with_dpdkstat --disable-dpdkstat
1200 %endif
1201
1202 %if %{with_email}
1203 %define _with_email --enable-email
1204 %else
1205 %define _with_email --disable-email
1206 %endif
1207
1208 %if %{with_entropy}
1209 %define _with_entropy --enable-entropy
1210 %else
1211 %define _with_entropy --disable-entropy
1212 %endif
1213
1214 %if %{with_ethstat}
1215 %define _with_ethstat --enable-ethstat
1216 %else
1217 %define _with_ethstat --disable-ethstat
1218 %endif
1219
1220 %if %{with_exec}
1221 %define _with_exec --enable-exec
1222 %else
1223 %define _with_exec --disable-exec
1224 %endif
1225
1226 %if %{with_fhcount}
1227 %define _with_fhcount --enable-fhcount
1228 %else
1229 %define _with_fhcount --disable-fhcount
1230 %endif
1231
1232 %if %{with_filecount}
1233 %define _with_filecount --enable-filecount
1234 %else
1235 %define _with_filecount --disable-filecount
1236 %endif
1237
1238 %if %{with_fscache}
1239 %define _with_fscache --enable-fscache
1240 %else
1241 %define _with_fscache --disable-fscache
1242 %endif
1243
1244 %if %{with_gmond}
1245 %define _with_gmond --enable-gmond
1246 %else
1247 %define _with_gmond --disable-gmond
1248 %endif
1249
1250 %if %{with_gps}
1251 %define _with_gps --enable-gps
1252 %else
1253 %define _with_gps --disable-gps
1254 %endif
1255
1256 %if %{with_grpc}
1257 %define _with_grpc --enable-grpc
1258 %else
1259 %define _with_grpc --disable-grpc
1260 %endif
1261
1262 %if %{with_hddtemp}
1263 %define _with_hddtemp --enable-hddtemp
1264 %else
1265 %define _with_hddtemp --disable-hddtemp
1266 %endif
1267
1268 %if %{with_hugepages}
1269 %define _with_hugepages --enable-hugepages
1270 %else
1271 %define _with_hugepages --disable-hugepages
1272 %endif
1273
1274 %if %{with_intel_pmu}
1275 %define _with_intel_pmu --enable-intel_pmu
1276 %else
1277 %define _with_intel_pmu --disable-intel_pmu
1278 %endif
1279
1280 %if %{with_intel_rdt}
1281 %define _with_intel_rdt --enable-intel_rdt
1282 %else
1283 %define _with_intel_rdt --disable-intel_rdt
1284 %endif
1285
1286 %if %{with_interface}
1287 %define _with_interface --enable-interface
1288 %else
1289 %define _with_interface --disable-interface
1290 %endif
1291
1292 %if %{with_ipc}
1293 %define _with_ipc --enable-ipc
1294 %else
1295 %define _with_ipc --disable-ipc
1296 %endif
1297
1298 %if %{with_ipmi}
1299 %define _with_ipmi --enable-ipmi
1300 %else
1301 %define _with_ipmi --disable-ipmi
1302 %endif
1303
1304 %if %{with_iptables}
1305 %define _with_iptables --enable-iptables
1306 %else
1307 %define _with_iptables --disable-iptables
1308 %endif
1309
1310 %if %{with_ipvs}
1311 %define _with_ipvs --enable-ipvs
1312 %else
1313 %define _with_ipvs --disable-ipvs
1314 %endif
1315
1316 %if %{with_irq}
1317 %define _with_irq --enable-irq
1318 %else
1319 %define _with_irq --disable-irq
1320 %endif
1321
1322 %if %{with_java}
1323 %define _with_java --enable-java --with-java=%{java_home}/
1324 %else
1325 %define _with_java --disable-java
1326 %endif
1327
1328 %if %{with_virt}
1329 %define _with_virt --enable-virt
1330 %else
1331 %define _with_virt --disable-virt
1332 %endif
1333
1334 %if %{with_load}
1335 %define _with_load --enable-load
1336 %else
1337 %define _with_load --disable-load
1338 %endif
1339
1340 %if %{with_logfile}
1341 %define _with_logfile --enable-logfile
1342 %else
1343 %define _with_logfile --disable-logfile
1344 %endif
1345
1346 %if %{with_log_logstash}
1347 %define _with_log_logstash --enable-log_logstash
1348 %else
1349 %define _with_log_logstash --disable-log_logstash
1350 %endif
1351
1352 %if %{with_lpar}
1353 %define _with_lpar --enable-lpar
1354 %else
1355 %define _with_lpar --disable-lpar
1356 %endif
1357
1358 %if %{with_lua}
1359 %define _with_lua --enable-lua
1360 %else
1361 %define _with_lua --disable-lua
1362 %endif
1363
1364 %if %{with_lvm}
1365 %define _with_lvm --enable-lvm
1366 %else
1367 %define _with_lvm --disable-lvm
1368 %endif
1369
1370 %if %{with_madwifi}
1371 %define _with_madwifi --enable-madwifi
1372 %else
1373 %define _with_madwifi --disable-madwifi
1374 %endif
1375
1376 %if %{with_mbmon}
1377 %define _with_mbmon --enable-mbmon
1378 %else
1379 %define _with_mbmon --disable-mbmon
1380 %endif
1381
1382 %if %{with_mcelog}
1383 %define _with_mcelog --enable-mcelog
1384 %else
1385 %define _with_mcelog --disable-mcelog
1386 %endif
1387
1388 %if %{with_md}
1389 %define _with_md --enable-md
1390 %else
1391 %define _with_md --disable-md
1392 %endif
1393
1394 %if %{with_memcachec}
1395 %define _with_memcachec --enable-memcachec
1396 %else
1397 %define _with_memcachec --disable-memcachec
1398 %endif
1399
1400 %if %{with_memcached}
1401 %define _with_memcached --enable-memcached
1402 %else
1403 %define _with_memcached --disable-memcached
1404 %endif
1405
1406 %if %{with_memory}
1407 %define _with_memory --enable-memory
1408 %else
1409 %define _with_memory --disable-memory
1410 %endif
1411
1412 %if %{with_mic}
1413 %define _with_mic --enable-mic
1414 %else
1415 %define _with_mic --disable-mic
1416 %endif
1417
1418 %if %{with_modbus}
1419 %define _with_modbus --enable-modbus
1420 %else
1421 %define _with_modbus --disable-modbus
1422 %endif
1423
1424 %if %{with_multimeter}
1425 %define _with_multimeter --enable-multimeter
1426 %else
1427 %define _with_multimeter --disable-multimeter
1428 %endif
1429
1430 %if %{with_mqtt}
1431 %define _with_mqtt --enable-mqtt
1432 %else
1433 %define _with_mqtt --disable-mqtt
1434 %endif
1435
1436 %if %{with_mysql}
1437 %define _with_mysql --enable-mysql
1438 %else
1439 %define _with_mysql --disable-mysql
1440 %endif
1441
1442 %if %{with_netapp}
1443 %define _with_netapp --enable-netapp
1444 %else
1445 %define _with_netapp --disable-netapp
1446 %endif
1447
1448 %if %{with_netlink}
1449 %define _with_netlink --enable-netlink
1450 %else
1451 %define _with_netlink --disable-netlink
1452 %endif
1453
1454 %if %{with_network}
1455 %define _with_network --enable-network
1456 %else
1457 %define _with_network --disable-network
1458 %endif
1459
1460 %if %{with_nfs}
1461 %define _with_nfs --enable-nfs
1462 %else
1463 %define _with_nfs --disable-nfs
1464 %endif
1465
1466 %if %{with_nginx}
1467 %define _with_nginx --enable-nginx
1468 %else
1469 %define _with_nginx --disable-nginx
1470 %endif
1471
1472 %if %{with_notify_desktop}
1473 %define _with_notify_desktop --enable-notify_desktop
1474 %else
1475 %define _with_notify_desktop --disable-notify_desktop
1476 %endif
1477
1478 %if %{with_notify_email}
1479 %define _with_notify_email --enable-notify_email
1480 %else
1481 %define _with_notify_email --disable-notify_email
1482 %endif
1483
1484 %if %{with_notify_nagios}
1485 %define _with_notify_nagios --enable-notify_nagios
1486 %else
1487 %define _with_notify_nagios --disable-notify_nagios
1488 %endif
1489
1490 %if %{with_ntpd}
1491 %define _with_ntpd --enable-ntpd
1492 %else
1493 %define _with_ntpd --disable-ntpd
1494 %endif
1495
1496 %if %{with_numa}
1497 %define _with_numa --enable-numa
1498 %else
1499 %define _with_numa --disable-numa
1500 %endif
1501
1502 %if %{with_nut}
1503 %define _with_nut --enable-nut
1504 %else
1505 %define _with_nut --disable-nut
1506 %endif
1507
1508 %if %{with_olsrd}
1509 %define _with_olsrd --enable-olsrd
1510 %else
1511 %define _with_olsrd --disable-olsrd
1512 %endif
1513
1514 %if %{with_onewire}
1515 %define _with_onewire --enable-onewire
1516 %else
1517 %define _with_onewire --disable-onewire
1518 %endif
1519
1520 %if %{with_openldap}
1521 %define _with_openldap --enable-openldap
1522 %else
1523 %define _with_openldap --disable-openldap
1524 %endif
1525
1526 %if %{with_openvpn}
1527 %define _with_openvpn --enable-openvpn
1528 %else
1529 %define _with_openvpn --disable-openvpn
1530 %endif
1531
1532 %if %{with_oracle}
1533 %define _with_oracle --enable-oracle
1534 %else
1535 %define _with_oracle --disable-oracle
1536 %endif
1537
1538 %if %{with_ovs_events}
1539 %define _with_ovs_events --enable-ovs_events
1540 %else
1541 %define _with_ovs_events --disable-ovs_events
1542 %endif
1543
1544 %if %{with_ovs_stats}
1545 %define _with_ovs_stats --enable-ovs_stats
1546 %else
1547 %define _with_ovs_stats --disable-ovs_stats
1548 %endif
1549
1550 %if %{with_perl}
1551 %define _with_perl --enable-perl --with-perl-bindings="INSTALLDIRS=vendor"
1552 %else
1553 %define _with_perl --disable-perl
1554 %endif
1555
1556 %if %{with_pf}
1557 %define _with_pf --enable-pf
1558 %else
1559 %define _with_pf --disable-pf
1560 %endif
1561
1562 %if %{with_pinba}
1563 %define _with_pinba --enable-pinba
1564 %else
1565 %define _with_pinba --disable-pinba
1566 %endif
1567
1568 %if %{with_ping}
1569 %define _with_ping --enable-ping
1570 %else
1571 %define _with_ping --disable-ping
1572 %endif
1573
1574 %if %{with_postgresql}
1575 %define _with_postgresql --enable-postgresql
1576 %else
1577 %define _with_postgresql --disable-postgresql
1578 %endif
1579
1580 %if %{with_powerdns}
1581 %define _with_powerdns --enable-powerdns
1582 %else
1583 %define _with_powerdns --disable-powerdns
1584 %endif
1585
1586 %if %{with_processes}
1587 %define _with_processes --enable-processes
1588 %else
1589 %define _with_processes --disable-processes
1590 %endif
1591
1592 %if %{with_protocols}
1593 %define _with_protocols --enable-protocols
1594 %else
1595 %define _with_protocols --disable-protocols
1596 %endif
1597
1598 %if %{with_python}
1599         %if 0%{?rhel} && 0%{?rhel} < 6
1600 %define _with_python --enable-python --with-python=%{_bindir}/python2.6
1601 %define _python_config PYTHON_CONFIG="%{_bindir}/python2.6-config"
1602         %else
1603 %define _with_python --enable-python
1604         %endif
1605 %else
1606 %define _with_python --disable-python
1607 %endif
1608
1609 %if %{with_redis}
1610 %define _with_redis --enable-redis
1611 %else
1612 %define _with_redis --disable-redis
1613 %endif
1614
1615 %if %{with_routeros}
1616 %define _with_routeros --enable-routeros
1617 %else
1618 %define _with_routeros --disable-routeros
1619 %endif
1620
1621 %if %{with_rrdcached}
1622 %define _with_rrdcached --enable-rrdcached
1623 %else
1624 %define _with_rrdcached --disable-rrdcached
1625 %endif
1626
1627 %if %{with_rrdtool}
1628 %define _with_rrdtool --enable-rrdtool
1629 %else
1630 %define _with_rrdtool --disable-rrdtool
1631 %endif
1632
1633 %if %{with_sensors}
1634 %define _with_sensors --enable-sensors
1635 %else
1636 %define _with_sensors --disable-sensors
1637 %endif
1638
1639 %if %{with_serial}
1640 %define _with_serial --enable-serial
1641 %else
1642 %define _with_serial --disable-serial
1643 %endif
1644
1645 %if %{with_sigrok}
1646 %define _with_sigrok --enable-sigrok
1647 %else
1648 %define _with_sigrok --disable-sigrok
1649 %endif
1650
1651 %if %{with_smart}
1652 %define _with_smart --enable-smart
1653 %else
1654 %define _with_smart --disable-smart
1655 %endif
1656
1657 %if %{with_snmp}
1658 %define _with_snmp --enable-snmp
1659 %else
1660 %define _with_snmp --disable-snmp
1661 %endif
1662
1663 %if %{with_snmp_agent}
1664 %define _with_snmp_agent --enable-snmp_agent
1665 %else
1666 %define _with_snmp_agent --disable-snmp_agent
1667 %endif
1668
1669 %if %{with_statsd}
1670 %define _with_statsd --enable-statsd
1671 %else
1672 %define _with_statsd --disable-statsd
1673 %endif
1674
1675 %if %{with_swap}
1676 %define _with_swap --enable-swap
1677 %else
1678 %define _with_swap --disable-swap
1679 %endif
1680
1681 %if %{with_synproxy}
1682 %define _with_synproxy --enable-synproxy
1683 %else
1684 %define _with_synproxy --disable-synproxy
1685 %endif
1686
1687 %if %{with_syslog}
1688 %define _with_syslog --enable-syslog
1689 %else
1690 %define _with_syslog --disable-syslog
1691 %endif
1692
1693 %if %{with_table}
1694 %define _with_table --enable-table
1695 %else
1696 %define _with_table --disable-table
1697 %endif
1698
1699 %if %{with_tail}
1700 %define _with_tail --enable-tail
1701 %else
1702 %define _with_tail --disable-tail
1703 %endif
1704
1705 %if %{with_tail_csv}
1706 %define _with_tail_csv --enable-tail_csv
1707 %else
1708 %define _with_tail_csv --disable-tail_csv
1709 %endif
1710
1711 %if %{with_tape}
1712 %define _with_tape --enable-tape
1713 %else
1714 %define _with_tape --disable-tape
1715 %endif
1716
1717 %if %{with_tcpconns}
1718 %define _with_tcpconns --enable-tcpconns
1719 %else
1720 %define _with_tcpconns --disable-tcpconns
1721 %endif
1722
1723 %if %{with_teamspeak2}
1724 %define _with_teamspeak2 --enable-teamspeak2
1725 %else
1726 %define _with_teamspeak2 --disable-teamspeak2
1727 %endif
1728
1729 %if %{with_ted}
1730 %define _with_ted --enable-ted
1731 %else
1732 %define _with_ted --disable-ted
1733 %endif
1734
1735 %if %{with_thermal}
1736 %define _with_thermal --enable-thermal
1737 %else
1738 %define _with_thermal --disable-thermal
1739 %endif
1740
1741 %if %{with_threshold}
1742 %define _with_threshold --enable-threshold
1743 %else
1744 %define _with_threshold --disable-threshold
1745 %endif
1746
1747 %if %{with_tokyotyrant}
1748 %define _with_tokyotyrant --enable-tokyotyrant
1749 %else
1750 %define _with_tokyotyrant --disable-tokyotyrant
1751 %endif
1752
1753 %if %{with_turbostat}
1754 %define _with_turbostat --enable-turbostat
1755 %else
1756 %define _with_turbostat --disable-turbostat
1757 %endif
1758
1759 %if %{with_unixsock}
1760 %define _with_unixsock --enable-unixsock
1761 %else
1762 %define _with_unixsock --disable-unixsock
1763 %endif
1764
1765 %if %{with_uptime}
1766 %define _with_uptime --enable-uptime
1767 %else
1768 %define _with_uptime --disable-uptime
1769 %endif
1770
1771 %if %{with_users}
1772 %define _with_users --enable-users
1773 %else
1774 %define _with_users --disable-users
1775 %endif
1776
1777 %if %{with_uuid}
1778 %define _with_uuid --enable-uuid
1779 %else
1780 %define _with_uuid --disable-uuid
1781 %endif
1782
1783 %if %{with_varnish}
1784 %define _with_varnish --enable-varnish
1785 %else
1786 %define _with_varnish --disable-varnish
1787 %endif
1788
1789 %if %{with_vmem}
1790 %define _with_vmem --enable-vmem
1791 %else
1792 %define _with_vmem --disable-vmem
1793 %endif
1794
1795 %if %{with_vserver}
1796 %define _with_vserver --enable-vserver
1797 %else
1798 %define _with_vserver --disable-vserver
1799 %endif
1800
1801 %if %{with_wireless}
1802 %define _with_wireless --enable-wireless
1803 %else
1804 %define _with_wireless --disable-wireless
1805 %endif
1806
1807 %if %{with_write_graphite}
1808 %define _with_write_graphite --enable-write_graphite
1809 %else
1810 %define _with_write_graphite --disable-write_graphite
1811 %endif
1812
1813 %if %{with_write_http}
1814 %define _with_write_http --enable-write_http
1815 %else
1816 %define _with_write_http --disable-write_http
1817 %endif
1818
1819 %if %{with_write_kafka}
1820 %define _with_write_kafka --enable-write_kafka
1821 %else
1822 %define _with_write_kafka --disable-write_kafka
1823 %endif
1824
1825 %if %{with_write_log}
1826 %define _with_write_log --enable-write_log
1827 %else
1828 %define _with_write_log --disable-write_log
1829 %endif
1830
1831 %if %{with_write_mongodb}
1832 %define _with_write_mongodb --enable-write_mongodb
1833 %else
1834 %define _with_write_mongodb --disable-write_mongodb
1835 %endif
1836
1837 %if %{with_write_prometheus}
1838 %define _with_write_prometheus --enable-write_prometheus
1839 %else
1840 %define _with_write_prometheus --disable-write_prometheus
1841 %endif
1842
1843 %if %{with_write_redis}
1844 %define _with_write_redis --enable-write_redis
1845 %else
1846 %define _with_write_redis --disable-write_redis
1847 %endif
1848
1849 %if %{with_write_riemann}
1850 %define _with_write_riemann --enable-write_riemann
1851 %else
1852 %define _with_write_riemann --disable-write_riemann
1853 %endif
1854
1855 %if %{with_write_sensu}
1856 %define _with_write_sensu --enable-write_sensu
1857 %else
1858 %define _with_write_sensu --disable-write_sensu
1859 %endif
1860
1861 %if %{with_write_syslog}
1862 %define _with_write_syslog --enable-write_syslog
1863 %else
1864 %define _with_write_syslog --disable-write_syslog
1865 %endif
1866
1867 %if %{with_write_tsdb}
1868 %define _with_write_tsdb --enable-write_tsdb
1869 %else
1870 %define _with_write_tsdb --disable-write_tsdb
1871 %endif
1872
1873 %if %{with_xencpu}
1874 %define _with_xencpu --enable-xencpu
1875 %else
1876 %define _with_xencpu --disable-xencpu
1877 %endif
1878
1879 %if %{with_xmms}
1880 %define _with_xmms --enable-xmms
1881 %else
1882 %define _with_xmms --disable-xmms
1883 %endif
1884
1885 %if %{with_zfs_arc}
1886 %define _with_zfs_arc --enable-zfs_arc
1887 %else
1888 %define _with_zfs_arc --disable-zfs_arc
1889 %endif
1890
1891 %if %{with_zone}
1892 %define _with_zone --enable-zone
1893 %else
1894 %define _with_zone --disable-zone
1895 %endif
1896
1897 %if %{with_zookeeper}
1898 %define _with_zookeeper --enable-zookeeper
1899 %else
1900 %define _with_zookeeper --disable-zookeeper
1901 %endif
1902
1903 %if %{with debug}
1904 %define _feature_debug --enable-debug
1905 %else
1906 %define _feature_debug --disable-debug
1907 %endif
1908
1909 %configure CFLAGS="%{optflags} -DLT_LAZY_OR_NOW=\"RTLD_LAZY|RTLD_GLOBAL\"" \
1910         %{?_python_config} \
1911         %{?_feature_debug} \
1912         --disable-static \
1913         --enable-all-plugins=yes \
1914         --enable-match_empty_counter \
1915         --enable-match_hashed \
1916         --enable-match_regex \
1917         --enable-match_timediff \
1918         --enable-match_value \
1919         --enable-target_notification \
1920         --enable-target_replace \
1921         --enable-target_scale \
1922         --enable-target_set \
1923         --enable-target_v5upgrade \
1924         %{?_with_aggregation} \
1925         %{?_with_amqp} \
1926         %{?_with_amqp1} \
1927         %{?_with_apache} \
1928         %{?_with_apcups} \
1929         %{?_with_apple_sensors} \
1930         %{?_with_aquaero} \
1931         %{?_with_ascent} \
1932         %{?_with_barometer} \
1933         %{?_with_battery} \
1934         %{?_with_bind} \
1935         %{?_with_ceph} \
1936         %{?_with_cgroups} \
1937         %{?_with_chrony} \
1938         %{?_with_conntrack} \
1939         %{?_with_contextswitch} \
1940         %{?_with_cpufreq} \
1941         %{?_with_cpusleep} \
1942         %{?_with_cpu} \
1943         %{?_with_csv} \
1944         %{?_with_curl_json} \
1945         %{?_with_curl_xml} \
1946         %{?_with_curl} \
1947         %{?_with_dbi} \
1948         %{?_with_df} \
1949         %{?_with_disk} \
1950         %{?_with_dns} \
1951         %{?_with_drbd} \
1952         %{?_with_dpdkevents} \
1953         %{?_with_dpdkstat} \
1954         %{?_with_email} \
1955         %{?_with_entropy} \
1956         %{?_with_ethstat} \
1957         %{?_with_exec} \
1958         %{?_with_fhcount} \
1959         %{?_with_filecount} \
1960         %{?_with_fscache} \
1961         %{?_with_gmond} \
1962         %{?_with_gps} \
1963         %{?_with_grpc} \
1964         %{?_with_hddtemp} \
1965         %{?_with_hugepages} \
1966         %{?_with_intel_pmu} \
1967         %{?_with_intel_rdt} \
1968         %{?_with_interface} \
1969         %{?_with_ipc} \
1970         %{?_with_ipmi} \
1971         %{?_with_iptables} \
1972         %{?_with_ipvs} \
1973         %{?_with_irq} \
1974         %{?_with_java} \
1975         %{?_with_load} \
1976         %{?_with_log_logstash} \
1977         %{?_with_logfile} \
1978         %{?_with_lpar} \
1979         %{?_with_lua} \
1980         %{?_with_lvm} \
1981         %{?_with_madwifi} \
1982         %{?_with_mbmon} \
1983         %{?_with_mcelog} \
1984         %{?_with_md} \
1985         %{?_with_memcachec} \
1986         %{?_with_memcached} \
1987         %{?_with_memory} \
1988         %{?_with_mic} \
1989         %{?_with_modbus} \
1990         %{?_with_mqtt} \
1991         %{?_with_multimeter} \
1992         %{?_with_mysql} \
1993         %{?_with_netapp} \
1994         %{?_with_netlink} \
1995         %{?_with_network} \
1996         %{?_with_nfs} \
1997         %{?_with_nginx} \
1998         %{?_with_notify_desktop} \
1999         %{?_with_notify_email} \
2000         %{?_with_notify_nagios} \
2001         %{?_with_ntpd} \
2002         %{?_with_numa} \
2003         %{?_with_nut} \
2004         %{?_with_olsrd} \
2005         %{?_with_onewire} \
2006         %{?_with_openldap} \
2007         %{?_with_openvpn} \
2008         %{?_with_oracle} \
2009         %{?_with_ovs_events} \
2010         %{?_with_ovs_stats} \
2011         %{?_with_perl} \
2012         %{?_with_pf} \
2013         %{?_with_pinba} \
2014         %{?_with_ping} \
2015         %{?_with_postgresql} \
2016         %{?_with_powerdns} \
2017         %{?_with_processes} \
2018         %{?_with_protocols} \
2019         %{?_with_python} \
2020         %{?_with_redis} \
2021         %{?_with_routeros} \
2022         %{?_with_rrdcached} \
2023         %{?_with_rrdtool} \
2024         %{?_with_sensors} \
2025         %{?_with_serial} \
2026         %{?_with_sigrok} \
2027         %{?_with_smart} \
2028         %{?_with_snmp} \
2029         %{?_with_snmp_agent} \
2030         %{?_with_statsd} \
2031         %{?_with_swap} \
2032         %{?_with_synproxy} \
2033         %{?_with_syslog} \
2034         %{?_with_table} \
2035         %{?_with_tail_csv} \
2036         %{?_with_tail} \
2037         %{?_with_tape} \
2038         %{?_with_tcpconns} \
2039         %{?_with_teamspeak2} \
2040         %{?_with_ted} \
2041         %{?_with_thermal} \
2042         %{?_with_threshold} \
2043         %{?_with_tokyotyrant} \
2044         %{?_with_turbostat} \
2045         %{?_with_unixsock} \
2046         %{?_with_uptime} \
2047         %{?_with_users} \
2048         %{?_with_uuid} \
2049         %{?_with_varnish} \
2050         %{?_with_virt} \
2051         %{?_with_vmem} \
2052         %{?_with_vserver} \
2053         %{?_with_wireless}\
2054         %{?_with_write_graphite} \
2055         %{?_with_write_http} \
2056         %{?_with_write_http} \
2057         %{?_with_write_kafka} \
2058         %{?_with_write_log} \
2059         %{?_with_write_mongodb} \
2060         %{?_with_write_prometheus} \
2061         %{?_with_write_redis} \
2062         %{?_with_write_riemann} \
2063         %{?_with_write_sensu} \
2064         %{?_with_write_syslog} \
2065         %{?_with_write_tsdb} \
2066         %{?_with_xencpu} \
2067         %{?_with_xmms} \
2068         %{?_with_zfs_arc} \
2069         %{?_with_zone} \
2070         %{?_with_zookeeper}
2071
2072
2073 %{__make} %{?_smp_mflags}
2074
2075
2076 %install
2077 rm -rf %{buildroot}
2078 %{__make} install DESTDIR=%{buildroot}
2079 %if 0%{?fedora} || 0%{?rhel} >= 7
2080 %{__install} -Dp -m0644 contrib/systemd.collectd.service %{buildroot}%{_unitdir}/collectd.service
2081 %else
2082 %{__install} -Dp -m0755 contrib/redhat/init.d-collectd %{buildroot}%{_initrddir}/collectd
2083 %endif
2084 %{__install} -Dp -m0644 src/collectd.conf %{buildroot}%{_sysconfdir}/collectd.conf
2085 %{__install} -d %{buildroot}%{_sharedstatedir}/collectd/
2086 %{__install} -d %{buildroot}%{_sysconfdir}/collectd.d/
2087
2088 %{__mkdir} -p %{buildroot}%{_localstatedir}/www
2089 %{__mkdir} -p %{buildroot}/%{_sysconfdir}/httpd/conf.d
2090
2091 %{__mv} contrib/collection3 %{buildroot}%{_localstatedir}/www
2092 %{__mv} contrib/redhat/collection3.conf %{buildroot}/%{_sysconfdir}/httpd/conf.d/
2093
2094 %{__mv} contrib/php-collection %{buildroot}%{_localstatedir}/www
2095 %{__mv} contrib/redhat/php-collection.conf %{buildroot}/%{_sysconfdir}/httpd/conf.d/
2096
2097 ### Clean up docs
2098 find contrib/ -type f -exec %{__chmod} a-x {} \;
2099 # *.la files shouldn't be distributed.
2100 rm -f %{buildroot}/%{_libdir}/{collectd/,}*.la
2101
2102 # Remove Perl hidden .packlist files.
2103 find %{buildroot} -type f -name .packlist -delete
2104 # Remove Perl temporary file perllocal.pod
2105 find %{buildroot} -type f -name perllocal.pod -delete
2106
2107 %if ! %{with_java}
2108 rm -f %{buildroot}%{_datadir}/collectd/java/collectd-api.jar
2109 rm -f %{buildroot}%{_datadir}/collectd/java/generic-jmx.jar
2110 rm -f %{buildroot}%{_mandir}/man5/collectd-java.5*
2111 %endif
2112
2113 %if ! %{with_lua}
2114 rm -f %{buildroot}%{_mandir}/man5/collectd-lua.5*
2115 %endif
2116
2117 %if ! %{with_perl}
2118 rm -f %{buildroot}%{_mandir}/man5/collectd-perl.5*
2119 rm -f %{buildroot}%{_mandir}/man3/Collectd::Unixsock.3pm*
2120 rm -fr %{buildroot}/usr/lib/perl5/
2121 %endif
2122
2123 %if ! %{with_postgresql}
2124 rm -f %{buildroot}%{_datadir}/collectd/postgresql_default.conf
2125 %endif
2126
2127 %if ! %{with_python}
2128 rm -f %{buildroot}%{_mandir}/man5/collectd-python.5*
2129 %endif
2130
2131 %if ! %{with_snmp}
2132 rm -f %{buildroot}%{_mandir}/man5/collectd-snmp.5*
2133 %endif
2134
2135
2136 %clean
2137 rm -rf %{buildroot}
2138
2139 %post
2140 %if 0%{?fedora} || 0%{?rhel} >= 7
2141 %systemd_post collectd.service
2142 %else
2143 /sbin/chkconfig --add collectd || :
2144 %endif
2145
2146 %preun
2147 %if 0%{?fedora} || 0%{?rhel} >= 7
2148 %systemd_preun collectd.service
2149 %else
2150 # stop collectd only when uninstalling
2151 if [ $1 -eq 0 ]; then
2152         /sbin/service collectd stop >/dev/null 2>&1 || :
2153         /sbin/chkconfig --del collectd || :
2154 fi
2155 %endif
2156
2157 %postun
2158 %if 0%{?fedora} || 0%{?rhel} >= 7
2159 %systemd_postun_with_restart collectd.service
2160 %else
2161 # restart collectd only when upgrading
2162 if [ $1 -eq 1 ]; then
2163         /sbin/service collectd condrestart >/dev/null 2>&1 || :
2164 fi
2165 %endif
2166
2167 %post -n libcollectdclient -p /sbin/ldconfig
2168 %postun -n libcollectdclient -p /sbin/ldconfig
2169
2170
2171 %files
2172 %doc AUTHORS COPYING ChangeLog README
2173 %config(noreplace) %{_sysconfdir}/collectd.conf
2174 %if 0%{?fedora} || 0%{?rhel} >= 7
2175 %{_unitdir}/collectd.service
2176 %else
2177 %{_initrddir}/collectd
2178 %endif
2179 %{_sbindir}/collectd
2180 %{_sbindir}/collectdmon
2181 %{_datadir}/collectd/types.db
2182 %{_sharedstatedir}/collectd
2183 %{_mandir}/man1/collectd.1*
2184 %{_mandir}/man1/collectdmon.1*
2185 %{_mandir}/man5/collectd-email.5*
2186 %{_mandir}/man5/collectd-exec.5*
2187 %{_mandir}/man5/collectd-threshold.5*
2188 %{_mandir}/man5/collectd-unixsock.5*
2189 %{_mandir}/man5/collectd.conf.5*
2190 %{_mandir}/man5/types.db.5*
2191
2192 # all plugins bundled with the main collectd package
2193 %{_libdir}/%{name}/match_empty_counter.so
2194 %{_libdir}/%{name}/match_hashed.so
2195 %{_libdir}/%{name}/match_regex.so
2196 %{_libdir}/%{name}/match_timediff.so
2197 %{_libdir}/%{name}/match_value.so
2198 %{_libdir}/%{name}/target_notification.so
2199 %{_libdir}/%{name}/target_replace.so
2200 %{_libdir}/%{name}/target_scale.so
2201 %{_libdir}/%{name}/target_set.so
2202 %{_libdir}/%{name}/target_v5upgrade.so
2203
2204 %if %{with_aggregation}
2205 %{_libdir}/%{name}/aggregation.so
2206 %endif
2207 %if %{with_apcups}
2208 %{_libdir}/%{name}/apcups.so
2209 %endif
2210 %if %{with_battery}
2211 %{_libdir}/%{name}/battery.so
2212 %endif
2213 %if %{with_cgroups}
2214 %{_libdir}/%{name}/cgroups.so
2215 %endif
2216 %if %{with_conntrack}
2217 %{_libdir}/%{name}/conntrack.so
2218 %endif
2219 %if %{with_contextswitch}
2220 %{_libdir}/%{name}/contextswitch.so
2221 %endif
2222 %if %{with_cpu}
2223 %{_libdir}/%{name}/cpu.so
2224 %endif
2225 %if %{with_cpufreq}
2226 %{_libdir}/%{name}/cpufreq.so
2227 %endif
2228 %if %{with_cpusleep}
2229 %{_libdir}/%{name}/cpusleep.so
2230 %endif
2231 %if %{with_csv}
2232 %{_libdir}/%{name}/csv.so
2233 %endif
2234 %if %{with_df}
2235 %{_libdir}/%{name}/df.so
2236 %endif
2237 %if %{with_drbd}
2238 %{_libdir}/%{name}/drbd.so
2239 %endif
2240 %if %{with_ethstat}
2241 %{_libdir}/%{name}/ethstat.so
2242 %endif
2243 %if %{with_entropy}
2244 %{_libdir}/%{name}/entropy.so
2245 %endif
2246 %if %{with_exec}
2247 %{_libdir}/%{name}/exec.so
2248 %endif
2249 %if %{with_fhcount}
2250 %{_libdir}/%{name}/fhcount.so
2251 %endif
2252 %if %{with_filecount}
2253 %{_libdir}/%{name}/filecount.so
2254 %endif
2255 %if %{with_fscache}
2256 %{_libdir}/%{name}/fscache.so
2257 %endif
2258 %if %{with_hugepages}
2259 %{_libdir}/%{name}/hugepages.so
2260 %endif
2261 %if %{with_interface}
2262 %{_libdir}/%{name}/interface.so
2263 %endif
2264 %if %{with_ipc}
2265 %{_libdir}/%{name}/ipc.so
2266 %endif
2267 %if %{with_ipvs}
2268 %{_libdir}/%{name}/ipvs.so
2269 %endif
2270 %if %{with_irq}
2271 %{_libdir}/%{name}/irq.so
2272 %endif
2273 %if %{with_load}
2274 %{_libdir}/%{name}/load.so
2275 %endif
2276 %if %{with_logfile}
2277 %{_libdir}/%{name}/logfile.so
2278 %endif
2279 %if %{with_madwifi}
2280 %{_libdir}/%{name}/madwifi.so
2281 %endif
2282 %if %{with_mbmon}
2283 %{_libdir}/%{name}/mbmon.so
2284 %endif
2285 %if %{with_mcelog}
2286 %{_libdir}/%{name}/mcelog.so
2287 %endif
2288 %if %{with_md}
2289 %{_libdir}/%{name}/md.so
2290 %endif
2291 %if %{with_memcached}
2292 %{_libdir}/%{name}/memcached.so
2293 %endif
2294 %if %{with_memory}
2295 %{_libdir}/%{name}/memory.so
2296 %endif
2297 %if %{with_multimeter}
2298 %{_libdir}/%{name}/multimeter.so
2299 %endif
2300 %if %{with_network}
2301 %{_libdir}/%{name}/network.so
2302 %endif
2303 %if %{with_nfs}
2304 %{_libdir}/%{name}/nfs.so
2305 %endif
2306 %if %{with_notify_nagios}
2307 %{_libdir}/%{name}/notify_nagios.so
2308 %endif
2309 %if %{with_ntpd}
2310 %{_libdir}/%{name}/ntpd.so
2311 %endif
2312 %if %{with_numa}
2313 %{_libdir}/%{name}/numa.so
2314 %endif
2315 %if %{with_openvpn}
2316 %{_libdir}/%{name}/openvpn.so
2317 %endif
2318 %if %{with_olsrd}
2319 %{_libdir}/%{name}/olsrd.so
2320 %endif
2321 %if %{with_powerdns}
2322 %{_libdir}/%{name}/powerdns.so
2323 %endif
2324 %if %{with_processes}
2325 %{_libdir}/%{name}/processes.so
2326 %endif
2327 %if %{with_protocols}
2328 %{_libdir}/%{name}/protocols.so
2329 %endif
2330 %if %{with_serial}
2331 %{_libdir}/%{name}/serial.so
2332 %endif
2333 %if %{with_statsd}
2334 %{_libdir}/%{name}/statsd.so
2335 %endif
2336 %if %{with_swap}
2337 %{_libdir}/%{name}/swap.so
2338 %endif
2339 %if %{with_synproxy}
2340 %{_libdir}/%{name}/synproxy.so
2341 %endif
2342 %if %{with_syslog}
2343 %{_libdir}/%{name}/syslog.so
2344 %endif
2345 %if %{with_table}
2346 %{_libdir}/%{name}/table.so
2347 %endif
2348 %if %{with_tail}
2349 %{_libdir}/%{name}/tail.so
2350 %endif
2351 %if %{with_tail_csv}
2352 %{_libdir}/%{name}/tail_csv.so
2353 %endif
2354 %if %{with_tcpconns}
2355 %{_libdir}/%{name}/tcpconns.so
2356 %endif
2357 %if %{with_teamspeak2}
2358 %{_libdir}/%{name}/teamspeak2.so
2359 %endif
2360 %if %{with_ted}
2361 %{_libdir}/%{name}/ted.so
2362 %endif
2363 %if %{with_thermal}
2364 %{_libdir}/%{name}/thermal.so
2365 %endif
2366 %if %{with_threshold}
2367 %{_libdir}/%{name}/threshold.so
2368 %endif
2369 %if %{with_turbostat}
2370 %{_libdir}/%{name}/turbostat.so
2371 %endif
2372 %if %{with_unixsock}
2373 %{_libdir}/%{name}/unixsock.so
2374 %endif
2375 %if %{with_uptime}
2376 %{_libdir}/%{name}/uptime.so
2377 %endif
2378 %if %{with_users}
2379 %{_libdir}/%{name}/users.so
2380 %endif
2381 %if %{with_uuid}
2382 %{_libdir}/%{name}/uuid.so
2383 %endif
2384 %if %{with_vmem}
2385 %{_libdir}/%{name}/vmem.so
2386 %endif
2387 %if %{with_vserver}
2388 %{_libdir}/%{name}/vserver.so
2389 %endif
2390 %if %{with_wireless}
2391 %{_libdir}/%{name}/wireless.so
2392 %endif
2393 %if %{with_write_graphite}
2394 %{_libdir}/%{name}/write_graphite.so
2395 %endif
2396 %if %{with_write_log}
2397 %{_libdir}/%{name}/write_log.so
2398 %endif
2399 %if %{with_write_syslog}
2400 %{_libdir}/%{name}/write_syslog.so
2401 %endif
2402 %if %{with_write_sensu}
2403 %{_libdir}/%{name}/write_sensu.so
2404 %endif
2405 %if %{with_write_tsdb}
2406 %{_libdir}/%{name}/write_tsdb.so
2407 %endif
2408 %if %{with_zfs_arc}
2409 %{_libdir}/%{name}/zfs_arc.so
2410 %endif
2411 %if %{with_zookeeper}
2412 %{_libdir}/%{name}/zookeeper.so
2413 %endif
2414
2415 %files -n libcollectdclient-devel
2416 %{_includedir}/collectd/client.h
2417 %{_includedir}/collectd/network.h
2418 %{_includedir}/collectd/network_buffer.h
2419 %{_includedir}/collectd/lcc_features.h
2420 %{_libdir}/pkgconfig/libcollectdclient.pc
2421 %{_includedir}/collectd/network_parse.h
2422 %{_includedir}/collectd/server.h
2423 %{_includedir}/collectd/types.h
2424 %{_libdir}/libcollectdclient.so
2425
2426 %files -n libcollectdclient
2427 %{_libdir}/libcollectdclient.so.*
2428
2429 %files -n collectd-utils
2430 %{_bindir}/collectd-nagios
2431 %{_bindir}/collectd-tg
2432 %{_bindir}/collectdctl
2433 %{_mandir}/man1/collectdctl.1*
2434 %{_mandir}/man1/collectd-nagios.1*
2435 %{_mandir}/man1/collectd-tg.1*
2436
2437 %if %{with_amqp}
2438 %files amqp
2439 %{_libdir}/%{name}/amqp.so
2440 %endif
2441
2442 %if %{with_amqp1}
2443 %files amqp1
2444 %{_libdir}/%{name}/amqp1.so
2445 %endif
2446
2447 %if %{with_apache}
2448 %files apache
2449 %{_libdir}/%{name}/apache.so
2450 %endif
2451
2452 %if %{with_aquaero}
2453 %files aquaero
2454 %{_libdir}/%{name}/aquaero.so
2455 %endif
2456
2457 %if %{with_ascent}
2458 %files ascent
2459 %{_libdir}/%{name}/ascent.so
2460 %endif
2461
2462 %if %{with_barometer}
2463 %files barometer
2464 %{_libdir}/%{name}/barometer.so
2465 %endif
2466
2467 %if %{with_bind}
2468 %files bind
2469 %{_libdir}/%{name}/bind.so
2470 %endif
2471
2472 %if %{with_ceph}
2473 %files ceph
2474 %{_libdir}/%{name}/ceph.so
2475 %endif
2476
2477 %if %{with_chrony}
2478 %files chrony
2479 %{_libdir}/%{name}/chrony.so
2480 %endif
2481
2482 %if %{with_curl}
2483 %files curl
2484 %{_libdir}/%{name}/curl.so
2485 %endif
2486
2487 %if %{with_curl_json}
2488 %files curl_json
2489 %{_libdir}/%{name}/curl_json.so
2490 %endif
2491
2492 %if %{with_curl_xml}
2493 %files curl_xml
2494 %{_libdir}/%{name}/curl_xml.so
2495 %endif
2496
2497 %if %{with_disk}
2498 %files disk
2499 %{_libdir}/%{name}/disk.so
2500 %endif
2501
2502 %if %{with_dns}
2503 %files dns
2504 %{_libdir}/%{name}/dns.so
2505 %endif
2506
2507 %if %{with_dbi}
2508 %files dbi
2509 %{_libdir}/%{name}/dbi.so
2510 %endif
2511
2512 %if %{with_dpdkevents}
2513 %files dpdkevents
2514 %{_libdir}/%{name}/dpdkevents.so
2515 %endif
2516
2517 %if %{with_dpdkstat}
2518 %files dpdkstat
2519 %{_libdir}/%{name}/dpdkstat.so
2520 %endif
2521
2522 %if %{with_email}
2523 %files email
2524 %{_libdir}/%{name}/email.so
2525 %endif
2526
2527 %if %{with_gmond}
2528 %files gmond
2529 %{_libdir}/%{name}/gmond.so
2530 %endif
2531
2532 %if %{with_gps}
2533 %files gps
2534 %{_libdir}/%{name}/gps.so
2535 %endif
2536
2537 %if %{with_grpc}
2538 %files grpc
2539 %{_libdir}/%{name}/grpc.so
2540 %endif
2541
2542 %if %{with_hddtemp}
2543 %files hddtemp
2544 %{_libdir}/%{name}/hddtemp.so
2545 %endif
2546
2547 %if %{with_intel_pmu}
2548 %files intel_pmu
2549 %{_libdir}/%{name}/intel_pmu.so
2550 %endif
2551
2552 %if %{with_intel_rdt}
2553 %files intel_rdt
2554 %{_libdir}/%{name}/intel_rdt.so
2555 %endif
2556
2557 %if %{with_ipmi}
2558 %files ipmi
2559 %{_libdir}/%{name}/ipmi.so
2560 %endif
2561
2562 %if %{with_iptables}
2563 %files iptables
2564 %{_libdir}/%{name}/iptables.so
2565 %endif
2566
2567 %if %{with_java}
2568 %files java
2569 %{_datadir}/collectd/java/collectd-api.jar
2570 %{_datadir}/collectd/java/generic-jmx.jar
2571 %{_libdir}/%{name}/java.so
2572 %{_mandir}/man5/collectd-java.5*
2573 %endif
2574
2575 %if %{with_virt}
2576 %files virt
2577 %{_libdir}/%{name}/virt.so
2578 %endif
2579
2580 %if %{with_log_logstash}
2581 %files log_logstash
2582 %{_libdir}/%{name}/log_logstash.so
2583 %endif
2584
2585 %if %{with_lua}
2586 %files lua
2587 %{_mandir}/man5/collectd-lua*
2588 %{_libdir}/%{name}/lua.so
2589 %endif
2590
2591 %if %{with_lvm}
2592 %files lvm
2593 %{_libdir}/%{name}/lvm.so
2594 %endif
2595
2596 %if %{with_memcachec}
2597 %files memcachec
2598 %{_libdir}/%{name}/memcachec.so
2599 %endif
2600
2601 %if %{with_mic}
2602 %files mic
2603 %{_libdir}/%{name}/mic.so
2604 %endif
2605
2606 %if %{with_modbus}
2607 %files modbus
2608 %{_libdir}/%{name}/modbus.so
2609 %endif
2610
2611 %if %{with_mqtt}
2612 %files mqtt
2613 %{_libdir}/%{name}/mqtt.so
2614 %endif
2615
2616 %if %{with_mysql}
2617 %files mysql
2618 %{_libdir}/%{name}/mysql.so
2619 %endif
2620
2621 %if %{with_netlink}
2622 %files netlink
2623 %{_libdir}/%{name}/netlink.so
2624 %endif
2625
2626 %if %{with_nginx}
2627 %files nginx
2628 %{_libdir}/%{name}/nginx.so
2629 %endif
2630
2631 %if %{with_notify_desktop}
2632 %files notify_desktop
2633 %{_libdir}/%{name}/notify_desktop.so
2634 %endif
2635
2636 %if %{with_notify_email}
2637 %files notify_email
2638 %{_libdir}/%{name}/notify_email.so
2639 %endif
2640
2641 %if %{with_nut}
2642 %files nut
2643 %{_libdir}/%{name}/nut.so
2644 %endif
2645
2646 %if %{with_openldap}
2647 %files openldap
2648 %{_libdir}/%{name}/openldap.so
2649 %endif
2650
2651 %if %{with_ovs_events}
2652 %files ovs_events
2653 %{_libdir}/%{name}/ovs_events.so
2654 %endif
2655
2656 %if %{with_ovs_stats}
2657 %files ovs_stats
2658 %{_libdir}/%{name}/ovs_stats.so
2659 %endif
2660
2661 %if %{with_perl}
2662 %files perl
2663 %{perl_vendorlib}/Collectd.pm
2664 %{perl_vendorlib}/Collectd/
2665 %{_mandir}/man3/Collectd::Unixsock.3pm*
2666 %{_mandir}/man5/collectd-perl.5*
2667 %{_libdir}/%{name}/perl.so
2668 %endif
2669
2670 %if %{with_pinba}
2671 %files pinba
2672 %{_libdir}/%{name}/pinba.so
2673 %endif
2674
2675 %if %{with_ping}
2676 %files ping
2677 %{_libdir}/%{name}/ping.so
2678 %endif
2679
2680 %if %{with_postgresql}
2681 %files postgresql
2682 %{_datadir}/collectd/postgresql_default.conf
2683 %{_libdir}/%{name}/postgresql.so
2684 %endif
2685
2686 %if %{with_python}
2687 %files python
2688 %{_mandir}/man5/collectd-python*
2689 %{_libdir}/%{name}/python.so
2690 %endif
2691
2692 %if %{with_redis}
2693 %files redis
2694 %{_libdir}/%{name}/redis.so
2695 %endif
2696
2697 %if %{with_rrdcached}
2698 %files rrdcached
2699 %{_libdir}/%{name}/rrdcached.so
2700 %endif
2701
2702 %if %{with_rrdtool}
2703 %files rrdtool
2704 %{_libdir}/%{name}/rrdtool.so
2705 %endif
2706
2707 %if %{with_sensors}
2708 %files sensors
2709 %{_libdir}/%{name}/sensors.so
2710 %endif
2711
2712 %if %{with_sigrok}
2713 %files sigrok
2714 %{_libdir}/%{name}/sigrok.so
2715 %endif
2716
2717 %if %{with_smart}
2718 %files smart
2719 %{_libdir}/%{name}/smart.so
2720 %endif
2721
2722 %if %{with_snmp}
2723 %files snmp
2724 %{_mandir}/man5/collectd-snmp.5*
2725 %{_libdir}/%{name}/snmp.so
2726 %endif
2727
2728 %if %{with_snmp_agent}
2729 %files snmp_agent
2730 %{_libdir}/%{name}/snmp_agent.so
2731 %endif
2732
2733 %if %{with_varnish}
2734 %files varnish
2735 %{_libdir}/%{name}/varnish.so
2736 %endif
2737
2738 %if %{with_write_http}
2739 %files write_http
2740 %{_libdir}/%{name}/write_http.so
2741 %endif
2742
2743 %if %{with_write_kafka}
2744 %files write_kafka
2745 %{_libdir}/%{name}/write_kafka.so
2746 %endif
2747
2748 %if %{with_write_prometheus}
2749 %files write_prometheus
2750 %{_libdir}/%{name}/write_prometheus.so
2751 %endif
2752
2753 %if %{with_write_redis}
2754 %files write_redis
2755 %{_libdir}/%{name}/write_redis.so
2756 %endif
2757
2758 %if %{with_write_riemann}
2759 %files write_riemann
2760 %{_libdir}/%{name}/write_riemann.so
2761 %endif
2762
2763 %if %{with_xencpu}
2764 %files xencpu
2765 %{_libdir}/%{name}/xencpu.so
2766 %endif
2767
2768 %if %{with_xmms}
2769 %files xmms
2770 %{_libdir}/%{name}/xmms.so
2771 %endif
2772
2773 %files collection3
2774 %{_localstatedir}/www/collection3
2775 %{_sysconfdir}/httpd/conf.d/collection3.conf
2776
2777 %files php-collection
2778 %{_localstatedir}/www/php-collection
2779 %{_sysconfdir}/httpd/conf.d/php-collection.conf
2780
2781 %files contrib
2782 %doc contrib/
2783
2784 %changelog
2785 * Thu Sep 28 2017 Jakub Jankowski <shasta@toxcorp.com> - 5.7.1-9
2786 - Fix mbmon/mcelog build options
2787
2788 * Thu Sep 28 2017 xakru <calvinxakru@gmail.com> - 5.7.1-8
2789 - Add new libcollectdclient/network_parse
2790 - Add new libcollectdclient/server
2791 - Add new libcollectdclient/types
2792 - Add new synproxy plugin
2793
2794 * Fri Aug 18 2017 Ruben Kerkhof <ruben@rubenkerkhof.com> - 5.7.1-7
2795 - Add new intel_pmu plugin
2796
2797 * Sun Mar 05 2017 Ruben Kerkhof <ruben@rubenkerkhof.com> - 5.7.1-6
2798 - Move recently added plugins to subpackages
2799
2800 * Sun Mar 05 2017 Ruben Kerkhof <ruben@rubenkerkhof.com> - 5.7.1-5
2801 - Add new ovs_stats plugin
2802
2803 * Sun Mar 05 2017 Ruben Kerkhof <ruben@rubenkerkhof.com> - 5.7.1-4
2804 - Don't enable XFS support on RHEL6, it is missing for i386
2805
2806 * Sun Mar 05 2017 Ruben Kerkhof <ruben@rubenkerkhof.com> - 5.7.1-3
2807 - Add dpdkevents plugin, disabled by default
2808
2809 * Wed Feb 22 2017 Ruben Kerkhof <ruben@rubenkerkhof.com> - 5.7.1-2
2810 - Enable XFS support in df plugin
2811 - Fix bogus date in changelog
2812
2813 * Sun Jan 01 2017 Marc Fournier <marc.fournier@camptocamp.com> - 5.7.1-1
2814 - New upstream version
2815
2816 * Sat Dec 31 2016 Ruben Kerkhof <ruben@rubenkerkhof.com> - 5.7.0-4
2817 - Add new ovs_events plugin
2818
2819 * Sat Dec 31 2016 Ruben Kerkhof <ruben@rubenkerkhof.com> - 5.7.0-3
2820 - Add new mcelog plugin
2821
2822 * Tue Nov 29 2016 Ruben Kerkhof <ruben@rubenkerkhof.com> - 5.7.0-2
2823 - Disable redis plugin on RHEL 6, hiredis has been retired from EPEL6
2824
2825 * Mon Oct 10 2016 Marc Fournier <marc.fournier@camptocamp.com> - 5.7.0-1
2826 - New PRE-RELEASE version
2827 - New plugins enabled by default: hugepages, write_prometheus
2828 - New plugins disabled by default: dpdkstat, intel_rdt
2829
2830 * Mon Oct 10 2016 Victor Demonchy <v.demonchy@criteo.com> - 5.6.1-1
2831 - New upstream version
2832
2833 * Sun Aug 14 2016 Ruben Kerkhof <ruben@rubenkerkhof.com> - 5.6.0-1
2834 - New upstream version
2835 - New plugins enabled by default: chrony, cpusleep, gps, lua, mqtt, notify_nagios
2836 - New plugins disabled by default: grpc, xencpu, zone
2837
2838 * Tue Jul 26 2016 Ruben Kerkhof <ruben@rubenkerkhof.com> - 5.5.2-1
2839 - New upstream version
2840 - Contains fix for CVE-2016-6254
2841 - Change collectd.org url to https
2842
2843 * Sat Jun 04 2016 Ruben Kerkhof <ruben@rubenkerkhof.com> 5.5.1-1
2844 - New upstream version
2845
2846 * Wed May 27 2015 Marc Fournier <marc.fournier@camptocamp.com> 5.5.0-1
2847 - New upstream version
2848 - New plugins enabled by default: ceph, drbd, log_logstash, write_tsdb, smart,
2849   openldap, redis, write_redis, zookeeper, write_log, write_sensu, ipc,
2850   turbostat, fhcount
2851 - New plugins disabled by default: barometer, write_kafka
2852 - Enable zfs_arc, now supported on Linux
2853 - Install disk plugin in a dedicated package, as it depends on libudev
2854 - use systemd on EL7, sysvinit on EL6 & EL5
2855 - Install collectdctl, collectd-tg and collectd-nagios in collectd-utils.rpm
2856 - Add build-dependency on libcap-devel
2857
2858 * Mon Aug 19 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.4.2-1
2859 - New upstream version
2860 - Build netlink plugin by default
2861 - Enable cgroups, lvm and statsd plugins
2862 - Enable (but don't build by default) mic, aquaero and sigrok plugins
2863 - Enable modbus, memcachec and xmms plugins on RHEL7
2864
2865 * Tue Aug 06 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.3.1-1
2866 - New upstream version
2867 - Added RHEL5 support:
2868   * conditionally disable plugins not building on this platform
2869   * add/specify some build dependencies and options
2870   * replace some RPM macros not available on this platform
2871 - Removed duplicate --enable-aggregation
2872 - Added some comments & usage examples
2873 - Replaced a couple of "Buildrequires" by "BuildRequires"
2874 - Enabled modbus plugin on RHEL6
2875 - Enabled netlink plugin on RHEL6 and RHEL7
2876 - Allow perl plugin to build on RHEL5
2877 - Add support for RHEL7
2878 - Misc perl-related improvements:
2879   * prevent rpmbuild from extracting dependencies from files in /usr/share/doc
2880   * don't package collection3 and php-collection twice
2881   * keep perl scripts from contrib/ in collectd-contrib
2882
2883 * Wed Apr 10 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.3.0-1
2884 - New upstream version
2885 - Enabled write_riemann plugin
2886 - Enabled tail_csv plugin
2887 - Installed collectd-tc manpage
2888
2889 * Fri Jan 11 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-3
2890 - remove dependency on libstatgrab, which isn't required on linux
2891
2892 * Thu Jan 03 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-2
2893 - collection3 and php-collection viewers are now in separate packages
2894
2895 * Fri Dec 21 2012 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-1
2896 - New upstream version
2897 - Enabled aggregation plugin
2898 - Installed collectd-tc
2899 - Added network.h and network_buffer.h to libcollectdclient-devel
2900 - Moved libxml2-devel and libcurl-devel BRs to relevant plugins sections
2901 - Moved libcollectdclient.so from libcollectdclient-devel to libcollectdclient
2902 - Added rrdcached and redis plugin descriptions
2903 - Mentioned new pf plugin in disabled plugins list
2904
2905 * Sun Nov 18 2012 Ruben Kerkhof <ruben@tilaa.nl> 5.1.0-3
2906 - Follow Fedora Packaging Guidelines in java subpackage
2907
2908 * Sat Nov 17 2012 Ruben Kerkhof <ruben@tilaa.nl> 5.1.0-2
2909 - Move perl stuff to perl_vendorlib
2910 - Replace hardcoded paths with macros
2911 - Remove unnecessary Requires
2912 - Removed .a and .la files
2913 - Some other small cleanups
2914
2915 * Fri Nov 16 2012 Marc Fournier <marc.fournier@camptocamp.com> 5.1.0-1
2916 - New upstream version
2917 - Changes to support 5.1.0
2918 - Enabled all buildable plugins based on libraries available on EL6 + EPEL
2919 - All plugins requiring external libraries are now shipped in separate
2920   packages.
2921 - No longer treat Java plugin as an exception, correctly set $JAVA_HOME during
2922   the build process + ensure build deps are installed.
2923 - Dropped per-plugin configuration files, as they tend to diverge from upstream
2924   defaults.
2925 - Moved perl stuff to /usr/share/perl5/
2926 - Don't alter Interval and ReadThreads by default, let the user change this
2927   himself.
2928 - Initscript improvements:
2929   * checks configuration before (re)starting, based on debian's initscript
2930   * use /etc/sysconfig instdead of /etc/default
2931   * include optional $ARGS in arguments passed to collectd.
2932 - Drop collection.cgi from main package, as it's been obsoleted by collection3
2933 - Moved contrib/ to its own package, to avoid cluttering the main package with
2934   non-essential stuff.
2935 - Replaced BuildPrereq by BuildRequires
2936
2937 * Mon Jan 03 2011 Monetate <jason.stelzer@monetate.com> 5.0.1
2938 - New upstream version
2939 - Changes to support 5.0.1
2940
2941 * Mon Jan 04 2010 Rackspace <stu.hood@rackspace.com> 4.9.0
2942 - New upstream version
2943 - Changes to support 4.9.0
2944 - Added support for Java/GenericJMX plugin
2945
2946 * Mon Mar 17 2008 RightScale <support@rightscale.com> 4.3.1
2947 - New upstream version
2948 - Changes to support 4.3.1
2949 - Added More Prereqs to support more plugins
2950 - Added support for perl plugin
2951
2952 * Mon Aug 06 2007 Kjell Randa <Kjell.Randa@broadpark.no> 4.0.6
2953 - New upstream version
2954
2955 * Wed Jul 25 2007 Kjell Randa <Kjell.Randa@broadpark.no> 4.0.5
2956 - New major releas
2957 - Changes to support 4.0.5
2958
2959 * Thu Jan 11 2007 Iain Lea <iain@bricbrac.de> 3.11.0-0
2960 - fixed spec file to build correctly on fedora core
2961 - added improved init.d script to work with chkconfig
2962 - added %%post and %%postun to call chkconfig automatically
2963
2964 * Sun Jul 09 2006 Florian octo Forster <octo@verplant.org> 3.10.0-1
2965 - New upstream version
2966
2967 * Sun Jun 25 2006 Florian octo Forster <octo@verplant.org> 3.9.4-1
2968 - New upstream version
2969
2970 * Thu Jun 01 2006 Florian octo Forster <octo@verplant.org> 3.9.3-1
2971 - New upstream version
2972
2973 * Tue May 09 2006 Florian octo Forster <octo@verplant.org> 3.9.2-1
2974 - New upstream version
2975
2976 * Tue May 09 2006 Florian octo Forster <octo@verplant.org> 3.8.5-1
2977 - New upstream version
2978
2979 * Fri Apr 21 2006 Florian octo Forster <octo@verplant.org> 3.9.1-1
2980 - New upstream version
2981
2982 * Fri Apr 14 2006 Florian octo Forster <octo@verplant.org> 3.9.0-1
2983 - New upstream version
2984 - Added the `apache' package.
2985
2986 * Tue Mar 14 2006 Florian octo Forster <octo@verplant.org> 3.8.2-1
2987 - New upstream version
2988
2989 * Mon Mar 13 2006 Florian octo Forster <octo@verplant.org> 3.8.1-1
2990 - New upstream version
2991
2992 * Thu Mar 09 2006 Florian octo Forster <octo@verplant.org> 3.8.0-1
2993 - New upstream version
2994
2995 * Sat Feb 18 2006 Florian octo Forster <octo@verplant.org> 3.7.2-1
2996 - Include `tape.so' so the build doesn't terminate because of missing files..
2997 - New upstream version
2998
2999 * Sat Feb 04 2006 Florian octo Forster <octo@verplant.org> 3.7.1-1
3000 - New upstream version
3001
3002 * Mon Jan 30 2006 Florian octo Forster <octo@verplant.org> 3.7.0-1
3003 - New upstream version
3004 - Removed the extra `hddtemp' package
3005
3006 * Tue Jan 24 2006 Florian octo Forster <octo@verplant.org> 3.6.2-1
3007 - New upstream version
3008
3009 * Fri Jan 20 2006 Florian octo Forster <octo@verplant.org> 3.6.1-1
3010 - New upstream version
3011
3012 * Fri Jan 20 2006 Florian octo Forster <octo@verplant.org> 3.6.0-1
3013 - New upstream version
3014 - Added config file, `collectd.conf(5)', `df.so'
3015 - Added package `collectd-mysql', dependency on `mysqlclient10 | mysql'
3016
3017 * Wed Dec 07 2005 Florian octo Forster <octo@verplant.org> 3.5.0-1
3018 - New upstream version
3019
3020 * Sat Nov 26 2005 Florian octo Forster <octo@verplant.org> 3.4.0-1
3021 - New upstream version
3022
3023 * Sat Nov 05 2005 Florian octo Forster <octo@verplant.org> 3.3.0-1
3024 - New upstream version
3025
3026 * Wed Oct 26 2005 Florian octo Forster <octo@verplant.org> 3.2.0-1
3027 - New upstream version
3028 - Added statement to remove the `*.la' files. This fixes a problem when
3029   `Unpackaged files terminate build' is in effect.
3030 - Added `processes.so*' to the main package
3031
3032 * Fri Oct 14 2005 Florian octo Forster <octo@verplant.org> 3.1.0-1
3033 - New upstream version
3034 - Added package `collectd-hddtemp'
3035
3036 * Fri Sep 30 2005 Florian octo Forster <octo@verplant.org> 3.0.0-1
3037 - New upstream version
3038 - Split the package into `collectd' and `collectd-sensors'
3039
3040 * Fri Sep 16 2005 Florian octo Forster <octo@verplant.org> 2.1.0-1
3041 - New upstream version
3042
3043 * Sat Sep 10 2005 Florian octo Forster <octo@verplant.org> 2.0.0-1
3044 - New upstream version
3045
3046 * Mon Aug 29 2005 Florian octo Forster <octo@verplant.org> 1.8.0-1
3047 - New upstream version
3048
3049 * Thu Aug 25 2005 Florian octo Forster <octo@verplant.org> 1.7.0-1
3050 - New upstream version
3051
3052 * Sun Aug 21 2005 Florian octo Forster <octo@verplant.org> 1.6.0-1
3053 - New upstream version
3054
3055 * Sun Jul 17 2005 Florian octo Forster <octo@verplant.org> 1.5.1-1
3056 - New upstream version
3057
3058 * Sun Jul 17 2005 Florian octo Forster <octo@verplant.org> 1.5-1
3059 - New upstream version
3060
3061 * Mon Jul 11 2005 Florian octo Forster <octo@verplant.org> 1.4.2-1
3062 - New upstream version
3063
3064 * Sat Jul 09 2005 Florian octo Forster <octo@verplant.org> 1.4-1
3065 - Built on RedHat 7.3