2 Summary: Statistics collection daemon for filling RRD files.
6 Source: http://collectd.org/files/%{name}-%{version}.tar.gz
8 Group: System Environment/Daemons
9 BuildRoot: %{_tmppath}/%{name}-%{version}-root
10 BuildRequires: rrdtool-devel, libstatgrab-devel, libxml2-devel, libiptcdata-devel, libgcrypt-devel, kernel-headers
12 BuildRequires: curl-devel, libidn-devel, openssl-devel
13 Requires: libstatgrab, libgcrypt
14 Packager: RightScale <support@rightscale.com>
15 Vendor: collectd development team <collectd@verplant.org>
18 collectd is a small daemon which collects system information periodically and
19 provides mechanisms to monitor and store the values in a variety of ways. It
20 is written in C for performance. Since the daemon doesn't need to startup
21 every time it wants to update the values it's very fast and easy on the
22 system. Also, the statistics are very fine grained since the files are updated
26 Summary: amqp-module for collectd.
27 Group: System Environment/Daemons
28 Requires: collectd = %{version}, librabbitmq
29 BuildRequires: librabbitmq-devel
31 The AMQP plugin transmits or receives values collected by collectd via the
32 Advanced Message Queuing Protocol (AMQP).
35 Summary: apache-plugin for collectd.
36 Group: System Environment/Daemons
37 Requires: collectd = %{version}, curl
39 This plugin collects data provided by Apache's `mod_status'.
42 Summary: ascent-plugin for collectd.
43 Group: System Environment/Daemons
44 Requires: collectd = %{version}, curl, libxml2
46 The Ascent plugin reads and parses the statistics page of Ascent, a free and
47 open-source server software for the game World of Warcraft by Blizzard
51 Summary: bind-plugin for collectd.
52 Group: System Environment/Daemons
53 Requires: collectd = %{version}, curl, libxml2
55 The BIND plugin retrieves this information that's encoded in XML and provided
56 via HTTP and submits the values to collectd.
59 Summary: curl-plugin for collectd.
60 Group: System Environment/Daemons
61 Requires: collectd = %{version}, curl
63 The cURL plugin uses libcurl to read files and then parses them according to
67 Summary: curl_json-plugin for collectd.
68 Group: System Environment/Daemons
69 Requires: collectd = %{version}, curl, yajl
70 Buildrequires: yajl-devel
71 %description curl_json
72 The cURL-JSON plugin queries JavaScript Object Notation (JSON) data using the
73 cURL library and parses it according to the user's configuration.
76 Summary: curl_xml-plugin for collectd.
77 Group: System Environment/Daemons
78 Requires: collectd = %{version}, curl, libxml2
80 The cURL-XML plugin reads files using libcurl and parses it as Extensible
81 Markup Language (XML).
84 Summary: dns-plugin for collectd.
85 Group: System Environment/Daemons
86 Requires: collectd = %{version}, libpcap
87 Buildrequires: libpcap-devel
89 The DNS plugin has a similar functionality to dnstop: It uses libpcap to get a
90 copy of all traffic from/to port UDP/53 (that's the DNS port), interprets the
91 packets and collects statistics of your DNS traffic.
94 Summary: dbi-plugin for collectd.
95 Group: System Environment/Daemons
96 Requires: collectd = %{version}, libdbi
97 Buildrequires: libdbi-devel
99 The DBI plugin uses libdbi, a database abstraction library, to execute SQL
100 statements on a database and read back the result.
103 Summary: email-plugin for collectd.
104 Group: System Environment/Daemons
105 Requires: collectd = %{version}, spamassassin
107 This plugin collects data provided by spamassassin.
110 Summary: gmond-plugin for collectd.
111 Group: System Environment/Daemons
112 Requires: collectd = %{version}, ganglia
113 BuildRequires: ganglia-devel
115 The gmond plugin subscribes to a Multicast group to receive data from gmond,
116 the client daemon of the Ganglia project.
119 Summary: hddtemp-plugin for collectd.
120 Group: System Environment/Daemons
121 Requires: collectd = %{version}, hddtemp
123 The HDDTemp plugin collects the temperature of hard disks. The temperatures are
124 provided via SMART and queried by the external hddtemp daemon.
127 Summary: ipmi-plugin for collectd.
128 Group: System Environment/Daemons
129 Requires: collectd = %{version}, OpenIPMI-libs
130 BuildRequires: OpenIPMI-devel
132 The IPMI plugin uses the OpenIPMI library to read hardware sensors from servers
133 using the Intelligent Platform Management Interface (IPMI).
136 Summary: iptables-plugin for collectd.
137 Group: System Environment/Daemons
138 Requires: collectd = %{version}, iptables-devel
139 BuildRequires: iptables-devel
140 %description iptables
141 The IP-Tables plugin can gather statistics from your ip_tables based packet
142 filter (aka. firewall) for both the IPv4 and the IPv6 protocol. It can collect
143 the byte- and packet-counters of selected rules and submit them to collectd.
146 Summary: java-module for collectd.
147 Group: System Environment/Daemons
148 Requires: collectd = %{version}, libjvm.so
149 BuildRequires: java-1.7.0-openjdk-devel
151 This plugin for collectd allows plugins to be written in Java and executed
155 Summary: libvirt-module for collectd.
156 Group: System Environment/Daemons
157 Requires: collectd = %{version}, libvirt, libxml2
158 BuildRequires: libvirt-devel
162 Summary: memcachec-module for collectd.
163 Group: System Environment/Daemons
164 Requires: collectd = %{version}, libmemcached
165 BuildRequires: libmemcached-devel
166 %description memcachec
167 The Memcachec plugin uses libmemcached to read statistics from a Memcached
168 instance. Note that another plugin, named `memcached', exists and does a
169 similar job, without requiring the installation of libmemcached.
172 Summary: mysql-module for collectd.
173 Group: System Environment/Daemons
174 Requires: collectd = %{version}, mysql
175 BuildRequires: mysql-devel
177 MySQL querying plugin. This plugins provides data of issued commands, called
178 handlers and database traffic.
181 Summary: nginx-plugin for collectd.
182 Group: System Environment/Daemons
183 Requires: collectd = %{version}, curl
185 This plugin gets data provided by nginx.
187 %package notify_desktop
188 Summary: notify_desktop-module for collectd.
189 Group: System Environment/Daemons
190 Requires: collectd = %{version}, libnotify
191 BuildRequires: libnotify-devel
192 %description notify_desktop
193 The Notify Desktop plugin uses libnotify to display notifications to the user
194 via the desktop notification specification, i. e. on an X display.
196 %package notify_email
197 Summary: notify_email-module for collectd.
198 Group: System Environment/Daemons
199 Requires: collectd = %{version}, libesmtp
200 BuildRequires: libesmtp-devel
201 %description notify_email
202 The Notify Email plugin uses libESMTP to send notifications to a configured
206 Summary: nut-module for collectd.
207 Group: System Environment/Daemons
208 Requires: collectd = %{version}, nut-client
209 BuildRequires: nut-devel
213 Summary: perl-plugin for collectd.
214 Group: System Environment/Daemons
215 Requires: collectd = %{version}, perl
216 BuildRequires: perl-ExtUtils-Embed
218 The Perl plugin embeds a Perl interpreter into collectd and exposes the
219 application programming interface (API) to Perl-scripts.
222 Summary: pinba-plugin for collectd.
223 Group: System Environment/Daemons
224 Requires: collectd = %{version}, protobuf-c
225 BuildRequires: protobuf-c-devel
227 The Pinba plugin receives and dispatches timing values from Pinba, a profiling
231 Summary: ping-plugin for collectd.
232 Group: System Environment/Daemons
233 Requires: collectd = %{version}, liboping
234 BuildRequires: liboping-devel
236 The Ping plugin measures network latency using ICMP “echo requests”, usually
240 Summary: postgresql-plugin for collectd.
241 Group: System Environment/Daemons
242 Requires: collectd = %{version}, postgresql-libs
243 BuildRequires: postgresql-devel
244 %description postgresql
245 The PostgreSQL plugin connects to and executes SQL statements on a PostgreSQL
249 Summary: python-plugin for collectd.
250 Group: System Environment/Daemons
251 Requires: collectd = %{version}, python
252 BuildRequires: python-devel
254 The Python plugin embeds a Python interpreter into collectd and exposes the
255 application programming interface (API) to Python-scripts.
258 Summary: librrdtool-module for collectd.
259 Group: System Environment/Daemons
260 Requires: collectd = %{version}, rrdtool
262 The RRDtool plugin writes values to RRD-files using librrd.
265 Summary: sensors-module for collectd.
266 Group: System Environment/Daemons
267 Requires: collectd = %{version}, lm_sensors
268 BuildRequires: lm_sensors-devel
270 This plugin for collectd provides querying of sensors supported by lm_sensors.
273 Summary: snmp-module for collectd.
274 Group: System Environment/Daemons
275 Requires: collectd = %{version}, net-snmp
276 BuildRequires: net-snmp-devel
278 This plugin for collectd allows querying of network equipment using SNMP.
281 Summary: varnish-module for collectd.
282 Group: System Environment/Daemons
283 Requires: collectd = %{version}, varnish-libs
284 BuildRequires: varnish-libs-devel
286 The Varnish plugin collects information about Varnish, an HTTP accelerator.
289 Summary: write_http-module for collectd.
290 Group: System Environment/Daemons
291 Requires: collectd = %{version}, curl
292 %description write_http
293 The Write HTTP plugin sends the values collected by collectd to a web-server
294 using HTTP POST requests.
297 Summary: contrib files for collectd.
298 Group: System Environment/Daemons
300 All the files found under contrib/ in the source tree are bundled in this
304 rm -rf $RPM_BUILD_ROOT
308 export JAVA_HOME="/usr"
309 ./configure CFLAGS=-"DLT_LAZY_OR_NOW='RTLD_LAZY|RTLD_GLOBAL'" --prefix=%{_prefix} --sbindir=%{_sbindir} --mandir=%{_mandir} --libdir=%{_libdir} --sysconfdir=%{_sysconfdir} --localstatedir=%{_localstatedir}
313 make install DESTDIR=$RPM_BUILD_ROOT
314 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
315 cp contrib/redhat/init.d-collectd $RPM_BUILD_ROOT/etc/rc.d/init.d/collectd
316 mkdir -p $RPM_BUILD_ROOT/var/lib/collectd
318 find contrib/ -type f -exec %{__chmod} a-x {} \;
320 ###Modify Config for Redhat Based Distros
321 sed -i 's:#BaseDir "/usr/var/lib/collectd":BaseDir "/var/lib/collectd":' $RPM_BUILD_ROOT/etc/collectd.conf
322 sed -i 's:#PIDFile "/usr/var/run/collectd.pid":PIDFile "/var/run/collectd.pid":' $RPM_BUILD_ROOT/etc/collectd.conf
323 sed -i 's:#PluginDir "/usr/lib/collectd":PluginDir "%{_libdir}/collectd":' $RPM_BUILD_ROOT/etc/collectd.conf
324 sed -i 's:#TypesDB "/usr/share/collectd/types.db":TypesDB "/usr/share/collectd/types.db":' $RPM_BUILD_ROOT/etc/collectd.conf
327 rm -rf $RPM_BUILD_ROOT
330 /sbin/chkconfig --add collectd
331 /sbin/chkconfig collectd on
334 if [ "$1" = 0 ]; then
335 /sbin/chkconfig collectd off
336 /etc/init.d/collectd stop
337 /sbin/chkconfig --del collectd
342 if [ "$1" -ge 1 ]; then
343 /etc/init.d/collectd restart
348 %defattr(-,root,root)
349 %exclude %{_mandir}/man5/collectd-java*
350 %exclude %{_mandir}/man5/collectd-perl*
351 %exclude %{_mandir}/man5/collectd-python*
352 %exclude %{_mandir}/man5/collectd-snmp*
353 %doc AUTHORS COPYING ChangeLog INSTALL NEWS README
354 %config %attr(0644,root,root) /etc/collectd.conf
355 %attr(0755,root,root) /etc/rc.d/init.d/collectd
356 %attr(0755,root,root) %{_sbindir}/collectd
357 %attr(0755,root,root) %{_bindir}/collectd-nagios
358 %attr(0755,root,root) %{_bindir}/collectdctl
359 %attr(0755,root,root) %{_sbindir}/collectdmon
360 %attr(0644,root,root) %{_mandir}/man1/*
361 %attr(0644,root,root) %{_mandir}/man5/*
364 %attr(0644,root,root) /usr/include/collectd/client.h
365 %attr(0644,root,root) /usr/include/collectd/lcc_features.h
367 %attr(0644,root,root) %{_libdir}/libcollectdclient.*
368 %attr(0644,root,root) %{_libdir}/pkgconfig/libcollectdclient.pc
370 # macro to grab binaries for a plugin, given a name
371 %define plugin_macro() \
372 %attr(0644,root,root) %{_libdir}/%{name}/%1.a \
373 %attr(0644,root,root) %{_libdir}/%{name}/%1.so* \
374 %attr(0644,root,root) %{_libdir}/%{name}/%1.la
376 # all plugins bundled with the main collectd package
378 %plugin_macro battery
379 %plugin_macro conntrack
380 %plugin_macro contextswitch
381 %plugin_macro cpufreq
386 %plugin_macro ethstat
387 %plugin_macro entropy
390 %plugin_macro filecount
391 %plugin_macro fscache
392 %plugin_macro interface
393 %plugin_macro iptables
397 %plugin_macro logfile
398 %plugin_macro madwifi
399 %plugin_macro match_empty_counter
400 %plugin_macro match_hashed
401 %plugin_macro match_regex
402 %plugin_macro match_timediff
403 %plugin_macro match_value
406 %plugin_macro memcached
408 %plugin_macro multimeter
409 %plugin_macro network
413 %plugin_macro openvpn
415 %plugin_macro powerdns
416 %plugin_macro processes
417 %plugin_macro protocols
423 %plugin_macro target_notification
424 %plugin_macro target_replace
425 %plugin_macro target_scale
426 %plugin_macro target_set
427 %plugin_macro target_v5upgrade
428 %plugin_macro tcpconns
429 %plugin_macro teamspeak2
431 %plugin_macro thermal
432 %plugin_macro threshold
433 %plugin_macro unixsock
438 %plugin_macro vserver
439 %plugin_macro wireless
440 %plugin_macro write_graphite
442 # All plugins not built because of dependencies on libraries not available in
444 # plugin modbus disabled, requires libmodbus
445 # plugin netlink disabled, requires libnetlink.h
446 # plugin numa disabled, requires libnetapp
447 # plugin onewire disabled, requires libowfs
448 # plugin oracle disabled, requires Oracle
449 # plugin redis disabled, requires credis
450 # plugin routeros disabled, requires librouteros
451 # plugin rrdcached disabled, requires rrdtool >= 1.4
452 # plugin tokyotyrant disabled, requires tcrdb.h
453 # plugin write_mongodb disabled, requires libmongoc
454 # plugin write_redis disabled, requires credis
455 # plugin xmms disabled, requires xmms
457 %attr(0644,root,root) %{_datadir}/%{name}/types.db
459 %dir /var/lib/collectd
477 %plugin_macro curl_json
480 %plugin_macro curl_xml
495 %plugin_macro hddtemp
501 %plugin_macro iptables
504 %attr(0644,root,root) /usr/share/man/man5/collectd-java.5.gz
505 %attr(0644,root,root) /usr/share/collectd/java/collectd-api.jar
506 %attr(0644,root,root) /usr/share/collectd/java/generic-jmx.jar
510 %plugin_macro libvirt
513 %plugin_macro memcachec
521 %files notify_desktop
522 %plugin_macro notify_desktop
525 %plugin_macro notify_email
531 %exclude %{_libdir}/perl5/perllocal.pod
532 %attr(0644,root,root) %{_libdir}/perl5/auto/Collectd/.packlist
533 %attr(0644,root,root) /usr/share/perl5/Collectd.pm
534 %attr(0644,root,root) /usr/share/perl5/Collectd/Unixsock.pm
535 %attr(0644,root,root) /usr/share/perl5/Collectd/Plugins/OpenVZ.pm
536 %attr(0644,root,root) /usr/share/perl5/Collectd/Plugins/Monitorus.pm
537 %attr(0644,root,root) /usr/share/man/man3/Collectd::Unixsock.3pm.gz
538 %attr(0644,root,root) /usr/share/man/man5/collectd-perl.5.gz
548 /usr/share/collectd/postgresql_default.conf
549 %plugin_macro postgresql
552 %attr(0644,root,root) /usr/share/man/man5/collectd-python.5.gz
556 %plugin_macro rrdtool
559 %plugin_macro sensors
562 %attr(0644,root,root) /usr/share/man/man5/collectd-snmp.5.gz
566 %plugin_macro varnish
569 %plugin_macro write_http
575 * Fri Nov 16 2012 Marc Fournier <marc.fournier@camptocamp.com> 5.1.0
576 - New upstream version
577 - Changes to support 5.1.0
578 - Enabled all buildable plugins based on libraries available on EL6 + EPEL
579 - All plugins requiring external libraries are now shipped in seperate
581 - No longer treat Java plugin as an exception, correctly set $JAVA_HOME during
582 the build process + ensure build deps are installed.
583 - Dropped per-plugin configuration files, as they tend to diverge from upstream
585 - Moved perl stuff to /usr/share/perl5/
586 - Don't alter Interval and ReadThreads by default, let the user change this
588 - Initscript improvements:
589 * checks configuration before (re)starting, based on debian's initscript
590 * use /etc/sysconfig instdead of /etc/default
591 * include optional $ARGS in arguments passed to collectd.
592 - Drop collection.cgi from main package, as it's been obsoleted by collection3
593 - Moved contrib/ to its own package, to avoid cluttering the main package with
595 - Replaced BuildPrereq by BuildRequires
598 * Tue Jan 03 2011 Monetate <jason.stelzer@monetate.com> 5.0.1
599 - New upstream version
600 - Changes to support 5.0.1
602 * Tue Jan 04 2010 Rackspace <stu.hood@rackspace.com> 4.9.0
603 - New upstream version
604 - Changes to support 4.9.0
605 - Added support for Java/GenericJMX plugin
607 * Mon Mar 17 2008 RightScale <support@rightscale.com> 4.3.1
608 - New upstream version
609 - Changes to support 4.3.1
610 - Added More Prereqs to support more plugins
611 - Added support for perl plugin
613 * Mon Aug 06 2007 Kjell Randa <Kjell.Randa@broadpark.no> 4.0.6
614 - New upstream version
616 * Wed Jul 25 2007 Kjell Randa <Kjell.Randa@broadpark.no> 4.0.5
618 - Changes to support 4.0.5
620 * Wed Jan 11 2007 Iain Lea <iain@bricbrac.de> 3.11.0-0
621 - fixed spec file to build correctly on fedora core
622 - added improved init.d script to work with chkconfig
623 - added %post and %postun to call chkconfig automatically
625 * Sun Jul 09 2006 Florian octo Forster <octo@verplant.org> 3.10.0-1
626 - New upstream version
628 * Tue Jun 25 2006 Florian octo Forster <octo@verplant.org> 3.9.4-1
629 - New upstream version
631 * Tue Jun 01 2006 Florian octo Forster <octo@verplant.org> 3.9.3-1
632 - New upstream version
634 * Tue May 09 2006 Florian octo Forster <octo@verplant.org> 3.9.2-1
635 - New upstream version
637 * Tue May 09 2006 Florian octo Forster <octo@verplant.org> 3.8.5-1
638 - New upstream version
640 * Fri Apr 21 2006 Florian octo Forster <octo@verplant.org> 3.9.1-1
641 - New upstream version
643 * Fri Apr 14 2006 Florian octo Forster <octo@verplant.org> 3.9.0-1
644 - New upstream version
645 - Added the `apache' package.
647 * Thu Mar 14 2006 Florian octo Forster <octo@verplant.org> 3.8.2-1
648 - New upstream version
650 * Thu Mar 13 2006 Florian octo Forster <octo@verplant.org> 3.8.1-1
651 - New upstream version
653 * Thu Mar 09 2006 Florian octo Forster <octo@verplant.org> 3.8.0-1
654 - New upstream version
656 * Sat Feb 18 2006 Florian octo Forster <octo@verplant.org> 3.7.2-1
657 - Include `tape.so' so the build doesn't terminate because of missing files..
658 - New upstream version
660 * Sat Feb 04 2006 Florian octo Forster <octo@verplant.org> 3.7.1-1
661 - New upstream version
663 * Mon Jan 30 2006 Florian octo Forster <octo@verplant.org> 3.7.0-1
664 - New upstream version
665 - Removed the extra `hddtemp' package
667 * Tue Jan 24 2006 Florian octo Forster <octo@verplant.org> 3.6.2-1
668 - New upstream version
670 * Fri Jan 20 2006 Florian octo Forster <octo@verplant.org> 3.6.1-1
671 - New upstream version
673 * Fri Jan 20 2006 Florian octo Forster <octo@verplant.org> 3.6.0-1
674 - New upstream version
675 - Added config file, `collectd.conf(5)', `df.so'
676 - Added package `collectd-mysql', dependency on `mysqlclient10 | mysql'
678 * Wed Dec 07 2005 Florian octo Forster <octo@verplant.org> 3.5.0-1
679 - New upstream version
681 * Sat Nov 26 2005 Florian octo Forster <octo@verplant.org> 3.4.0-1
682 - New upstream version
684 * Sat Nov 05 2005 Florian octo Forster <octo@verplant.org> 3.3.0-1
685 - New upstream version
687 * Tue Oct 26 2005 Florian octo Forster <octo@verplant.org> 3.2.0-1
688 - New upstream version
689 - Added statement to remove the `*.la' files. This fixes a problem when
690 `Unpackaged files terminate build' is in effect.
691 - Added `processes.so*' to the main package
693 * Fri Oct 14 2005 Florian octo Forster <octo@verplant.org> 3.1.0-1
694 - New upstream version
695 - Added package `collectd-hddtemp'
697 * Fri Sep 30 2005 Florian octo Forster <octo@verplant.org> 3.0.0-1
698 - New upstream version
699 - Split the package into `collectd' and `collectd-sensors'
701 * Fri Sep 16 2005 Florian octo Forster <octo@verplant.org> 2.1.0-1
702 - New upstream version
704 * Mon Sep 10 2005 Florian octo Forster <octo@verplant.org> 2.0.0-1
705 - New upstream version
707 * Mon Aug 29 2005 Florian octo Forster <octo@verplant.org> 1.8.0-1
708 - New upstream version
710 * Sun Aug 25 2005 Florian octo Forster <octo@verplant.org> 1.7.0-1
711 - New upstream version
713 * Sun Aug 21 2005 Florian octo Forster <octo@verplant.org> 1.6.0-1
714 - New upstream version
716 * Sun Jul 17 2005 Florian octo Forster <octo@verplant.org> 1.5.1-1
717 - New upstream version
719 * Sun Jul 17 2005 Florian octo Forster <octo@verplant.org> 1.5-1
720 - New upstream version
722 * Mon Jul 11 2005 Florian octo Forster <octo@verplant.org> 1.4.2-1
723 - New upstream version
725 * Sat Jul 09 2005 Florian octo Forster <octo@verplant.org> 1.4-1
726 - Built on RedHat 7.3