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.
9 # q: And how can I do that ?
10 # a: By following these instructions, using mock:
12 # - install and configure mock (https://fedoraproject.org/wiki/Projects/Mock)
14 # - enable the EPEL repository (http://dl.fedoraproject.org/pub/epel/) in the
15 # configuration files for your target systems (/etc/mock/*.cfg).
17 # - copy this file in your ~/rpmbuild/SPECS/ directory
19 # - fetch the desired collectd release file from https://collectd.org/files/
20 # and save it in your ~/rpmbuild/SOURCES/ directory
22 # - build the SRPM first:
23 # mock -r centos-6-x86_64 --buildsrpm --spec ~/rpmbuild/SPECS/collectd.spec \
24 # --sources ~/rpmbuild/SOURCES/
26 # - then build the RPMs:
27 # mock -r centos-6-x86_64 --no-clean --rebuild \
28 # /var/lib/mock/centos-6-x86_64/result/collectd-X.Y.Z-NN.src.rpm
30 # - you can also optionally enable/disable plugins which are disabled/enabled
32 # mock -r centos-6-x86_64 --no-clean --without=java --with=oracle --rebuild \
33 # /var/lib/mock/centos-6-x86_64/result/collectd-X.Y.Z-NN.src.rpm
36 %global _hardened_build 1
38 # plugins only buildable on RHEL6
39 # (NB: %{elN} macro is not available on RHEL < 6)
40 %{?el6:%global _has_libyajl 1}
41 %{?el6:%global _has_recent_libpcap 1}
42 %{?el6:%global _has_recent_sockios_h 1}
43 %{?el6:%global _has_recent_libganglia 1}
44 %{?el6:%global _has_working_libiptc 1}
45 %{?el6:%global _has_ip_vs_h 1}
46 %{?el6:%global _has_lvm2app_h 1}
47 %{?el6:%global _has_libmodbus 1}
48 %{?el6:%global _has_libudev 1}
49 %{?el6:%global _has_iproute 1}
51 %{?el7:%global _has_libyajl 1}
52 %{?el7:%global _has_recent_libpcap 1}
53 %{?el7:%global _has_recent_sockios_h 1}
54 %{?el7:%global _has_working_libiptc 1}
55 %{?el7:%global _has_ip_vs_h 1}
56 %{?el7:%global _has_lvm2app_h 1}
57 %{?el7:%global _has_libudev 1}
58 %{?el7:%global _has_recent_librrd 1}
59 %{?el7:%global _has_varnish4 1}
60 %{?el7:%global _has_broken_libmemcached 1}
61 %{?el7:%global _has_iproute 1}
63 # plugins enabled by default
64 %define with_aggregation 0%{!?_without_aggregation:1}
65 %define with_amqp 0%{!?_without_amqp:1}
66 %define with_apache 0%{!?_without_apache:1}
67 %define with_apcups 0%{!?_without_apcups:1}
68 %define with_ascent 0%{!?_without_ascent:1}
69 %define with_battery 0%{!?_without_battery:1}
70 %define with_bind 0%{!?_without_bind:1}
71 %define with_cgroups 0%{!?_without_cgroups:1}
72 %define with_conntrack 0%{!?_without_conntrack:1}
73 %define with_contextswitch 0%{!?_without_contextswitch:1}
74 %define with_cpu 0%{!?_without_cpu:1}
75 %define with_cpufreq 0%{!?_without_cpufreq:1}
76 %define with_csv 0%{!?_without_csv:1}
77 %define with_curl 0%{!?_without_curl:1}
78 %define with_curl_json 0%{!?_without_curl_json:0%{?_has_libyajl}}
79 %define with_curl_xml 0%{!?_without_curl_xml:1}
80 %define with_dbi 0%{!?_without_dbi:1}
81 %define with_df 0%{!?_without_df:1}
82 %define with_disk 0%{!?_without_disk:1}
83 %define with_dns 0%{!?_without_dns:0%{?_has_recent_libpcap}}
84 %define with_drbd 0%{!?_without_drbd:1}
85 %define with_email 0%{!?_without_email:1}
86 %define with_entropy 0%{!?_without_entropy:1}
87 %define with_ethstat 0%{!?_without_ethstat:0%{?_has_recent_sockios_h}}
88 %define with_exec 0%{!?_without_exec:1}
89 %define with_filecount 0%{!?_without_filecount:1}
90 %define with_fscache 0%{!?_without_fscache:1}
91 %define with_gmond 0%{!?_without_gmond:0%{?_has_recent_libganglia}}
92 %define with_hddtemp 0%{!?_without_hddtemp:1}
93 %define with_interface 0%{!?_without_interface:1}
94 %define with_ipmi 0%{!?_without_ipmi:1}
95 %define with_iptables 0%{!?_without_iptables:0%{?_has_working_libiptc}}
96 %define with_ipvs 0%{!?_without_ipvs:0%{?_has_ip_vs_h}}
97 %define with_irq 0%{!?_without_irq:1}
98 %define with_java 0%{!?_without_java:1}
99 %define with_libvirt 0%{!?_without_libvirt:1}
100 %define with_load 0%{!?_without_load:1}
101 %define with_logfile 0%{!?_without_logfile:1}
102 %define with_log_logstash 0%{!?_without_log_logstash:0%{?_has_libyajl}}
103 %define with_lvm 0%{!?_without_lvm:0%{?_has_lvm2app_h}}
104 %define with_madwifi 0%{!?_without_madwifi:1}
105 %define with_mbmon 0%{!?_without_mbmon:1}
106 %define with_md 0%{!?_without_md:1}
107 %define with_memcachec 0%{!?_without_memcachec:0%{!?_has_broken_libmemcached:1}}
108 %define with_memcached 0%{!?_without_memcached:1}
109 %define with_memory 0%{!?_without_memory:1}
110 %define with_multimeter 0%{!?_without_multimeter:1}
111 %define with_modbus 0%{!?_without_modbus:0%{?_has_libmodbus}}
112 %define with_mysql 0%{!?_without_mysql:1}
113 %define with_netlink 0%{!?_without_netlink:0%{?_has_iproute}}
114 %define with_network 0%{!?_without_network:1}
115 %define with_nfs 0%{!?_without_nfs:1}
116 %define with_nginx 0%{!?_without_nginx:1}
117 %define with_notify_desktop 0%{!?_without_notify_desktop:1}
118 %define with_notify_email 0%{!?_without_notify_email:1}
119 %define with_ntpd 0%{!?_without_ntpd:1}
120 %define with_numa 0%{!?_without_numa:1}
121 %define with_nut 0%{!?_without_nut:1}
122 %define with_olsrd 0%{!?_without_olsrd:1}
123 %define with_openvpn 0%{!?_without_openvpn:1}
124 %define with_perl 0%{!?_without_perl:1}
125 %define with_pinba 0%{!?_without_pinba:1}
126 %define with_ping 0%{!?_without_ping:1}
127 %define with_postgresql 0%{!?_without_postgresql:1}
128 %define with_powerdns 0%{!?_without_powerdns:1}
129 %define with_processes 0%{!?_without_processes:1}
130 %define with_protocols 0%{!?_without_protocols:1}
131 %define with_python 0%{!?_without_python:1}
132 %define with_rrdcached 0%{!?_without_rrdcached:0%{?_has_recent_librrd}}
133 %define with_rrdtool 0%{!?_without_rrdtool:1}
134 %define with_sensors 0%{!?_without_sensors:1}
135 %define with_serial 0%{!?_without_serial:1}
136 %define with_snmp 0%{!?_without_snmp:1}
137 %define with_statsd 0%{!?_without_statsd:1}
138 %define with_swap 0%{!?_without_swap:1}
139 %define with_syslog 0%{!?_without_syslog:1}
140 %define with_table 0%{!?_without_table:1}
141 %define with_tail 0%{!?_without_tail:1}
142 %define with_tail_csv 0%{!?_without_tail_csv:1}
143 %define with_tcpconns 0%{!?_without_tcpconns:1}
144 %define with_teamspeak2 0%{!?_without_teamspeak2:1}
145 %define with_ted 0%{!?_without_ted:1}
146 %define with_thermal 0%{!?_without_thermal:1}
147 %define with_threshold 0%{!?_without_threshold: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:0%{!?_has_varnish4:1}}
153 %define with_vmem 0%{!?_without_vmem:1}
154 %define with_vserver 0%{!?_without_vserver:1}
155 %define with_wireless 0%{!?_without_wireless:1}
156 %define with_write_graphite 0%{!?_without_write_graphite:1}
157 %define with_write_http 0%{!?_without_write_http:1}
158 %define with_write_riemann 0%{!?_without_write_riemann:1}
159 %define with_write_tsdb 0%{!?_without_write_tsdb:1}
160 %define with_zfs_arc 0%{!?_without_zfs_arc:1}
162 # Plugins not built by default because of dependencies on libraries not
163 # available in RHEL or EPEL:
165 # plugin apple_sensors disabled, requires a Mac
166 %define with_apple_sensors 0%{!?_without_apple_sensors:0}
167 # plugin aquaero disabled, requires a libaquaero5
168 %define with_aquaero 0%{!?_without_aquaero:0}
169 # plugin barometer disabled, requires a libi2c
170 %define with_barometer 0%{!?_without_barometer:0}
171 # plugin lpar disabled, requires AIX
172 %define with_lpar 0%{!?_without_lpar:0}
173 # plugin mic disabled, requires Mic
174 %define with_mic 0%{!?_without_mic:0}
175 # plugin netapp disabled, requires libnetapp
176 %define with_netapp 0%{!?_without_netapp:0}
177 # plugin onewire disabled, requires libowfs
178 %define with_onewire 0%{!?_without_onewire:0}
179 # plugin oracle disabled, requires Oracle
180 %define with_oracle 0%{!?_without_oracle:0}
181 # plugin oracle disabled, requires BSD
182 %define with_pf 0%{!?_without_pf:0}
183 # plugin redis disabled, requires credis
184 %define with_redis 0%{!?_without_redis:0}
185 # plugin routeros disabled, requires librouteros
186 %define with_routeros 0%{!?_without_routeros:0}
187 # plugin sigrok disabled, requires libsigrok
188 %define with_sigrok 0%{!?_without_sigrok:0}
189 # plugin tape disabled, requires libkstat
190 %define with_tape 0%{!?_without_tape:0}
191 # plugin tokyotyrant disabled, requires tcrdb.h
192 %define with_tokyotyrant 0%{!?_without_tokyotyrant:0}
193 # plugin write_kafka disabled, requires librdkafka
194 %define with_write_kafka 0%{!?_without_write_kafka:0}
195 # plugin write_mongodb disabled, requires libmongoc
196 %define with_write_mongodb 0%{!?_without_write_mongodb:0}
197 # plugin write_redis disabled, requires credis
198 %define with_write_redis 0%{!?_without_write_redis:0}
199 # plugin xmms disabled, requires xmms
200 %define with_xmms 0%{!?_without_xmms:0}
202 Summary: Statistics collection daemon for filling RRD files
206 URL: http://collectd.org
207 Source: http://collectd.org/files/%{name}-%{version}.tar.bz2
209 Group: System Environment/Daemons
210 BuildRoot: %{_tmppath}/%{name}-%{version}-root
211 BuildRequires: libgcrypt-devel, kernel-headers
212 Vendor: collectd development team <collectd@verplant.org>
214 Requires(post): chkconfig
215 Requires(preun): chkconfig, initscripts
216 Requires(postun): initscripts
219 collectd is a small daemon which collects system information periodically and
220 provides mechanisms to monitor and store the values in a variety of ways. It
221 is written in C for performance. Since the daemon doesn't need to start up
222 every time it wants to update the values it's very fast and easy on the
223 system. Also, the statistics are very fine grained since the files are updated
224 every 10 seconds by default.
228 Summary: AMQP plugin for collectd
229 Group: System Environment/Daemons
230 Requires: %{name}%{?_isa} = %{version}-%{release}
231 BuildRequires: librabbitmq-devel
233 The AMQP plugin transmits or receives values collected by collectd via the
234 Advanced Message Queuing Protocol (AMQP).
239 Summary: Apache plugin for collectd
240 Group: System Environment/Daemons
241 Requires: %{name}%{?_isa} = %{version}-%{release}
242 BuildRequires: curl-devel
244 This plugin collects data provided by Apache's `mod_status'.
249 Summary: aquaero plugin for collectd
250 Group: System Environment/Daemons
251 Requires: %{name}%{?_isa} = %{version}-%{release}
253 Various sensors in the Aquaero 5 watercooling board made by Aquacomputer.
258 Summary: Ascent plugin for collectd
259 Group: System Environment/Daemons
260 Requires: %{name}%{?_isa} = %{version}-%{release}
261 BuildRequires: libxml2-devel, curl-devel
263 The Ascent plugin reads and parses the statistics page of Ascent, a free and
264 open-source server software for the game World of Warcraft by Blizzard
268 %if %{with_barometer}
270 Summary: barometer plugin for collectd
271 Group: System Environment/Daemons
272 Requires: %{name}%{?_isa} = %{version}-%{release}
273 %description barometer
274 Collects pressure and temperature from digital barometers.
279 Summary: Bind plugin for collectd
280 Group: System Environment/Daemons
281 Requires: %{name}%{?_isa} = %{version}-%{release}
282 BuildRequires: libxml2-devel, curl-devel
284 The BIND plugin retrieves this information that's encoded in XML and provided
285 via HTTP and submits the values to collectd.
290 Summary: Curl plugin for collectd
291 Group: System Environment/Daemons
292 Requires: %{name}%{?_isa} = %{version}-%{release}
293 BuildRequires: curl-devel
295 The cURL plugin uses libcurl to read files and then parses them according to
299 %if %{with_curl_json}
301 Summary: Curl_json plugin for collectd
302 Group: System Environment/Daemons
303 Requires: %{name}%{?_isa} = %{version}-%{release}
304 BuildRequires: curl-devel, yajl-devel
305 %description curl_json
306 The cURL-JSON plugin queries JavaScript Object Notation (JSON) data using the
307 cURL library and parses it according to the user's configuration.
312 Summary: Curl_xml plugin for collectd
313 Group: System Environment/Daemons
314 Requires: %{name}%{?_isa} = %{version}-%{release}
315 BuildRequires: curl-devel, libxml2-devel
316 %description curl_xml
317 The cURL-XML plugin reads files using libcurl and parses it as Extensible
318 Markup Language (XML).
323 Summary: DBI plugin for collectd
324 Group: System Environment/Daemons
325 Requires: %{name}%{?_isa} = %{version}-%{release}
326 BuildRequires: libdbi-devel
328 The DBI plugin uses libdbi, a database abstraction library, to execute SQL
329 statements on a database and read back the result.
334 Summary: disk plugin for collectd
335 Group: System Environment/Daemons
336 Requires: %{name}%{?_isa} = %{version}-%{release}
337 %{?_has_libudev:BuildRequires: libudev-devel}
339 The "disk" plugin collects information about the usage of physical disks and
340 logical disks (partitions).
345 Summary: DNS plugin for collectd
346 Group: System Environment/Daemons
347 Requires: %{name}%{?_isa} = %{version}-%{release}, libpcap >= 1.0
348 BuildRequires: libpcap-devel >= 1.0
350 The DNS plugin has a similar functionality to dnstop: It uses libpcap to get a
351 copy of all traffic from/to port UDP/53 (that's the DNS port), interprets the
352 packets and collects statistics of your DNS traffic.
357 Summary: Email plugin for collectd
358 Group: System Environment/Daemons
359 Requires: %{name}%{?_isa} = %{version}-%{release}, spamassassin
361 This plugin collects data provided by spamassassin.
366 Summary: Gmond plugin for collectd
367 Group: System Environment/Daemons
368 Requires: %{name}%{?_isa} = %{version}-%{release}
369 BuildRequires: ganglia-devel
371 The gmond plugin subscribes to a Multicast group to receive data from gmond,
372 the client daemon of the Ganglia project.
377 Summary: Hddtemp plugin for collectd
378 Group: System Environment/Daemons
379 Requires: %{name}%{?_isa} = %{version}-%{release}, hddtemp
381 The HDDTemp plugin collects the temperature of hard disks. The temperatures are
382 provided via SMART and queried by the external hddtemp daemon.
387 Summary: IPMI plugin for collectd
388 Group: System Environment/Daemons
389 Requires: %{name}%{?_isa} = %{version}-%{release}
390 BuildRequires: OpenIPMI-devel
392 The IPMI plugin uses the OpenIPMI library to read hardware sensors from servers
393 using the Intelligent Platform Management Interface (IPMI).
398 Summary: IPtables plugin for collectd
399 Group: System Environment/Daemons
400 Requires: %{name}%{?_isa} = %{version}-%{release}
401 BuildRequires: iptables-devel
402 %description iptables
403 The IPtables plugin can gather statistics from your ip_tables based packet
404 filter (aka. firewall) for both the IPv4 and the IPv6 protocol. It can collect
405 the byte- and packet-counters of selected rules and submit them to collectd.
410 Summary: Java plugin for collectd
411 Group: System Environment/Daemons
412 Requires: %{name}%{?_isa} = %{version}-%{release}
413 BuildRequires: java-devel, jpackage-utils
414 Requires: java, jpackage-utils
416 This plugin for collectd allows plugins to be written in Java and executed
422 Summary: Libvirt plugin for collectd
423 Group: System Environment/Daemons
424 Requires: %{name}%{?_isa} = %{version}-%{release}
425 BuildRequires: libvirt-devel
427 This plugin collects information from virtualized guests.
430 %if %{with_log_logstash}
431 %package log_logstash
432 Summary: log_logstash plugin for collectd
433 Group: System Environment/Daemons
434 Requires: %{name}%{?_isa} = %{version}-%{release}
435 BuildRequires: yajl-devel
436 %description log_logstash
437 This plugin logs in logstash JSON format
442 Summary: LVM plugin for collectd
443 Group: System Environment/Daemons
444 Requires: %{name}%{?_isa} = %{version}-%{release}
445 BuildRequires: lvm2-devel
447 This plugin collects size of “Logical Volumes” (LV) and “Volume Groups” (VG)
448 of Linux' “Logical Volume Manager” (LVM).
451 %if %{with_memcachec}
453 Summary: Memcachec plugin for collectd
454 Group: System Environment/Daemons
455 Requires: %{name}%{?_isa} = %{version}-%{release}
456 BuildRequires: libmemcached-devel
457 %description memcachec
458 The Memcachec plugin uses libmemcached to read statistics from a Memcached
459 instance. Note that another plugin, named `memcached', exists and does a
460 similar job, without requiring the installation of libmemcached.
465 Summary: mic plugin for collectd
466 Group: System Environment/Daemons
467 Requires: %{name}%{?_isa} = %{version}-%{release}
469 The mic plugin collects CPU usage, memory usage, temperatures and power
470 consumption from Intel Many Integrated Core (MIC) CPUs.
475 Summary: modbus plugin for collectd
476 Group: System Environment/Daemons
477 Requires: %{name}%{?_isa} = %{version}-%{release}
478 BuildRequires: libmodbus-devel
480 The modbus plugin collects values from Modbus/TCP enabled devices
485 Summary: MySQL plugin for collectd
486 Group: System Environment/Daemons
487 Requires: %{name}%{?_isa} = %{version}-%{release}
488 BuildRequires: mysql-devel
490 MySQL querying plugin. This plugin provides data of issued commands, called
491 handlers and database traffic.
496 Summary: netlink plugin for collectd
497 Group: System Environment/Daemons
498 Requires: %{name}%{?_isa} = %{version}-%{release}
499 BuildRequires: libmnl-devel, iproute-devel
501 The netlink plugin collects detailed network interface and routing statistics.
506 Summary: Nginx plugin for collectd
507 Group: System Environment/Daemons
508 Requires: %{name}%{?_isa} = %{version}-%{release}
509 BuildRequires: curl-devel
511 This plugin gets data provided by nginx.
514 %if %{with_notify_desktop}
515 %package notify_desktop
516 Summary: Notify_desktop plugin for collectd
517 Group: System Environment/Daemons
518 Requires: %{name}%{?_isa} = %{version}-%{release}
519 BuildRequires: libnotify-devel, gtk2-devel
520 %description notify_desktop
521 The Notify Desktop plugin uses libnotify to display notifications to the user
522 via the desktop notification specification, i. e. on an X display.
525 %if %{with_notify_email}
526 %package notify_email
527 Summary: Notify_email plugin for collectd
528 Group: System Environment/Daemons
529 Requires: %{name}%{?_isa} = %{version}-%{release}
530 BuildRequires: libesmtp-devel
531 %description notify_email
532 The Notify Email plugin uses libESMTP to send notifications to a configured
538 Summary: Nut plugin for collectd
539 Group: System Environment/Daemons
540 Requires: %{name}%{?_isa} = %{version}-%{release}
541 BuildRequires: nut-devel
543 This plugin for collectd provides Network UPS Tools support.
548 Summary: Perl plugin for collectd
549 Group: System Environment/Daemons
550 Requires: %{name}%{?_isa} = %{version}-%{release}
551 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
553 BuildRequires: perl-ExtUtils-Embed
558 The Perl plugin embeds a Perl interpreter into collectd and exposes the
559 application programming interface (API) to Perl-scripts.
564 Summary: Pinba plugin for collectd
565 Group: System Environment/Daemons
566 Requires: %{name}%{?_isa} = %{version}-%{release}
567 BuildRequires: protobuf-c-devel
569 The Pinba plugin receives and dispatches timing values from Pinba, a profiling
575 Summary: Ping plugin for collectd
576 Group: System Environment/Daemons
577 Requires: %{name}%{?_isa} = %{version}-%{release}
578 BuildRequires: liboping-devel
580 The Ping plugin measures network latency using ICMP “echo requests”, usually
584 %if %{with_postgresql}
586 Summary: PostgreSQL plugin for collectd
587 Group: System Environment/Daemons
588 Requires: %{name}%{?_isa} = %{version}-%{release}
589 BuildRequires: postgresql-devel
590 %description postgresql
591 The PostgreSQL plugin connects to and executes SQL statements on a PostgreSQL
597 Summary: Python plugin for collectd
598 Group: System Environment/Daemons
599 Requires: %{name}%{?_isa} = %{version}-%{release}
601 BuildRequires: python-devel
603 BuildRequires: python26-devel
606 The Python plugin embeds a Python interpreter into collectd and exposes the
607 application programming interface (API) to Python-scripts.
612 Summary: Redis plugin for collectd
613 Group: System Environment/Daemons
614 Requires: %{name}%{?_isa} = %{version}-%{release}
615 BuildRequires: credis-devel
617 The Redis plugin connects to one or more instances of Redis, a key-value store,
618 and collects usage information using the credis library.
621 %if %{with_rrdcached}
623 Summary: RRDCached plugin for collectd
624 Group: System Environment/Daemons
625 Requires: %{name}%{?_isa} = %{version}-%{release}, rrdtool >= 1.4
626 BuildRequires: rrdtool-devel
627 %description rrdcached
628 The RRDCacheD plugin connects to the “RRD caching daemon”, rrdcached and
629 submits updates for RRD files to that daemon.
634 Summary: RRDtool plugin for collectd
635 Group: System Environment/Daemons
636 Requires: %{name}%{?_isa} = %{version}-%{release}
637 BuildRequires: rrdtool-devel
639 The RRDtool plugin writes values to RRD-files using librrd.
644 Summary: Sensors plugin for collectd
645 Group: System Environment/Daemons
646 Requires: %{name}%{?_isa} = %{version}-%{release}
647 BuildRequires: lm_sensors-devel
649 This plugin for collectd provides querying of sensors supported by lm_sensors.
654 Summary: sigrok plugin for collectd
655 Group: System Environment/Daemons
656 Requires: %{name}%{?_isa} = %{version}-%{release}
658 Uses libsigrok as a backend, allowing any sigrok-supported device to have its
659 measurements fed to collectd. This includes multimeters, sound level meters,
660 thermometers, and much more.
665 Summary: SNMP plugin for collectd
666 Group: System Environment/Daemons
667 Requires: %{name}%{?_isa} = %{version}-%{release}
668 BuildRequires: net-snmp-devel
670 This plugin for collectd allows querying of network equipment using SNMP.
675 Summary: Varnish plugin for collectd
676 Group: System Environment/Daemons
677 Requires: %{name}%{?_isa} = %{version}-%{release}
678 BuildRequires: varnish-libs-devel
680 The Varnish plugin collects information about Varnish, an HTTP accelerator.
683 %if %{with_write_http}
685 Summary: Write-HTTP plugin for collectd
686 Group: System Environment/Daemons
687 Requires: %{name}%{?_isa} = %{version}-%{release}
688 BuildRequires: curl-devel
689 %description write_http
690 The Write-HTTP plugin sends the values collected by collectd to a web-server
691 using HTTP POST requests.
694 %if %{with_write_kafka}
696 Summary: Write-kafka plugin for collectd
697 Group: System Environment/Daemons
698 Requires: %{name}%{?_isa} = %{version}-%{release}
699 BuildRequires: rdkafka-devel
700 %description write_kafka
701 The write_kafka plugin sends values to kafka, a distributed messaging system.
704 %if %{with_write_redis}
706 Summary: Write-Redis plugin for collectd
707 Group: System Environment/Daemons
708 Requires: %{name}%{?_isa} = %{version}-%{release}
709 BuildRequires: credis-devel
710 %description write_redis
711 The Write Redis plugin stores values in Redis, a “data structures server”.
714 %if %{with_write_riemann}
715 %package write_riemann
716 Summary: riemann plugin for collectd
717 Group: System Environment/Daemons
718 Requires: %{name}%{?_isa} = %{version}-%{release}
719 BuildRequires: protobuf-c-devel
720 %description write_riemann
721 The riemann plugin submits values to Riemann, an event stream processor.
725 Summary: Web-based viewer for collectd
726 Group: System Environment/Daemons
727 Requires: %{name}%{?_isa} = %{version}-%{release}
729 %description collection3
730 collection3 is a graphing front-end for the RRD files created by and filled
731 with collectd. It is written in Perl and should be run as an CGI-script.
732 Graphs are generated on-the-fly, so no cron job or similar is necessary.
734 %package php-collection
735 Summary: collect php webfrontent
736 Group: System Environment/Daemons
737 Requires: collectd = %{version}-%{release}
740 Requires: php-rrdtool
741 %description php-collection
742 PHP graphing frontend for RRD files created by and filled with collectd.
745 Summary: Contrib files for collectd
746 Group: System Environment/Daemons
747 Requires: %{name}%{?_isa} = %{version}-%{release}
749 All the files found under contrib/ in the source tree are bundled in this
752 %package -n libcollectdclient
753 Summary: Collectd client library
754 Group: System Environment/Daemons
755 %description -n libcollectdclient
756 Collectd client library
758 %package -n libcollectdclient-devel
759 Summary: Development files for libcollectdclient
760 Group: System Environment/Daemons
762 Requires: libcollectdclient%{?_isa} = %{version}-%{release}
763 %description -n libcollectdclient-devel
764 Development files for libcollectdclient
771 %if %{with_aggregation}
772 %define _with_aggregation --enable-aggregation
774 %define _with_aggregation --disable-aggregation
778 %define _with_amqp --enable-amqp
780 %define _with_amqp --disable-amqp
784 %define _with_apache --enable-apache
786 %define _with_apache --disable-apache
790 %define _with_apcups --enable-apcups
792 %define _with_apcups --disable-apcups
795 %if %{with_apple_sensors}
796 %define _with_apple_sensors --enable-apple_sensors
798 %define _with_apple_sensors --disable-apple_sensors
802 %define _with_aquaero --enable-aquaero
804 %define _with_aquaero --disable-aquaero
808 %define _with_ascent --enable-ascent
810 %define _with_ascent --disable-ascent
813 %if %{with_barometer}
814 %define _with_barometer --enable-barometer
816 %define _with_barometer --disable-barometer
820 %define _with_battery --enable-battery
822 %define _with_battery --disable-battery
826 %define _with_bind --enable-bind
828 %define _with_bind --disable-bind
832 %define _with_cgroups --enable-cgroups
834 %define _with_cgroups --disable-cgroups
837 %if %{with_conntrack}
838 %define _with_conntrack --enable-conntrack
840 %define _with_conntrack --disable-conntrack
843 %if %{with_contextswitch}
844 %define _with_contextswitch --enable-contextswitch
846 %define _with_contextswitch --disable-contextswitch
850 %define _with_cpu --enable-cpu
852 %define _with_cpu --disable-cpu
856 %define _with_cpufreq --enable-cpufreq
858 %define _with_cpufreq --disable-cpufreq
862 %define _with_csv --enable-csv
864 %define _with_csv --disable-csv
868 %define _with_curl --enable-curl
870 %define _with_curl --disable-curl
873 %if %{with_curl_json}
874 %define _with_curl_json --enable-curl_json
876 %define _with_curl_json --disable-curl_json
880 %define _with_curl_xml --enable-curl_xml
882 %define _with_curl_xml --disable-curl_xml
886 %define _with_dbi --enable-dbi
888 %define _with_dbi --disable-dbi --without-libdbi
892 %define _with_df --enable-df
894 %define _with_df --disable-df
898 %define _with_disk --enable-disk
900 %define _with_disk --disable-disk
904 %define _with_dns --enable-dns
906 %define _with_dns --disable-dns
910 %define _with_drbd --enable-drbd
912 %define _with_drbd --disable-drbd
916 %define _with_email --enable-email
918 %define _with_email --disable-email
922 %define _with_entropy --enable-entropy
924 %define _with_entropy --disable-entropy
928 %define _with_ethstat --enable-ethstat
930 %define _with_ethstat --disable-ethstat
934 %define _with_exec --enable-exec
936 %define _with_exec --disable-exec
939 %if %{with_filecount}
940 %define _with_filecount --enable-filecount
942 %define _with_filecount --disable-filecount
946 %define _with_fscache --enable-fscache
948 %define _with_fscache --disable-fscache
952 %define _with_gmond --enable-gmond
954 %define _with_gmond --disable-gmond
958 %define _with_hddtemp --enable-hddtemp
960 %define _with_hddtemp --disable-hddtemp
963 %if %{with_interface}
964 %define _with_interface --enable-interface
966 %define _with_interface --disable-interface
970 %define _with_ipmi --enable-ipmi
972 %define _with_ipmi --disable-ipmi
976 %define _with_iptables --enable-iptables
978 %define _with_iptables --disable-iptables
982 %define _with_ipvs --enable-ipvs
984 %define _with_ipvs --disable-ipvs
988 %define _with_irq --enable-irq
990 %define _with_irq --disable-irq
994 %define _with_java --enable-java --with-java=%{java_home}/
996 %define _with_java --disable-java
1000 %define _with_libvirt --enable-libvirt
1002 %define _with_libvirt --disable-libvirt
1006 %define _with_load --enable-load
1008 %define _with_load --disable-load
1012 %define _with_logfile --enable-logfile
1014 %define _with_logfile --disable-logfile
1017 %if %{with_log_logstash}
1018 %define _with_log_logstash --enable-log_logstash
1020 %define _with_log_logstash --disable-log_logstash
1024 %define _with_lpar --enable-lpar
1026 %define _with_lpar --disable-lpar
1030 %define _with_lvm --enable-lvm
1032 %define _with_lvm --disable-lvm
1036 %define _with_madwifi --enable-madwifi
1038 %define _with_madwifi --disable-madwifi
1042 %define _with_mbmon --enable-mbmon
1044 %define _with_mbmon --disable-mbmon
1048 %define _with_md --enable-md
1050 %define _with_md --disable-md
1053 %if %{with_memcachec}
1054 %define _with_memcachec --enable-memcachec
1056 %define _with_memcachec --disable-memcachec
1059 %if %{with_memcached}
1060 %define _with_memcached --enable-memcached
1062 %define _with_memcached --disable-memcached
1066 %define _with_memory --enable-memory
1068 %define _with_memory --disable-memory
1072 %define _with_mic --enable-mic
1074 %define _with_mic --disable-mic
1078 %define _with_modbus --enable-modbus
1080 %define _with_modbus --disable-modbus
1083 %if %{with_multimeter}
1084 %define _with_multimeter --enable-multimeter
1086 %define _with_multimeter --disable-multimeter
1090 %define _with_mysql --enable-mysql
1092 %define _with_mysql --disable-mysql
1096 %define _with_netapp --enable-netapp
1098 %define _with_netapp --disable-netapp
1102 %define _with_netlink --enable-netlink
1104 %define _with_netlink --disable-netlink
1108 %define _with_network --enable-network
1110 %define _with_network --disable-network
1114 %define _with_nfs --enable-nfs
1116 %define _with_nfs --disable-nfs
1120 %define _with_nginx --enable-nginx
1122 %define _with_nginx --disable-nginx
1125 %if %{with_notify_desktop}
1126 %define _with_notify_desktop --enable-notify_desktop
1128 %define _with_notify_desktop --disable-notify_desktop
1131 %if %{with_notify_email}
1132 %define _with_notify_email --enable-notify_email
1134 %define _with_notify_email --disable-notify_email --without-libesmpt
1138 %define _with_ntpd --enable-ntpd
1140 %define _with_ntpd --disable-ntpd
1144 %define _with_numa --enable-numa
1146 %define _with_numa --disable-numa
1150 %define _with_nut --enable-nut
1152 %define _with_nut --disable-nut
1156 %define _with_olsrd --enable-olsrd
1158 %define _with_olsrd --disable-olsrd
1162 %define _with_onewire --enable-onewire
1164 %define _with_onewire --disable-onewire
1168 %define _with_openvpn --enable-openvpn
1170 %define _with_openvpn --disable-openvpn
1174 %define _with_oracle --enable-oracle
1176 %define _with_oracle --disable-oracle
1180 %define _with_perl --enable-perl --with-perl-bindings="INSTALLDIRS=vendor"
1182 %define _with_perl --disable-perl --without-libperl
1186 %define _with_pf --enable-pf
1188 %define _with_pf --disable-pf
1192 %define _with_pinba --enable-pinba
1194 %define _with_pinba --disable-pinba
1198 %define _with_ping --enable-ping
1200 %define _with_ping --disable-ping
1203 %if %{with_postgresql}
1204 %define _with_postgresql --enable-postgresql
1206 %define _with_postgresql --disable-postgresql
1209 %if %{with_powerdns}
1210 %define _with_powerdns --enable-powerdns
1212 %define _with_powerdns --disable-powerdns
1215 %if %{with_processes}
1216 %define _with_processes --enable-processes
1218 %define _with_processes --disable-processes
1221 %if %{with_protocols}
1222 %define _with_protocols --enable-protocols
1224 %define _with_protocols --disable-protocols
1229 %define _with_python --enable-python
1231 %define _with_python --enable-python --with-python=%{_bindir}/python2.6
1234 %define _with_python --disable-python
1238 %define _with_redis --enable-redis
1240 %define _with_redis --disable-redis
1243 %if %{with_routeros}
1244 %define _with_routeros --enable-routeros
1246 %define _with_routeros --disable-routeros
1249 %if %{with_rrdcached}
1250 %define _with_rrdcached --enable-rrdcached
1252 %define _with_rrdcached --disable-rrdcached
1256 %define _with_rrdtool --enable-rrdtool
1258 %define _with_rrdtool --disable-rrdtool
1262 %define _with_sensors --enable-sensors
1264 %define _with_sensors --disable-sensors
1268 %define _with_serial --enable-serial
1270 %define _with_serial --disable-serial
1274 %define _with_sigrok --enable-sigrok
1276 %define _with_sigrok --disable-sigrok
1280 %define _with_snmp --enable-snmp
1282 %define _with_snmp --disable-snmp
1286 %define _with_statsd --enable-statsd
1288 %define _with_statsd --disable-statsd
1292 %define _with_swap --enable-swap
1294 %define _with_swap --disable-swap
1298 %define _with_syslog --enable-syslog
1300 %define _with_syslog --disable-syslog
1304 %define _with_table --enable-table
1306 %define _with_table --disable-table
1310 %define _with_tail --enable-tail
1312 %define _with_tail --disable-tail
1315 %if %{with_tail_csv}
1316 %define _with_tail_csv --enable-tail_csv
1318 %define _with_tail_csv --disable-tail_csv
1322 %define _with_tape --enable-tape
1324 %define _with_tape --disable-tape
1327 %if %{with_tcpconns}
1328 %define _with_tcpconns --enable-tcpconns
1330 %define _with_tcpconns --disable-tcpconns
1333 %if %{with_teamspeak2}
1334 %define _with_teamspeak2 --enable-teamspeak2
1336 %define _with_teamspeak2 --disable-teamspeak2
1340 %define _with_ted --enable-ted
1342 %define _with_ted --disable-ted
1346 %define _with_thermal --enable-thermal
1348 %define _with_thermal --disable-thermal
1351 %if %{with_threshold}
1352 %define _with_threshold --enable-threshold
1354 %define _with_threshold --disable-threshold
1357 %if %{with_tokyotyrant}
1358 %define _with_tokyotyrant --enable-tokyotyrant
1360 %define _with_tokyotyrant --disable-tokyotyrant
1363 %if %{with_unixsock}
1364 %define _with_unixsock --enable-unixsock
1366 %define _with_unixsock --disable-unixsock
1370 %define _with_uptime --enable-uptime
1372 %define _with_uptime --disable-uptime
1376 %define _with_users --enable-users
1378 %define _with_users --disable-users
1382 %define _with_uuid --enable-uuid
1384 %define _with_uuid --disable-uuid
1388 %define _with_varnish --enable-varnish
1390 %define _with_varnish --disable-varnish
1394 %define _with_vmem --enable-vmem
1396 %define _with_vmem --disable-vmem
1400 %define _with_vserver --enable-vserver
1402 %define _with_vserver --disable-vserver
1405 %if %{with_wireless}
1406 %define _with_wireless --enable-wireless
1408 %define _with_wireless --disable-wireless
1411 %if %{with_write_graphite}
1412 %define _with_write_graphite --enable-write_graphite
1414 %define _with_write_graphite --disable-write_graphite
1417 %if %{with_write_http}
1418 %define _with_write_http --enable-write_http
1420 %define _with_write_http --disable-write_http
1423 %if %{with_write_kafka}
1424 %define _with_write_kafka --enable-write_kafka
1426 %define _with_write_kafka --disable-write_kafka
1429 %if %{with_write_mongodb}
1430 %define _with_write_mongodb --enable-write_mongodb
1432 %define _with_write_mongodb --disable-write_mongodb --without-libmongoc
1435 %if %{with_write_redis}
1436 %define _with_write_redis --enable-write_redis
1438 %define _with_write_redis --disable-write_redis --without-libcredis
1441 %if %{with_write_riemann}
1442 %define _with_write_riemann --enable-write_riemann
1444 %define _with_write_riemann --disable-write_riemann
1447 %if %{with_write_tsdb}
1448 %define _with_write_tsdb --enable-write_tsdb
1450 %define _with_write_tsdb --disable-write_tsdb
1454 %define _with_xmms --enable-xmms
1456 %define _with_xmms --disable-xmms
1460 %define _with_zfs_arc --enable-zfs_arc
1462 %define _with_zfs_arc --disable-zfs_arc
1465 %configure CFLAGS="%{optflags} -DLT_LAZY_OR_NOW=\"RTLD_LAZY|RTLD_GLOBAL\"" \
1467 --without-included-ltdl \
1468 --enable-all-plugins=yes \
1469 --enable-match_empty_counter \
1470 --enable-match_hashed \
1471 --enable-match_regex \
1472 --enable-match_timediff \
1473 --enable-match_value \
1474 --enable-target_notification \
1475 --enable-target_replace \
1476 --enable-target_scale \
1477 --enable-target_set \
1478 --enable-target_v5upgrade \
1479 %{?_with_aggregation} \
1483 %{?_with_apple_sensors} \
1486 %{?_with_barometer} \
1490 %{?_with_conntrack} \
1491 %{?_with_contextswitch} \
1496 %{?_with_curl_json} \
1497 %{?_with_curl_xml} \
1507 %{?_with_filecount} \
1511 %{?_with_interface} \
1513 %{?_with_iptables} \
1517 %{?_with_log_logstash} \
1520 %{?_with_memcachec} \
1523 %{?_with_multimeter} \
1528 %{?_with_notify_desktop} \
1529 %{?_with_notify_email} \
1537 %{?_with_postgresql} \
1540 %{?_with_routeros} \
1541 %{?_with_rrdcached} \
1547 %{?_with_tokyotyrant} \
1549 %{?_with_write_http} \
1550 %{?_with_write_kafka} \
1551 %{?_with_write_mongodb} \
1552 %{?_with_write_redis} \
1561 %{?_with_memcached} \
1569 %{?_with_powerdns} \
1570 %{?_with_processes} \
1571 %{?_with_protocols} \
1578 %{?_with_tail_csv} \
1579 %{?_with_tcpconns} \
1580 %{?_with_teamspeak2} \
1583 %{?_with_threshold} \
1584 %{?_with_unixsock} \
1591 %{?_with_write_graphite} \
1592 %{?_with_write_http} \
1593 %{?_with_write_riemann} \
1594 %{?_with_write_tsdb}
1597 %{__make} %{?_smp_mflags}
1602 %{__make} install DESTDIR=%{buildroot}
1603 %{__install} -Dp -m 0755 contrib/redhat/init.d-collectd %{buildroot}%{_initrddir}/collectd
1604 %{__install} -Dp -m0644 src/collectd.conf %{buildroot}%{_sysconfdir}/collectd.conf
1605 %{__install} -d %{buildroot}%{_sharedstatedir}/collectd/
1606 %{__install} -d %{buildroot}%{_sysconfdir}/collectd.d/
1608 %{__mkdir} -p %{buildroot}%{_localstatedir}/www
1609 %{__mkdir} -p %{buildroot}/%{_sysconfdir}/httpd/conf.d
1611 %{__cp} -a contrib/collection3 %{buildroot}%{_localstatedir}/www
1612 %{__cp} -a contrib/redhat/collection3.conf %{buildroot}/%{_sysconfdir}/httpd/conf.d/
1614 %{__cp} -a contrib/php-collection %{buildroot}%{_localstatedir}/www
1615 %{__cp} -a contrib/redhat/php-collection.conf %{buildroot}/%{_sysconfdir}/httpd/conf.d/
1618 find contrib/ -type f -exec %{__chmod} a-x {} \;
1619 # *.la files shouldn't be distributed.
1620 rm -f %{buildroot}/%{_libdir}/{collectd/,}*.la
1622 # Move the Perl examples to a separate directory.
1624 find contrib -name '*.p[lm]' -exec mv {} perl-examples/ \;
1626 # Remove Perl hidden .packlist files.
1627 find %{buildroot} -type f -name .packlist -delete
1628 # Remove Perl temporary file perllocal.pod
1629 find %{buildroot} -type f -name perllocal.pod -delete
1632 rm -f %{buildroot}%{_mandir}/man5/collectd-java.5*
1636 rm -f %{buildroot}%{_mandir}/man5/collectd-perl.5*
1637 rm -f %{buildroot}%{_mandir}/man3/Collectd::Unixsock.3pm*
1638 rm -fr perl-examples/
1639 rm -fr %{buildroot}/usr/lib/perl5/
1642 %if ! %{with_python}
1643 rm -f %{buildroot}%{_mandir}/man5/collectd-python.5*
1647 rm -f %{buildroot}%{_mandir}/man5/collectd-snmp.5*
1655 /sbin/chkconfig --add collectd
1658 if [ $1 -eq 0 ]; then
1659 /sbin/service collectd stop &>/dev/null
1660 /sbin/chkconfig --del collectd
1664 if [ $1 -ge 1 ]; then
1665 /sbin/service collectd condrestart &>/dev/null || :
1668 %post -n libcollectdclient -p /sbin/ldconfig
1669 %postun -n libcollectdclient -p /sbin/ldconfig
1673 %doc AUTHORS COPYING ChangeLog README
1674 %config(noreplace) %{_sysconfdir}/collectd.conf
1675 %{_initrddir}/collectd
1676 %{_sbindir}/collectd
1677 %{_bindir}/collectd-nagios
1678 %{_bindir}/collectd-tg
1679 %{_bindir}/collectdctl
1680 %{_sbindir}/collectdmon
1681 %{_datadir}/collectd/
1682 %{_sharedstatedir}/collectd
1683 %{_mandir}/man1/collectd-nagios.1*
1684 %{_mandir}/man1/collectd.1*
1685 %{_mandir}/man1/collectdctl.1*
1686 %{_mandir}/man1/collectdmon.1*
1687 %{_mandir}/man1/collectd-tg.1*
1688 %{_mandir}/man5/collectd-email.5*
1689 %{_mandir}/man5/collectd-exec.5*
1690 %{_mandir}/man5/collectd-threshold.5*
1691 %{_mandir}/man5/collectd-unixsock.5*
1692 %{_mandir}/man5/collectd.conf.5*
1693 %{_mandir}/man5/types.db.5*
1695 # all plugins bundled with the main collectd package
1696 %{_libdir}/%{name}/match_empty_counter.so
1697 %{_libdir}/%{name}/match_hashed.so
1698 %{_libdir}/%{name}/match_regex.so
1699 %{_libdir}/%{name}/match_timediff.so
1700 %{_libdir}/%{name}/match_value.so
1701 %{_libdir}/%{name}/target_notification.so
1702 %{_libdir}/%{name}/target_replace.so
1703 %{_libdir}/%{name}/target_scale.so
1704 %{_libdir}/%{name}/target_set.so
1705 %{_libdir}/%{name}/target_v5upgrade.so
1707 %if %{with_aggregation}
1708 %{_libdir}/%{name}/aggregation.so
1711 %{_libdir}/%{name}/apcups.so
1714 %{_libdir}/%{name}/battery.so
1717 %{_libdir}/%{name}/cgroups.so
1719 %if %{with_conntrack}
1720 %{_libdir}/%{name}/conntrack.so
1722 %if %{with_contextswitch}
1723 %{_libdir}/%{name}/contextswitch.so
1726 %{_libdir}/%{name}/cpu.so
1729 %{_libdir}/%{name}/cpufreq.so
1732 %{_libdir}/%{name}/csv.so
1735 %{_libdir}/%{name}/df.so
1738 %{_libdir}/%{name}/drbd.so
1741 %{_libdir}/%{name}/ethstat.so
1744 %{_libdir}/%{name}/entropy.so
1747 %{_libdir}/%{name}/exec.so
1749 %if %{with_filecount}
1750 %{_libdir}/%{name}/filecount.so
1753 %{_libdir}/%{name}/fscache.so
1755 %if %{with_interface}
1756 %{_libdir}/%{name}/interface.so
1759 %{_libdir}/%{name}/ipvs.so
1762 %{_libdir}/%{name}/irq.so
1765 %{_libdir}/%{name}/load.so
1768 %{_libdir}/%{name}/logfile.so
1771 %{_libdir}/%{name}/madwifi.so
1774 %{_libdir}/%{name}/mbmon.so
1777 %{_libdir}/%{name}/md.so
1779 %if %{with_memcached}
1780 %{_libdir}/%{name}/memcached.so
1783 %{_libdir}/%{name}/memory.so
1785 %if %{with_multimeter}
1786 %{_libdir}/%{name}/multimeter.so
1789 %{_libdir}/%{name}/network.so
1792 %{_libdir}/%{name}/nfs.so
1795 %{_libdir}/%{name}/ntpd.so
1798 %{_libdir}/%{name}/numa.so
1801 %{_libdir}/%{name}/openvpn.so
1804 %{_libdir}/%{name}/olsrd.so
1806 %if %{with_powerdns}
1807 %{_libdir}/%{name}/powerdns.so
1809 %if %{with_processes}
1810 %{_libdir}/%{name}/processes.so
1812 %if %{with_protocols}
1813 %{_libdir}/%{name}/protocols.so
1816 %{_libdir}/%{name}/serial.so
1819 %{_libdir}/%{name}/statsd.so
1822 %{_libdir}/%{name}/swap.so
1825 %{_libdir}/%{name}/syslog.so
1828 %{_libdir}/%{name}/table.so
1831 %{_libdir}/%{name}/tail.so
1833 %if %{with_tail_csv}
1834 %{_libdir}/%{name}/tail_csv.so
1836 %if %{with_tcpconns}
1837 %{_libdir}/%{name}/tcpconns.so
1839 %if %{with_teamspeak2}
1840 %{_libdir}/%{name}/teamspeak2.so
1843 %{_libdir}/%{name}/ted.so
1846 %{_libdir}/%{name}/thermal.so
1849 %{_libdir}/%{name}/threshold.so
1851 %if %{with_unixsock}
1852 %{_libdir}/%{name}/unixsock.so
1855 %{_libdir}/%{name}/uptime.so
1858 %{_libdir}/%{name}/users.so
1861 %{_libdir}/%{name}/uuid.so
1864 %{_libdir}/%{name}/vmem.so
1867 %{_libdir}/%{name}/vserver.so
1869 %if %{with_wireless}
1870 %{_libdir}/%{name}/wireless.so
1872 %if %{with_write_graphite}
1873 %{_libdir}/%{name}/write_graphite.so
1875 %if %{with_write_tsdb}
1876 %{_libdir}/%{name}/write_tsdb.so
1879 %{_libdir}/%{name}/zfs_arc.so
1882 %files -n libcollectdclient-devel
1883 %{_includedir}/collectd/client.h
1884 %{_includedir}/collectd/network.h
1885 %{_includedir}/collectd/network_buffer.h
1886 %{_includedir}/collectd/lcc_features.h
1887 %{_libdir}/pkgconfig/libcollectdclient.pc
1889 %files -n libcollectdclient
1890 %{_libdir}/libcollectdclient.so
1891 %{_libdir}/libcollectdclient.so.*
1895 %{_libdir}/%{name}/amqp.so
1900 %{_libdir}/%{name}/apache.so
1905 %{_libdir}/%{name}/aquaero.so
1910 %{_libdir}/%{name}/ascent.so
1913 %if %{with_barometer}
1915 %{_libdir}/%{name}/barometer.so
1920 %{_libdir}/%{name}/bind.so
1925 %{_libdir}/%{name}/curl.so
1928 %if %{with_curl_json}
1930 %{_libdir}/%{name}/curl_json.so
1933 %if %{with_curl_xml}
1935 %{_libdir}/%{name}/curl_xml.so
1940 %{_libdir}/%{name}/disk.so
1945 %{_libdir}/%{name}/dns.so
1950 %{_libdir}/%{name}/dbi.so
1955 %{_libdir}/%{name}/email.so
1960 %{_libdir}/%{name}/gmond.so
1965 %{_libdir}/%{name}/hddtemp.so
1970 %{_libdir}/%{name}/ipmi.so
1973 %if %{with_iptables}
1975 %{_libdir}/%{name}/iptables.so
1980 %{_prefix}/share/collectd/java/collectd-api.jar
1981 %{_prefix}/share/collectd/java/generic-jmx.jar
1982 %{_libdir}/%{name}/java.so
1983 %{_mandir}/man5/collectd-java.5*
1988 %{_libdir}/%{name}/libvirt.so
1991 %if %{with_log_logstash}
1993 %{_libdir}/%{name}/log_logstash.so
1998 %{_libdir}/%{name}/lvm.so
2001 %if %{with_memcachec}
2003 %{_libdir}/%{name}/memcachec.so
2008 %{_libdir}/%{name}/mic.so
2013 %{_libdir}/%{name}/modbus.so
2018 %{_libdir}/%{name}/mysql.so
2023 %{_libdir}/%{name}/netlink.so
2028 %{_libdir}/%{name}/nginx.so
2031 %if %{with_notify_desktop}
2032 %files notify_desktop
2033 %{_libdir}/%{name}/notify_desktop.so
2036 %if %{with_notify_email}
2038 %{_libdir}/%{name}/notify_email.so
2043 %{_libdir}/%{name}/nut.so
2048 %doc perl-examples/*
2049 %{perl_vendorlib}/Collectd.pm
2050 %{perl_vendorlib}/Collectd/
2051 %{_mandir}/man3/Collectd::Unixsock.3pm*
2052 %{_mandir}/man5/collectd-perl.5*
2053 %{_libdir}/%{name}/perl.so
2058 %{_libdir}/%{name}/pinba.so
2063 %{_libdir}/%{name}/ping.so
2066 %if %{with_postgresql}
2068 %{_prefix}/share/collectd/postgresql_default.conf
2069 %{_libdir}/%{name}/postgresql.so
2074 %{_mandir}/man5/collectd-python*
2075 %{_libdir}/%{name}/python.so
2080 %{_libdir}/%{name}/redis.so
2083 %if %{with_rrdcached}
2085 %{_libdir}/%{name}/rrdcached.so
2090 %{_libdir}/%{name}/rrdtool.so
2095 %{_libdir}/%{name}/sensors.so
2100 %{_libdir}/%{name}/sigrok.so
2105 %{_mandir}/man5/collectd-snmp.5*
2106 %{_libdir}/%{name}/snmp.so
2111 %{_libdir}/%{name}/varnish.so
2114 %if %{with_write_http}
2116 %{_libdir}/%{name}/write_http.so
2119 %if %{with_write_kafka}
2121 %{_libdir}/%{name}/write_kafka.so
2124 %if %{with_write_redis}
2126 %{_libdir}/%{name}/write_redis.so
2129 %if %{with_write_riemann}
2130 %files write_riemann
2131 %{_libdir}/%{name}/write_riemann.so
2135 %{_localstatedir}/www/collection3
2136 %{_sysconfdir}/httpd/conf.d/collection3.conf
2138 %files php-collection
2139 %{_localstatedir}/www/php-collection
2140 %{_sysconfdir}/httpd/conf.d/php-collection.conf
2147 # - New upstream version
2148 # - New plugins enabled by default: drbd, log_logstash, write_tsdb
2149 # - New plugins disabled by default: barometer, write_kafka
2150 # - Enable zfs_arc, now supported on Linux
2151 # - Install disk plugin in an dedicated package, as it depends on libudev
2153 * Mon Aug 19 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.4.0-1
2154 - New upstream version
2155 - Build netlink plugin by default
2156 - Enable cgroups, lvm and statsd plugins
2157 - Enable (but don't build by default) mic, aquaero and sigrok plugins
2159 * Tue Aug 06 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.3.1-1
2160 - New upstream version
2161 - Added RHEL5 support:
2162 * conditionally disable plugins not building on this platform
2163 * add/specify some build dependencies and options
2164 * replace some RPM macros not available on this platform
2165 - Removed duplicate --enable-aggregation
2166 - Added some comments & usage examples
2167 - Replaced a couple of "Buildrequires" by "BuildRequires"
2168 - Enabled modbus plugin on RHEL6
2169 - Enabled netlink plugin on RHEL6 and RHEL7
2170 - Allow perl plugin to build on RHEL5
2171 - Add support for RHEL7
2173 * Wed Apr 10 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.3.0-1
2174 - New upstream version
2175 - Enabled write_riemann plugin
2176 - Enabled tail_csv plugin
2177 - Installed collectd-tc manpage
2179 * Fri Jan 11 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-3
2180 - remove dependency on libstatgrab, which isn't required on linux
2182 * Thu Jan 03 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-2
2183 - collection3 and php-collection viewers are now in separate packages
2185 * Fri Dec 21 2012 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-1
2186 - New upstream version
2187 - Enabled aggregation plugin
2188 - Installed collectd-tc
2189 - Added network.h and network_buffer.h to libcollectdclient-devel
2190 - Moved libxml2-devel and libcurl-devel BRs to relevant plugins sections
2191 - Moved libcollectdclient.so from libcollectdclient-devel to libcollectdclient
2192 - Added rrdcached and redis plugin descriptions
2193 - Mentioned new pf plugin in disabled plugins list
2195 * Sun Nov 18 2012 Ruben Kerkhof <ruben@tilaa.nl> 5.1.0-3
2196 - Follow Fedora Packaging Guidelines in java subpackage
2198 * Sat Nov 17 2012 Ruben Kerkhof <ruben@tilaa.nl> 5.1.0-2
2199 - Move perl stuff to perl_vendorlib
2200 - Replace hardcoded paths with macros
2201 - Remove unnecessary Requires
2202 - Removed .a and .la files
2203 - Some other small cleanups
2205 * Fri Nov 16 2012 Marc Fournier <marc.fournier@camptocamp.com> 5.1.0-1
2206 - New upstream version
2207 - Changes to support 5.1.0
2208 - Enabled all buildable plugins based on libraries available on EL6 + EPEL
2209 - All plugins requiring external libraries are now shipped in separate
2211 - No longer treat Java plugin as an exception, correctly set $JAVA_HOME during
2212 the build process + ensure build deps are installed.
2213 - Dropped per-plugin configuration files, as they tend to diverge from upstream
2215 - Moved perl stuff to /usr/share/perl5/
2216 - Don't alter Interval and ReadThreads by default, let the user change this
2218 - Initscript improvements:
2219 * checks configuration before (re)starting, based on debian's initscript
2220 * use /etc/sysconfig instdead of /etc/default
2221 * include optional $ARGS in arguments passed to collectd.
2222 - Drop collection.cgi from main package, as it's been obsoleted by collection3
2223 - Moved contrib/ to its own package, to avoid cluttering the main package with
2224 non-essential stuff.
2225 - Replaced BuildPrereq by BuildRequires
2227 * Mon Jan 03 2011 Monetate <jason.stelzer@monetate.com> 5.0.1
2228 - New upstream version
2229 - Changes to support 5.0.1
2231 * Mon Jan 04 2010 Rackspace <stu.hood@rackspace.com> 4.9.0
2232 - New upstream version
2233 - Changes to support 4.9.0
2234 - Added support for Java/GenericJMX plugin
2236 * Mon Mar 17 2008 RightScale <support@rightscale.com> 4.3.1
2237 - New upstream version
2238 - Changes to support 4.3.1
2239 - Added More Prereqs to support more plugins
2240 - Added support for perl plugin
2242 * Mon Aug 06 2007 Kjell Randa <Kjell.Randa@broadpark.no> 4.0.6
2243 - New upstream version
2245 * Wed Jul 25 2007 Kjell Randa <Kjell.Randa@broadpark.no> 4.0.5
2247 - Changes to support 4.0.5
2249 * Thu Jan 11 2007 Iain Lea <iain@bricbrac.de> 3.11.0-0
2250 - fixed spec file to build correctly on fedora core
2251 - added improved init.d script to work with chkconfig
2252 - added %%post and %%postun to call chkconfig automatically
2254 * Sun Jul 09 2006 Florian octo Forster <octo@verplant.org> 3.10.0-1
2255 - New upstream version
2257 * Sun Jun 25 2006 Florian octo Forster <octo@verplant.org> 3.9.4-1
2258 - New upstream version
2260 * Thu Jun 01 2006 Florian octo Forster <octo@verplant.org> 3.9.3-1
2261 - New upstream version
2263 * Tue May 09 2006 Florian octo Forster <octo@verplant.org> 3.9.2-1
2264 - New upstream version
2266 * Tue May 09 2006 Florian octo Forster <octo@verplant.org> 3.8.5-1
2267 - New upstream version
2269 * Fri Apr 21 2006 Florian octo Forster <octo@verplant.org> 3.9.1-1
2270 - New upstream version
2272 * Fri Apr 14 2006 Florian octo Forster <octo@verplant.org> 3.9.0-1
2273 - New upstream version
2274 - Added the `apache' package.
2276 * Tue Mar 14 2006 Florian octo Forster <octo@verplant.org> 3.8.2-1
2277 - New upstream version
2279 * Mon Mar 13 2006 Florian octo Forster <octo@verplant.org> 3.8.1-1
2280 - New upstream version
2282 * Thu Mar 09 2006 Florian octo Forster <octo@verplant.org> 3.8.0-1
2283 - New upstream version
2285 * Sat Feb 18 2006 Florian octo Forster <octo@verplant.org> 3.7.2-1
2286 - Include `tape.so' so the build doesn't terminate because of missing files..
2287 - New upstream version
2289 * Sat Feb 04 2006 Florian octo Forster <octo@verplant.org> 3.7.1-1
2290 - New upstream version
2292 * Mon Jan 30 2006 Florian octo Forster <octo@verplant.org> 3.7.0-1
2293 - New upstream version
2294 - Removed the extra `hddtemp' package
2296 * Tue Jan 24 2006 Florian octo Forster <octo@verplant.org> 3.6.2-1
2297 - New upstream version
2299 * Fri Jan 20 2006 Florian octo Forster <octo@verplant.org> 3.6.1-1
2300 - New upstream version
2302 * Fri Jan 20 2006 Florian octo Forster <octo@verplant.org> 3.6.0-1
2303 - New upstream version
2304 - Added config file, `collectd.conf(5)', `df.so'
2305 - Added package `collectd-mysql', dependency on `mysqlclient10 | mysql'
2307 * Wed Dec 07 2005 Florian octo Forster <octo@verplant.org> 3.5.0-1
2308 - New upstream version
2310 * Sat Nov 26 2005 Florian octo Forster <octo@verplant.org> 3.4.0-1
2311 - New upstream version
2313 * Sat Nov 05 2005 Florian octo Forster <octo@verplant.org> 3.3.0-1
2314 - New upstream version
2316 * Wed Oct 26 2005 Florian octo Forster <octo@verplant.org> 3.2.0-1
2317 - New upstream version
2318 - Added statement to remove the `*.la' files. This fixes a problem when
2319 `Unpackaged files terminate build' is in effect.
2320 - Added `processes.so*' to the main package
2322 * Fri Oct 14 2005 Florian octo Forster <octo@verplant.org> 3.1.0-1
2323 - New upstream version
2324 - Added package `collectd-hddtemp'
2326 * Fri Sep 30 2005 Florian octo Forster <octo@verplant.org> 3.0.0-1
2327 - New upstream version
2328 - Split the package into `collectd' and `collectd-sensors'
2330 * Fri Sep 16 2005 Florian octo Forster <octo@verplant.org> 2.1.0-1
2331 - New upstream version
2333 * Sat Sep 10 2005 Florian octo Forster <octo@verplant.org> 2.0.0-1
2334 - New upstream version
2336 * Mon Aug 29 2005 Florian octo Forster <octo@verplant.org> 1.8.0-1
2337 - New upstream version
2339 * Thu Aug 25 2005 Florian octo Forster <octo@verplant.org> 1.7.0-1
2340 - New upstream version
2342 * Sun Aug 21 2005 Florian octo Forster <octo@verplant.org> 1.6.0-1
2343 - New upstream version
2345 * Sun Jul 17 2005 Florian octo Forster <octo@verplant.org> 1.5.1-1
2346 - New upstream version
2348 * Sun Jul 17 2005 Florian octo Forster <octo@verplant.org> 1.5-1
2349 - New upstream version
2351 * Mon Jul 11 2005 Florian octo Forster <octo@verplant.org> 1.4.2-1
2352 - New upstream version
2354 * Sat Jul 09 2005 Florian octo Forster <octo@verplant.org> 1.4-1
2355 - Built on RedHat 7.3