2 # - package contrib scripts as %doc
3 # - perl modules with Collectd classes package to separate package
5 # apple_sensors . . . no (obvious)
6 # ipvs . . . . . . . no (ip_vs.h not found - llh to be fixed)
7 # libvirt . . . . . . no (requires library)
8 # multimeter . . . . no ?
9 # onewire . . . . . . no (needs libowfs)
10 # perl . . . . . . . no (needs libperl)
11 # tape . . . . . . . no ?
12 # - logrotate file for logfile plugin
15 %bcond_without dns # ???
16 %bcond_without ipmi # ipmi plugin package
17 %bcond_without iptables # iptables plugin
18 %bcond_with multimeter # multimeter plugin
19 %bcond_without netlink # netlink plugin
21 #http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=358637
23 %undefine with_iptables
24 %undefine with_netlink
26 Summary: Collects system information in RRD files
27 Summary(pl.UTF-8): Zbieranie informacji o systemie w plikach RRD
33 Source0: http://collectd.org/files/%{name}-%{version}.tar.gz
34 # Source0-md5: ab900d15662859b8793abf99eda15c29
37 Source3: %{name}-http.conf
38 Source4: %{name}-lighttpd.conf
39 Source10: %{name}-df.conf
40 Source11: %{name}-rrdtool.conf
41 Patch0: %{name}-collection.patch
42 URL: http://collectd.org/
43 %{?with_ipmi:BuildRequires: OpenIPMI-devel >= 2.0.14-3}
44 BuildRequires: autoconf
45 BuildRequires: automake
46 BuildRequires: curl-devel
47 %{?with_iptables:BuildRequires: iptables-devel >= 1.4.1.1-4}
48 BuildRequires: libesmtp-devel
49 BuildRequires: libnetlink-devel
50 BuildRequires: libnotify-devel
51 BuildRequires: liboping-devel
52 BuildRequires: libpcap-devel
53 BuildRequires: libstatgrab-devel >= 0.12
54 BuildRequires: libtool
55 BuildRequires: lm_sensors-devel
56 BuildRequires: mysql-devel
57 BuildRequires: nut-devel
58 BuildRequires: perl-devel
59 BuildRequires: rpmbuild(macros) >= 1.268
60 BuildRequires: rrdtool-devel
61 BuildRequires: net-snmp-devel
62 BuildRequires: xmms-devel
63 Requires(post,preun): /sbin/chkconfig
65 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
67 %define _pkglibdir /var/lib/%{name}
68 %define _webapps /etc/webapps
69 %define _webapp %{name}
70 %define _webappdir %{_webapps}/%{_webapp}
71 %define _appdir %{_datadir}/%{_webapp}
74 collectd is a small daemon which collects system information every 10
75 seconds and writes the results in an RRD-file.
77 In contrast to most similar software, collectd is not a script but
78 written in plain C for performance and portability. As a daemon it
79 stays in memory, so there is no need to start up a heavy interpreter
80 every time new values should be logged. This allows collectd to have a
81 10 second resolution while being nice to the system.
83 %description -l pl.UTF-8
84 collectd to mały demon zbierający co 10 sekund informacje o systemie i
85 zapisujący wyniki do pliku RRD.
87 W odróżnieniu od innych podobnych programów collectd nie jest
88 skryptem, lecz jest napisany w czystym C z myślą o wydajności i
89 przenośności. Jako demon pozostaje w pamięci, więc nie ma potrzeby
90 urychamiania ciężkiego interpretera za każdym razem, kiedy powinny być
91 zapisane nowe wartości. Dzięki temu collect może mieć rozdzielczość 10
92 sekund i nie obciążać zbytnio systemu.
95 Summary: apache-plugin for collectd
96 Summary(pl_PL.UTF-8): Wtyczka apache dla collectd
98 Requires: %{name} = %{version}-%{release}
101 This plugin collectd data provided by Apache's `mod_status'.
103 %description apache -l pl.UTF-8
104 Wtyczka collectd zbierająca informacje udostępniane przez moduł
108 Summary: APC UPS plugin for collectd
109 Summary(pl_PL.UTF-8): Wtyczka APC UPS dla collectd
111 Requires: %{name} = %{version}-%{release}
114 APC UPS plugin for collectd.
117 Summary: ascent-plugin for collectd
118 Summary(pl_PL.UTF-8): Wtyczka ascent dla collectd
120 Requires: %{name} = %{version}-%{release}
123 ascent plugin for collectd.
126 Summary: battery plugin for collectd
127 Summary(pl_PL.UTF-8): Wtyczka battery dla collectd
129 Requires: %{name} = %{version}-%{release}
132 This plugin collects the battery's charge, the drawn current and the
136 Summary: Web script for collectiond
137 Summary(pl_PL.UTF-8): Web script for collectiond
138 Group: Applications/WWW
139 Requires: %{name} = %{version}-%{release}
141 Requires: perl(Data::Dumper)
142 Requires: perl(HTML::Entities)
144 Requires: perl(URI::Escape)
145 Requires: webserver(cgi)
146 # It might be not the best choice:
147 Suggests: fonts-TTF-RedHat-liberation
149 %description collection
150 Web script for collectiond
153 Summary: cpu-plugin for collectd
154 Summary(pl_PL.UTF-8): Wtyczka cpu dla collectd
156 Requires: %{name} = %{version}-%{release}
159 The cpu-plugin collects the amount of time spent by the CPU in various states,
160 most notably executing user code, executing system code, waiting for IO
161 operations and being idle.
164 Summary: cpufreq-plugin for collectd
165 Summary(pl_PL.UTF-8): Wtyczka cpufreq dla collectd
167 Requires: %{name} = %{version}-%{release}
170 Collects the current CPU's frequency, mostly for mobile computers.
173 Summary: CSV output plugin for collectd
174 Summary(pl_PL.UTF-8): Wtyczka wyjściowa CSV dla collectd
176 Requires: %{name} = %{version}-%{release}
179 CSV output plugin for collectd.
182 Summary: df-plugin for collectd
183 Summary(pl_PL.UTF-8): Wtyczka df dla collectd
185 Requires: %{name} = %{version}-%{release}
188 The df-plugin collects file system usage information, i. e. basically how
189 much space on a mounted partition is used and how much is available. It's
190 named after and very similar to the df(1) UNIX command that's been around
194 Summary: disk-plugin for collectd
195 Summary(pl_PL.UTF-8): Wtyczka disk dla collectd
197 Requires: %{name} = %{version}-%{release}
200 This plugin collects performance statistics of harddisks and, where
201 supported, partitions.
204 Summary: dns-plugin for collectd
205 Summary(pl_PL.UTF-8): Wtyczka dns dla collectd
207 Requires: %{name} = %{version}-%{release}
208 Requires: perl-rrdtool
211 This plugin has a similar functionality to dnstop: It uses libpcap to get
212 a copy of all traffic from/to port UDP/53 (that's the DNS port), interprets
213 the packets and collects statistics of your DNS traffic.
216 Summary: email-plugin for collectd
217 Summary(pl_PL.UTF-8): Wtyczka email dla collectd
219 Requires: %{name} = %{version}-%{release}
222 The email plugin opens an UNIX-socket over which one can submit email
223 statistics, such as the number of ``ham'', ``spam'', ``virus'', etc. mails
224 received/handled, spam scores and matched spam checks.
226 This plugin is intended to be used with the the
227 Mail::SpamAssassin::Plugin::Collectd manpage SpamAssassin-plugin which is
228 included in contrib/, but is of course not limited to that use.
231 Summary: entropy-plugin for collectd
232 Summary(pl_PL.UTF-8): Wtyczka entropy dla collectd
234 Requires: %{name} = %{version}-%{release}
237 entropy plugin for collectd.
240 Summary: exec-plugin for collectd
241 Summary(pl_PL.UTF-8): Wtyczka exec dla collectd
243 Requires: %{name} = %{version}-%{release}
246 The exec plugin forks of an executable either to receive values or to
247 dispatch notifications to the outside world.
250 Summary: filecount-plugin for collectd
251 Summary(pl_PL.UTF-8): Wtyczka filecount dla collectd
253 Requires: %{name} = %{version}-%{release}
255 %description filecount
256 The filecount-plugin does something very simple: Count the number of files
257 in a directory and all its subdirectories. This can be used for a variety of
258 statistics, for example the queue length of an MTA, the number of PHP
259 sessions of a web server or simply the number of files in your home
263 Summary: hddtemp-plugin for collectd
264 Summary(pl_PL.UTF-8): Wtyczka hddtemp dla collectd
266 Requires: %{name} = %{version}-%{release}
269 Temperature of harddisks. The temperatures are provided via S.M.A.R.T. and
270 queried by the external hddtemp-daemon.
273 Summary: interface-plugin for collectd
274 Summary(pl_PL.UTF-8): Wtyczka interface dla collectd
276 Requires: %{name} = %{version}-%{release}
278 %description interface
279 The interface-plugin collects information about the traffic (octets), packets
280 and errors of interfaces.
283 Summary: iptables-plugin for collectd
284 Summary(pl_PL.UTF-8): Wtyczka iptables dla collectd
286 Requires: %{name} = %{version}-%{release}
288 %description iptables
289 With this plugin you can gather statistics from your ip_tables based
290 packetfilter (aka. firewall). It can collect the byte- and packet-counters
291 of selected rules and submit them to collectd. You can select rules that
292 should be collected wither by its position (e.g. "the fourth rule in the
293 INPUT queue in the filter table") or by its comment (using the COMMENT
294 match). This means that depending on your firewall layout you can collect
295 certain services (such as the amount of web-traffic), source or destination
296 hosts or networks, dropped packets and much more.
299 Summary: ipmi-plugin for collectd
300 Summary(pl_PL.UTF-8): Wtyczka ipmi dla collectd
302 Requires: %{name} = %{version}-%{release}
305 ipmi plugin for collectd.
307 %description ipmi -l pl.UTF-8
308 Wtyczka ipmi dla collectd.
311 Summary: IRQs-plugin for collectd
312 Summary(pl_PL.UTF-8): Wtyczka IRQs dla collectd
314 Requires: %{name} = %{version}-%{release}
317 IRQs plugin for collectd.
320 Summary: load-plugin for collectd
321 Summary(pl_PL.UTF-8): Wtyczka load dla collectd
323 Requires: %{name} = %{version}-%{release}
326 Collects the system load. These numbers give a rough overview over the
327 utilization of a machine, though their meaning is mostly overrated.
330 Summary: logfile-plugin for collectd
331 Summary(pl_PL.UTF-8): Wtyczka logfile dla collectd
333 Requires: %{name} = %{version}-%{release}
336 Logfile plugin for collectd.
338 %module_scripts mbmon
340 Summary: mbmon-plugin for collectd
341 Summary(pl_PL.UTF-8): Wtyczka mbmon dla collectd
343 Requires: %{name} = %{version}-%{release}
346 The mbmon plugin uses mbmon to retrieve temperature, voltage, etc.
349 Summary: memcached-plugin for collectd
350 Summary(pl_PL.UTF-8): Wtyczka memcached dla collectd
352 Requires: %{name} = %{version}-%{release}
354 %description memcached
355 The memcached plugin connects to a memcached daemon and collects the number
356 of connections and requests handled by the daemon, the CPU resources consumed,
357 number of items cached, number of threads, and bytes sent and received.
360 Summary: memory-plugin for collectd
361 Summary(pl_PL.UTF-8): Wtyczka memory dla collectd
363 Requires: %{name} = %{version}-%{release}
366 Collects physical memory utilization for collectd.
369 Summary: multimeter-plugin for collectd
370 Summary(pl_PL.UTF-8): Wtyczka multimeter dla collectd
372 Requires: %{name} = %{version}-%{release}
374 %description multimeter
375 Multimeter plugin for collectd.
378 Summary: mysql-plugin for collectd
379 Summary(pl_PL.UTF-8): Moduł mysql dla collectd.
381 Requires: %{name} = %{version}-%{release}
384 MySQL querying plugin. This plugins provides data of issued commands,
385 called handlers and database traffic.
387 %description mysql -l pl.UTF-8
388 Moduł odpytujący MySQL. Wtyczka udostępnia dane o wydawanych
389 poleceniach, wywoływanych procedurach obsługi i ruchu bazodanowym.
392 Summary: netlink-plugin for collectd
393 Summary(pl_PL.UTF-8): Wtyczka netlink dla collectd
395 Requires: %{name} = %{version}-%{release}
398 This plugin will open a netlink socket to the Linux kernel and use it to get
399 statistics for interfaces, qdiscs, classes, and, if you can make use of it,
400 filters. Since in most setups many of the statistics this plugin can collect
401 aren't of interest, you can select which information to gather using the
405 Summary: network-plugin for collectd
406 Summary(pl_PL.UTF-8): Wtyczka network dla collectd
408 Requires: %{name} = %{version}-%{release}
411 nginx plugin for collectd.
414 Summary: NFS-plugin for collectd
415 Summary(pl_PL.UTF-8): Wtyczka NFS dla collectd
417 Requires: %{name} = %{version}-%{release}
420 The nfs plugin counts the number of procedure calls of the different NFS
424 Summary: nginx-plugin for collectd
425 Summary(pl_PL.UTF-8): Wtyczka nginx dla collectd
427 Requires: %{name} = %{version}-%{release}
430 This plugin collects the number of connections and requests handled by the
431 nginx daemon, a HTTP and mail server/proxy. It queries the page provided by
432 the ngx_http_stub_status_module module, which isn't compiled by default.
434 %package notify_desktop
435 Summary: notify_desktop for collectd
436 Summary(pl_PL.UTF-8): Wtyczka notify_desktop dla collectd
438 Requires: %{name} = %{version}-%{release}
440 %description notify_desktop
441 This plugin sends a desktop notification to a notification daemon, as
442 defined in the Desktop Notification Specification. To actually display the
443 notifications, notification-daemon is required and collectd has to be able
444 to access the X server.
446 %package notify_email
447 Summary: notify_email-plugin for collectd
448 Summary(pl_PL.UTF-8): Wtyczka notify_email dla collectd
450 Requires: %{name} = %{version}-%{release}
452 %description notify_email
453 notify_email plugin for collectd.
456 Summary: ntpd-plugin for collectd
457 Summary(pl_PL.UTF-8): Wtyczka ntpd dla collectd
459 Requires: %{name} = %{version}-%{release}
462 NTPd plugin for collectd.
465 Summary: nut-plugin for collectd
466 Summary(pl_PL.UTF-8): Wtyczka nut dla collectd
468 Requires: %{name} = %{version}-%{release}
471 UPS statistics using the Network UPS Tools. These statistics include
472 basically everything NUT will give us, including voltages, currents, power,
473 frequencies, load, and temperatures.
476 Summary: ping-plugin for collectd
477 Summary(pl_PL.UTF-8): Wtyczka ping dla collectd
479 Requires: %{name} = %{version}-%{release}
482 The network latency is measured as a roundtrip time. An ICMP-echo-request
483 (aka. "ping")is sent to a host and the time needed for his echo-reply (aka.
484 "pong") to arrive is measured. If a reply is not received within one second
485 the plugin will no longer expect a reply and return. This may happen in
486 several circumstances, e. g. the packet is lost, the host is down, a router
487 has dismissed the packet, etc.
490 Summary: mysql-plugin for collectd
491 Summary(pl_PL.UTF-8): Moduł postgresql dla collectd.
493 Requires: %{name} = %{version}-%{release}
495 %description postgresql
496 The postgresql plugin queries statistics from PostgreSQL databases. It keeps
497 a persistent connection to all configured databases and tries to reconnect
498 if the connection has been interrupted.
501 Summary: powerdns-plugin for collectd
502 Summary(pl_PL.UTF-8): Wtyczka powerdns dla collectd
504 Requires: %{name} = %{version}-%{release}
506 %description powerdns
507 The powerdns plugin queries statistics from an authoritative PowerDNS
508 nameserver and/or a PowerDNS recursor. Since both offer a wide variety of
509 values, many of which are probably meaningless to most users, but may be
513 Summary: processes-plugin for collectd
514 Summary(pl_PL.UTF-8): Wtyczka processes dla collectd
516 Requires: %{name} = %{version}-%{release}
518 %description processes
519 This plugin collects the number of processes, grouped by their state (e.g.
520 running, sleeping, zombies, etc.). In addition to that, it can select
521 detailed statistics about selected processes, grouped by name.
524 Summary: rrdtool-plugin for collectd
525 Summary(pl_PL.UTF-8): Wtyczka rrdtool dla collectd
527 Requires: %{name} = %{version}-%{release}
531 RRDTOOL plugin for collectd.
534 Summary: sensors-plugin for collectd
535 Summary(pl_PL.UTF-8): Wtyczka sensors dla collectd
537 Requires: %{name} = %{version}-%{release}
540 This plugin uses lm-sensors to read hardware sensors. You will need to
541 configure lm-sensors before this plugin will collect any usefull and correct
544 %module_scripts serial
546 Summary: serial-plugin for collectd
547 Summary(pl_PL.UTF-8): Wtyczka serial dla collectd
549 Requires: %{name} = %{version}-%{release}
552 Serial plugin for collectd.
555 Summary: snmp-plugin for collectd
556 Summary(pl_PL.UTF-8): Wtyczka snmp dla collectd
558 Requires: %{name} = %{version}-%{release}
561 The snmp plugin queries other hosts using SNMP, the Simple Network
562 Management Protocol, and translates the value it receives to collectd's
563 internal format and dispatches them. Depending on the write plugins you have
564 loaded they may be written to disk or submitted to another instance or
565 whatever you configured.
568 Summary: swap-plugin for collectd
569 Summary(pl_PL.UTF-8): Wtyczka swap dla collectd
571 Requires: %{name} = %{version}-%{release}
574 Swap space plugin for collectd.
577 Summary: syslog-plugin for collectd
578 Summary(pl_PL.UTF-8): Wtyczka syslog dla collectd
580 Requires: %{name} = %{version}-%{release}
583 Syslog plugin for collectd.
586 Summary: tail-plugin for collectd
587 Summary(pl_PL.UTF-8): Wtyczka tail dla collectd
589 Requires: %{name} = %{version}-%{release}
592 The tail-plugin can be used to "tail" logfiles, i.e. follow them as tail -F
593 does. Each line is given to one or more "matches" which test if the line is
594 relevant for any statistics using a regular expression.
597 Summary: tcpconns-plugin for collectd
598 Summary(pl_PL.UTF-8): Wtyczka tcpconns dla collectd
600 Requires: %{name} = %{version}-%{release}
602 %description tcpconns
603 The tcpconns-plugin counts the number of TCP connections to or from a
604 specified port. Typically the connectioins where you specify the local port
605 are incoming connections while the connections where you specify the remote
606 port are outgoing connections.
609 Summary: teamspeak2-plugin for collectd
610 Summary(pl_PL.UTF-8): Wtyczka teamspeak2 dla collectd
612 Requires: %{name} = %{version}-%{release}
614 %description teamspeak2
615 The teamspeak2 plugin connects to the query port of a teamspeak2 server and
616 polls interesting global and virtual server data. The plugin can query only
617 one physical server but unlimited virtual servers.
620 Summary: thermal-plugin for collectd
621 Summary(pl_PL.UTF-8): Wtyczka thermal dla collectd
623 Requires: %{name} = %{version}-%{release}
626 Thermal plugin for collectd.
629 Summary: unixsock-plugin for collectd
630 Summary(pl_PL.UTF-8): Wtyczka unixsock dla collectd
632 Requires: %{name} = %{version}-%{release}
634 %description unixsock
635 The unixsock plugin opens an UNIX-socket over which one can interact with
636 the daemon. This can be used to use the values collected by collectd in
637 other applications, such as monitoring, or submit externally collected
641 Summary: users-plugin for collectd
642 Summary(pl_PL.UTF-8): Wtyczka users dla collectd
644 Requires: %{name} = %{version}-%{release}
647 Number of users currently logged in.
650 Summary: uuid-plugin for collectd
651 Summary(pl_PL.UTF-8): Wtyczka uuid dla collectd
653 Requires: %{name} = %{version}-%{release}
656 This plugin, if loaded, causes the Hostname to be taken from the machine's
657 UUID. The UUID is a universally unique designation for the machine, usually
658 taken from the machine's BIOS. This is most useful if the machine is
659 running in a virtual environment such as Xen, in which case the UUID is
660 preserved across shutdowns and migration.
663 Summary: vmem-plugin for collectd
664 Summary(pl_PL.UTF-8): Wtyczka vmem dla collectd
666 Requires: %{name} = %{version}-%{release}
669 The vmem plugin collects information about the usage of virtual memory.
670 Since the statistics provided by the Linux kernel are very detailed, they
671 are collected very detailed.
674 Summary: vserver-plugin for collectd
675 Summary(pl_PL.UTF-8): Wtyczka vserver dla collectd
677 Requires: %{name} = %{version}-%{release}
680 Collects information about the virtual servers running on a system, using
684 Summary: wireless-plugin for collectd
685 Summary(pl_PL.UTF-8): Wtyczka wireless dla collectd
687 Requires: %{name} = %{version}-%{release}
689 %description wireless
690 Wireless plugin for collectd.
693 Summary: xmms-plugin for collectd
694 Summary(pl_PL.UTF-8): Wtyczka xmms dla collectd
696 Requires: %{name} = %{version}-%{release}
699 This plugin collectd data provided by XMMS.
713 --with-libstatgrab=/usr \
714 --with-lm-sensors=/usr \
715 --with-libmysql=/usr \
716 --%{?with_ipmi:en}%{!?with_ipmi:dis}able-ipmi \
717 --%{?with_multimeter:en}%{!?with_multimeter:dis}able-multimeter \
718 --%{?with_dns:en}%{!?with_dns:dis}able-dns \
719 --%{?with_iptables:en}%{!?with_iptables:dis}able-iptables \
720 --%{?with_netlink:en}%{!?with_netlink:dis}able-netlink \
726 %{__make} LDFLAGS="%{rpmldflags} -lstatgrab" \
727 BUILD_WITH_OPENIPMI_CFLAGS="-I/usr/include" \
728 BUILD_WITH_OPENIPMI_LIBS="-L/usr/lib64 -lOpenIPMIutils -lOpenIPMIpthread"
731 rm -rf $RPM_BUILD_ROOT
732 install -d $RPM_BUILD_ROOT{%{_var}/{log/,lib/%{name}},/etc/{rc.d/init.d/,collectd.d}} \
733 $RPM_BUILD_ROOT{%{_appdir}/cgi-bin,%{_webappdir},%{_pkglibdir}}
736 DESTDIR=$RPM_BUILD_ROOT
738 touch $RPM_BUILD_ROOT%{_var}/log/collectd.log
739 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
742 install contrib/collection.conf $RPM_BUILD_ROOT%{_webappdir}
743 install contrib/collection.cgi $RPM_BUILD_ROOT%{_appdir}/cgi-bin
744 install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
745 install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf
746 install %{SOURCE4} $RPM_BUILD_ROOT%{_webappdir}/lighttpd.conf
748 ### Configs instalation ###
749 for i in `egrep "^LoadPlugin" src/collectd.conf |awk '{print $NF}' ` ; do
750 egrep "LoadPlugin $i$" src/collectd.conf > $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/$i.conf
751 grep -v LoadPlugin src/collectd.conf |%{__sed} -e '/./{H;$!d;}' -e "x;/ $i>/!d;" >> $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/$i.conf
754 # Example config in sources: src/collectd.conf
755 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
757 # Overwrite only files which we want to change:
758 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/df.conf
759 install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/rrdtool.conf
762 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
765 rm -rf $RPM_BUILD_ROOT
768 /sbin/chkconfig --add %{name}
769 %service %{name} restart
772 if [ "$1" = "0" ]; then
773 %service -q %{name} stop
774 /sbin/chkconfig --del %{name}
777 %define module_scripts() \
779 %service %{name} restart \
782 %service %{name} restart
784 %module_scripts apache
785 %module_scripts apcups
786 %module_scripts ascent
787 %module_scripts battery
788 %module_scripts cpufreq
793 %{?with_dns:%module_scripts dns}
794 %module_scripts email
795 %module_scripts entropy
797 %module_scripts filecount
798 %module_scripts hddtemp
799 %module_scripts interface
800 %{?with_ipmi:%module_scripts ipmi}
801 %{?with_iptables:%module_scripts iptables}
804 %module_scripts logfile
805 %module_scripts mbmon
806 %module_scripts memcached
807 %module_scripts memory
808 %{?with_multimeter:%module_scripts multimeter}
809 %module_scripts mysql
810 %{?with_netlink:%module_scripts netlink}
811 %module_scripts network
813 %module_scripts nginx
814 %module_scripts notify_desktop
815 %module_scripts notify_email
819 %module_scripts postgresql
820 %module_scripts powerdns
821 %module_scripts processes
822 %module_scripts rrdtool
823 %module_scripts sensors
824 %module_scripts serial
827 %module_scripts syslog
829 %module_scripts tcpconns
830 %module_scripts teamspeak2
831 %module_scripts thermal
832 %module_scripts unixsock
833 %module_scripts users
836 %module_scripts vserver
837 %module_scripts wireless
840 %triggerin collection -- apache1 < 1.3.37-3, apache1-base
841 %webapp_register apache %{_webapp}
843 %triggerun collection -- apache1 < 1.3.37-3, apache1-base
844 %webapp_unregister apache %{_webapp}
846 %triggerin collection -- apache < 2.2.0, apache-base
847 %webapp_register httpd %{_webapp}
849 %triggerun collection -- apache < 2.2.0, apache-base
850 %webapp_unregister httpd %{_webapp}
852 %triggerin collection -- lighttpd
853 %webapp_register lighttpd %{_webapp}
855 %triggerun collection -- lighttpd
856 %webapp_unregister lighttpd %{_webapp}
859 %defattr(644,root,root,755)
860 %doc AUTHORS ChangeLog README TODO contrib
861 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
862 %dir %{_sysconfdir}/%{name}.d
863 %attr(755,root,root) %{_sbindir}/collectd
864 %attr(755,root,root) %{_sbindir}/collectdmon
865 %attr(755,root,root) %{_bindir}/collectd-nagios
866 %dir %{_libdir}/%{name}
867 %{_libdir}/%{name}/types.db
868 %attr(754,root,root) /etc/rc.d/init.d/%{name}
869 %{_mandir}/man1/collectd.1*
870 %{_mandir}/man1/collectd-nagios.1*
871 %{_mandir}/man5/collectd.conf.5*
872 %{_mandir}/man5/collectd-perl.5*
873 %{_mandir}/man1/collectdmon.1*
874 %{_mandir}/man5/types.db.5*
875 %dir %{_var}/lib/%{name}
878 %defattr(644,root,root,755)
880 %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/collection.conf
881 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/apache.conf
882 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/httpd.conf
883 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/lighttpd.conf
885 %dir %{_appdir}/cgi-bin
886 %attr(755,root,root) %{_appdir}/cgi-bin/collection.cgi
890 %defattr(644,root,root,755)
891 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/apcups.conf
892 %attr(755,root,root) %{_libdir}/%{name}/apcups.so
895 %defattr(644,root,root,755)
896 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ascent.conf
897 %attr(755,root,root) %{_libdir}/%{name}/ascent.so
900 %defattr(644,root,root,755)
901 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/apache.conf
902 %attr(755,root,root) %{_libdir}/%{name}/apache.so
905 %defattr(644,root,root,755)
906 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/battery.conf
907 %attr(755,root,root) %{_libdir}/%{name}/battery.so
910 %defattr(644,root,root,755)
911 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/cpu.conf
912 %attr(755,root,root) %{_libdir}/%{name}/cpu.so
915 %defattr(644,root,root,755)
916 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/cpufreq.conf
917 %attr(755,root,root) %{_libdir}/%{name}/cpufreq.so
920 %defattr(644,root,root,755)
921 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/csv.conf
922 %attr(755,root,root) %{_libdir}/%{name}/csv.so
925 %defattr(644,root,root,755)
926 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/df.conf
927 %attr(755,root,root) %{_libdir}/%{name}/df.so
930 %defattr(644,root,root,755)
931 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/disk.conf
932 %attr(755,root,root) %{_libdir}/%{name}/disk.so
935 %defattr(644,root,root,755)
936 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/dns.conf
937 %attr(755,root,root) %{_libdir}/%{name}/dns.so
940 %defattr(644,root,root,755)
941 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/email.conf
942 %attr(755,root,root) %{_libdir}/%{name}/email.so
943 %{_mandir}/man5/collectd-email.5*
946 %defattr(644,root,root,755)
947 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/entropy.conf
948 %attr(755,root,root) %{_libdir}/%{name}/entropy.so
951 %defattr(644,root,root,755)
952 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/exec.conf
953 %attr(755,root,root) %{_libdir}/%{name}/exec.so
954 %{_mandir}/man5/collectd-exec.5*
957 %defattr(644,root,root,755)
958 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/filecount.conf
959 %attr(755,root,root) %{_libdir}/%{name}/filecount.so
962 %defattr(644,root,root,755)
963 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/hddtemp.conf
964 %attr(755,root,root) %{_libdir}/%{name}/hddtemp.so
967 %defattr(644,root,root,755)
968 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/interface.conf
969 %attr(755,root,root) %{_libdir}/%{name}/interface.so
973 %defattr(644,root,root,755)
974 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ipmi.conf
975 %attr(755,root,root) %{_libdir}/%{name}/ipmi.so
980 %defattr(644,root,root,755)
981 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/iptables.conf
982 %attr(755,root,root) %{_libdir}/%{name}/iptables.so
986 %defattr(644,root,root,755)
987 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/irq.conf
988 %attr(755,root,root) %{_libdir}/%{name}/irq.so
991 %defattr(644,root,root,755)
992 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/load.conf
993 %attr(755,root,root) %{_libdir}/%{name}/load.so
996 %defattr(644,root,root,755)
997 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/logfile.conf
998 %attr(755,root,root) %{_libdir}/%{name}/logfile.so
999 %{_var}/log/collectd.log
1002 %defattr(644,root,root,755)
1003 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/mbmon.conf
1004 %attr(755,root,root) %{_libdir}/%{name}/mbmon.so
1007 %defattr(644,root,root,755)
1008 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/memcached.conf
1009 %attr(755,root,root) %{_libdir}/%{name}/memcached.so
1012 %defattr(644,root,root,755)
1013 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/memory.conf
1014 %attr(755,root,root) %{_libdir}/%{name}/memory.so
1016 %if %{with multimeter}
1018 %defattr(644,root,root,755)
1019 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/multimeter.conf
1020 %attr(755,root,root) %{_libdir}/%{name}/multimeter.so
1024 %defattr(644,root,root,755)
1025 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/mysql.conf
1026 %attr(755,root,root) %{_libdir}/%{name}/mysql.so
1030 %defattr(644,root,root,755)
1031 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/netlink.conf
1032 %attr(755,root,root) %{_libdir}/%{name}/netlink.so
1036 %defattr(644,root,root,755)
1037 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/network.conf
1038 %attr(755,root,root) %{_libdir}/%{name}/network.so
1041 %defattr(644,root,root,755)
1042 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nfs.conf
1043 %attr(755,root,root) %{_libdir}/%{name}/nfs.so
1046 %defattr(644,root,root,755)
1047 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nginx.conf
1048 %attr(755,root,root) %{_libdir}/%{name}/nginx.so
1050 %files notify_desktop
1051 %defattr(644,root,root,755)
1052 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/notify_desktop.conf
1053 %attr(755,root,root) %{_libdir}/%{name}/notify_desktop.so
1056 %defattr(644,root,root,755)
1057 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/notify_email.conf
1058 %attr(755,root,root) %{_libdir}/%{name}/notify_email.so
1061 %defattr(644,root,root,755)
1062 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ntpd.conf
1063 %attr(755,root,root) %{_libdir}/%{name}/ntpd.so
1066 %defattr(644,root,root,755)
1067 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nut.conf
1068 %attr(755,root,root) %{_libdir}/%{name}/nut.so
1071 %defattr(644,root,root,755)
1072 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ping.conf
1073 %attr(755,root,root) %{_libdir}/%{name}/ping.so
1076 %defattr(644,root,root,755)
1077 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/postgresql.conf
1078 %attr(755,root,root) %{_libdir}/%{name}/postgresql.so
1081 %defattr(644,root,root,755)
1082 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/powerdns.conf
1083 %attr(755,root,root) %{_libdir}/%{name}/powerdns.so
1086 %defattr(644,root,root,755)
1087 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/processes.conf
1088 %attr(755,root,root) %{_libdir}/%{name}/processes.so
1091 %defattr(644,root,root,755)
1092 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/rrdtool.conf
1093 %attr(755,root,root) %{_libdir}/%{name}/rrdtool.so
1096 %defattr(644,root,root,755)
1097 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/sensors.conf
1098 %attr(755,root,root) %{_libdir}/%{name}/sensors.so
1101 %defattr(644,root,root,755)
1102 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/serial.conf
1103 %attr(755,root,root) %{_libdir}/%{name}/serial.so
1106 %defattr(644,root,root,755)
1107 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/snmp.conf
1108 %attr(755,root,root) %{_libdir}/%{name}/snmp.so
1109 %{_mandir}/man5/collectd-snmp.5*
1112 %defattr(644,root,root,755)
1113 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/swap.conf
1114 %attr(755,root,root) %{_libdir}/%{name}/swap.so
1117 %defattr(644,root,root,755)
1118 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/syslog.conf
1119 %attr(755,root,root) %{_libdir}/%{name}/syslog.so
1122 %defattr(644,root,root,755)
1123 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/tail.conf
1124 %attr(755,root,root) %{_libdir}/%{name}/tail.so
1127 %defattr(644,root,root,755)
1128 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/tcpconns.conf
1129 %attr(755,root,root) %{_libdir}/%{name}/tcpconns.so
1132 %defattr(644,root,root,755)
1133 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/teamspeak2.conf
1134 %attr(755,root,root) %{_libdir}/%{name}/teamspeak2.so
1137 %defattr(644,root,root,755)
1138 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/thermal.conf
1139 %attr(755,root,root) %{_libdir}/%{name}/thermal.so
1142 %defattr(644,root,root,755)
1143 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/unixsock.conf
1144 %attr(755,root,root) %{_libdir}/%{name}/unixsock.so
1145 %{_mandir}/man5/collectd-unixsock.5*
1148 %defattr(644,root,root,755)
1149 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/users.conf
1150 %attr(755,root,root) %{_libdir}/%{name}/users.so
1153 %defattr(644,root,root,755)
1154 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/uuid.conf
1155 %attr(755,root,root) %{_libdir}/%{name}/uuid.so
1158 %defattr(644,root,root,755)
1159 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/vmem.conf
1160 %attr(755,root,root) %{_libdir}/%{name}/vmem.so
1163 %defattr(644,root,root,755)
1164 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/vserver.conf
1165 %attr(755,root,root) %{_libdir}/%{name}/vserver.so
1168 %defattr(644,root,root,755)
1169 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/wireless.conf
1170 %attr(755,root,root) %{_libdir}/%{name}/wireless.so
1173 %defattr(644,root,root,755)
1174 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/xmms.conf
1175 %attr(755,root,root) %{_libdir}/%{name}/xmms.so