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
13 # - %desc -l pl for plugins
16 %bcond_without dns # ???
17 %bcond_without ipmi # ipmi plugin package
18 %bcond_without iptables # iptables plugin
19 %bcond_with multimeter # multimeter plugin
20 %bcond_without netlink # netlink plugin
22 #http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=358637
24 %undefine with_iptables
25 %undefine with_netlink
27 Summary: Collects system information in RRD files
28 Summary(pl.UTF-8): Zbieranie informacji o systemie w plikach RRD
34 Source0: http://collectd.org/files/%{name}-%{version}.tar.gz
35 # Source0-md5: ab900d15662859b8793abf99eda15c29
38 Source3: %{name}-http.conf
39 Source4: %{name}-lighttpd.conf
40 Source10: %{name}-df.conf
41 Source11: %{name}-rrdtool.conf
42 Patch0: %{name}-collection.patch
43 URL: http://collectd.org/
44 %{?with_ipmi:BuildRequires: OpenIPMI-devel >= 2.0.14-3}
45 BuildRequires: autoconf
46 BuildRequires: automake
47 BuildRequires: curl-devel
48 %{?with_iptables:BuildRequires: iptables-devel >= 1.4.1.1-4}
49 BuildRequires: libesmtp-devel
50 BuildRequires: libnetlink-devel
51 BuildRequires: libnotify-devel
52 BuildRequires: liboping-devel
53 BuildRequires: libpcap-devel
54 BuildRequires: libstatgrab-devel >= 0.12
55 BuildRequires: libtool
56 BuildRequires: lm_sensors-devel
57 BuildRequires: mysql-devel
58 BuildRequires: nut-devel
59 BuildRequires: perl-devel
60 BuildRequires: rpmbuild(macros) >= 1.268
61 BuildRequires: rrdtool-devel
62 BuildRequires: net-snmp-devel
63 BuildRequires: xmms-devel
64 Requires(post,preun): /sbin/chkconfig
66 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
68 %define _pkglibdir %{_sharedstatedir}/%{name}
69 %define _webapps /etc/webapps
70 %define _webapp %{name}
71 %define _webappdir %{_webapps}/%{_webapp}
72 %define _appdir %{_datadir}/%{_webapp}
75 collectd is a small daemon which collects system information every 10
76 seconds and writes the results in an RRD-file.
78 In contrast to most similar software, collectd is not a script but
79 written in plain C for performance and portability. As a daemon it
80 stays in memory, so there is no need to start up a heavy interpreter
81 every time new values should be logged. This allows collectd to have a
82 10 second resolution while being nice to the system.
84 %description -l pl.UTF-8
85 collectd to mały demon zbierający co 10 sekund informacje o systemie i
86 zapisujący wyniki do pliku RRD.
88 W odróżnieniu od innych podobnych programów collectd nie jest
89 skryptem, lecz jest napisany w czystym C z myślą o wydajności i
90 przenośności. Jako demon pozostaje w pamięci, więc nie ma potrzeby
91 urychamiania ciężkiego interpretera za każdym razem, kiedy powinny być
92 zapisane nowe wartości. Dzięki temu collect może mieć rozdzielczość 10
93 sekund i nie obciążać zbytnio systemu.
96 Summary: apache-plugin for collectd
97 Summary(pl_PL.UTF-8): Wtyczka apache dla collectd
99 Requires: %{name} = %{version}-%{release}
102 This plugin collectd data provided by Apache's `mod_status'.
104 %description apache -l pl.UTF-8
105 Wtyczka collectd zbierająca informacje udostępniane przez moduł
109 Summary: APC UPS plugin for collectd
110 Summary(pl_PL.UTF-8): Wtyczka APC UPS dla collectd
112 Requires: %{name} = %{version}-%{release}
115 APC UPS plugin for collectd.
118 Summary: ascent-plugin for collectd
119 Summary(pl_PL.UTF-8): Wtyczka ascent dla collectd
121 Requires: %{name} = %{version}-%{release}
124 ascent plugin for collectd.
127 Summary: battery plugin for collectd
128 Summary(pl_PL.UTF-8): Wtyczka battery dla collectd
130 Requires: %{name} = %{version}-%{release}
133 This plugin collects the battery's charge, the drawn current and the
137 Summary: Web script for collectd
138 Summary(pl_PL.UTF-8): Web script for collectd
139 Group: Applications/WWW
140 Requires: %{name} = %{version}-%{release}
142 Requires: perl(Data::Dumper)
143 Requires: perl(HTML::Entities)
145 Requires: perl(URI::Escape)
146 Requires: webserver(cgi)
147 Suggests: fonts-TTF-DejaVu
149 %description collection
150 Web script for collectd.
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}
267 Suggests: hddtemp-hddtempd
270 Temperature of harddisks. The temperatures are provided via S.M.A.R.T. and
271 queried by the external hddtemp-daemon.
274 Summary: interface-plugin for collectd
275 Summary(pl_PL.UTF-8): Wtyczka interface dla collectd
277 Requires: %{name} = %{version}-%{release}
279 %description interface
280 The interface-plugin collects information about the traffic (octets), packets
281 and errors of interfaces.
284 Summary: iptables-plugin for collectd
285 Summary(pl_PL.UTF-8): Wtyczka iptables dla collectd
287 Requires: %{name} = %{version}-%{release}
289 %description iptables
290 With this plugin you can gather statistics from your ip_tables based
291 packetfilter (aka. firewall). It can collect the byte- and packet-counters
292 of selected rules and submit them to collectd. You can select rules that
293 should be collected wither by its position (e.g. "the fourth rule in the
294 INPUT queue in the filter table") or by its comment (using the COMMENT
295 match). This means that depending on your firewall layout you can collect
296 certain services (such as the amount of web-traffic), source or destination
297 hosts or networks, dropped packets and much more.
300 Summary: ipmi-plugin for collectd
301 Summary(pl_PL.UTF-8): Wtyczka ipmi dla collectd
303 Requires: %{name} = %{version}-%{release}
306 ipmi plugin for collectd.
308 %description ipmi -l pl.UTF-8
309 Wtyczka ipmi dla collectd.
312 Summary: IRQs-plugin for collectd
313 Summary(pl_PL.UTF-8): Wtyczka IRQs dla collectd
315 Requires: %{name} = %{version}-%{release}
318 IRQs plugin for collectd.
321 Summary: load-plugin for collectd
322 Summary(pl_PL.UTF-8): Wtyczka load dla collectd
324 Requires: %{name} = %{version}-%{release}
327 Collects the system load. These numbers give a rough overview over the
328 utilization of a machine, though their meaning is mostly overrated.
331 Summary: logfile-plugin for collectd
332 Summary(pl_PL.UTF-8): Wtyczka logfile dla collectd
334 Requires: %{name} = %{version}-%{release}
337 Logfile plugin for collectd.
339 %module_scripts mbmon
341 Summary: mbmon-plugin for collectd
342 Summary(pl_PL.UTF-8): Wtyczka mbmon dla collectd
344 Requires: %{name} = %{version}-%{release}
347 The mbmon plugin uses mbmon to retrieve temperature, voltage, etc.
350 Summary: memcached-plugin for collectd
351 Summary(pl_PL.UTF-8): Wtyczka memcached dla collectd
353 Requires: %{name} = %{version}-%{release}
355 %description memcached
356 The memcached plugin connects to a memcached daemon and collects the number
357 of connections and requests handled by the daemon, the CPU resources consumed,
358 number of items cached, number of threads, and bytes sent and received.
361 Summary: memory-plugin for collectd
362 Summary(pl_PL.UTF-8): Wtyczka memory dla collectd
364 Requires: %{name} = %{version}-%{release}
367 Collects physical memory utilization for collectd.
370 Summary: multimeter-plugin for collectd
371 Summary(pl_PL.UTF-8): Wtyczka multimeter dla collectd
373 Requires: %{name} = %{version}-%{release}
375 %description multimeter
376 Multimeter plugin for collectd.
379 Summary: mysql-plugin for collectd
380 Summary(pl_PL.UTF-8): Moduł mysql dla collectd.
382 Requires: %{name} = %{version}-%{release}
385 MySQL querying plugin. This plugins provides data of issued commands,
386 called handlers and database traffic.
388 %description mysql -l pl.UTF-8
389 Moduł odpytujący MySQL. Wtyczka udostępnia dane o wydawanych
390 poleceniach, wywoływanych procedurach obsługi i ruchu bazodanowym.
393 Summary: netlink-plugin for collectd
394 Summary(pl_PL.UTF-8): Wtyczka netlink dla collectd
396 Requires: %{name} = %{version}-%{release}
399 This plugin will open a netlink socket to the Linux kernel and use it to get
400 statistics for interfaces, qdiscs, classes, and, if you can make use of it,
401 filters. Since in most setups many of the statistics this plugin can collect
402 aren't of interest, you can select which information to gather using the
406 Summary: network-plugin for collectd
407 Summary(pl_PL.UTF-8): Wtyczka network dla collectd
409 Requires: %{name} = %{version}-%{release}
412 nginx plugin for collectd.
415 Summary: NFS-plugin for collectd
416 Summary(pl_PL.UTF-8): Wtyczka NFS dla collectd
418 Requires: %{name} = %{version}-%{release}
421 The nfs plugin counts the number of procedure calls of the different NFS
425 Summary: nginx-plugin for collectd
426 Summary(pl_PL.UTF-8): Wtyczka nginx dla collectd
428 Requires: %{name} = %{version}-%{release}
431 This plugin collects the number of connections and requests handled by the
432 nginx daemon, a HTTP and mail server/proxy. It queries the page provided by
433 the ngx_http_stub_status_module module, which isn't compiled by default.
435 %package notify_desktop
436 Summary: notify_desktop for collectd
437 Summary(pl_PL.UTF-8): Wtyczka notify_desktop dla collectd
439 Requires: %{name} = %{version}-%{release}
441 %description notify_desktop
442 This plugin sends a desktop notification to a notification daemon, as
443 defined in the Desktop Notification Specification. To actually display the
444 notifications, notification-daemon is required and collectd has to be able
445 to access the X server.
447 %package notify_email
448 Summary: notify_email-plugin for collectd
449 Summary(pl_PL.UTF-8): Wtyczka notify_email dla collectd
451 Requires: %{name} = %{version}-%{release}
453 %description notify_email
454 notify_email plugin for collectd.
457 Summary: ntpd-plugin for collectd
458 Summary(pl_PL.UTF-8): Wtyczka ntpd dla collectd
460 Requires: %{name} = %{version}-%{release}
463 NTPd plugin for collectd.
466 Summary: nut-plugin for collectd
467 Summary(pl_PL.UTF-8): Wtyczka nut dla collectd
469 Requires: %{name} = %{version}-%{release}
472 UPS statistics using the Network UPS Tools. These statistics include
473 basically everything NUT will give us, including voltages, currents, power,
474 frequencies, load, and temperatures.
477 Summary: ping-plugin for collectd
478 Summary(pl_PL.UTF-8): Wtyczka ping dla collectd
480 Requires: %{name} = %{version}-%{release}
483 The network latency is measured as a roundtrip time. An ICMP-echo-request
484 (aka. "ping")is sent to a host and the time needed for his echo-reply (aka.
485 "pong") to arrive is measured. If a reply is not received within one second
486 the plugin will no longer expect a reply and return. This may happen in
487 several circumstances, e. g. the packet is lost, the host is down, a router
488 has dismissed the packet, etc.
491 Summary: mysql-plugin for collectd
492 Summary(pl_PL.UTF-8): Moduł postgresql dla collectd.
494 Requires: %{name} = %{version}-%{release}
496 %description postgresql
497 The postgresql plugin queries statistics from PostgreSQL databases. It keeps
498 a persistent connection to all configured databases and tries to reconnect
499 if the connection has been interrupted.
502 Summary: powerdns-plugin for collectd
503 Summary(pl_PL.UTF-8): Wtyczka powerdns dla collectd
505 Requires: %{name} = %{version}-%{release}
507 %description powerdns
508 The powerdns plugin queries statistics from an authoritative PowerDNS
509 nameserver and/or a PowerDNS recursor. Since both offer a wide variety of
510 values, many of which are probably meaningless to most users, but may be
514 Summary: processes-plugin for collectd
515 Summary(pl_PL.UTF-8): Wtyczka processes dla collectd
517 Requires: %{name} = %{version}-%{release}
519 %description processes
520 This plugin collects the number of processes, grouped by their state (e.g.
521 running, sleeping, zombies, etc.). In addition to that, it can select
522 detailed statistics about selected processes, grouped by name.
525 Summary: rrdtool-plugin for collectd
526 Summary(pl_PL.UTF-8): Wtyczka rrdtool dla collectd
528 Requires: %{name} = %{version}-%{release}
532 RRDTOOL plugin for collectd.
535 Summary: sensors-plugin for collectd
536 Summary(pl_PL.UTF-8): Wtyczka sensors dla collectd
538 Requires: %{name} = %{version}-%{release}
541 This plugin uses lm-sensors to read hardware sensors. You will need to
542 configure lm-sensors before this plugin will collect any usefull and correct
545 %module_scripts serial
547 Summary: serial-plugin for collectd
548 Summary(pl_PL.UTF-8): Wtyczka serial dla collectd
550 Requires: %{name} = %{version}-%{release}
553 Serial plugin for collectd.
556 Summary: snmp-plugin for collectd
557 Summary(pl_PL.UTF-8): Wtyczka snmp dla collectd
559 Requires: %{name} = %{version}-%{release}
562 The snmp plugin queries other hosts using SNMP, the Simple Network
563 Management Protocol, and translates the value it receives to collectd's
564 internal format and dispatches them. Depending on the write plugins you have
565 loaded they may be written to disk or submitted to another instance or
566 whatever you configured.
569 Summary: swap-plugin for collectd
570 Summary(pl_PL.UTF-8): Wtyczka swap dla collectd
572 Requires: %{name} = %{version}-%{release}
575 Swap space plugin for collectd.
578 Summary: syslog-plugin for collectd
579 Summary(pl_PL.UTF-8): Wtyczka syslog dla collectd
581 Requires: %{name} = %{version}-%{release}
584 Syslog plugin for collectd.
587 Summary: tail-plugin for collectd
588 Summary(pl_PL.UTF-8): Wtyczka tail dla collectd
590 Requires: %{name} = %{version}-%{release}
593 The tail-plugin can be used to "tail" logfiles, i.e. follow them as tail -F
594 does. Each line is given to one or more "matches" which test if the line is
595 relevant for any statistics using a regular expression.
598 Summary: tcpconns-plugin for collectd
599 Summary(pl_PL.UTF-8): Wtyczka tcpconns dla collectd
601 Requires: %{name} = %{version}-%{release}
603 %description tcpconns
604 The tcpconns-plugin counts the number of TCP connections to or from a
605 specified port. Typically the connectioins where you specify the local port
606 are incoming connections while the connections where you specify the remote
607 port are outgoing connections.
610 Summary: teamspeak2-plugin for collectd
611 Summary(pl_PL.UTF-8): Wtyczka teamspeak2 dla collectd
613 Requires: %{name} = %{version}-%{release}
615 %description teamspeak2
616 The teamspeak2 plugin connects to the query port of a teamspeak2 server and
617 polls interesting global and virtual server data. The plugin can query only
618 one physical server but unlimited virtual servers.
621 Summary: thermal-plugin for collectd
622 Summary(pl_PL.UTF-8): Wtyczka thermal dla collectd
624 Requires: %{name} = %{version}-%{release}
627 Thermal plugin for collectd.
630 Summary: unixsock-plugin for collectd
631 Summary(pl_PL.UTF-8): Wtyczka unixsock dla collectd
633 Requires: %{name} = %{version}-%{release}
635 %description unixsock
636 The unixsock plugin opens an UNIX-socket over which one can interact with
637 the daemon. This can be used to use the values collected by collectd in
638 other applications, such as monitoring, or submit externally collected
642 Summary: users-plugin for collectd
643 Summary(pl_PL.UTF-8): Wtyczka users dla collectd
645 Requires: %{name} = %{version}-%{release}
648 Number of users currently logged in.
651 Summary: uuid-plugin for collectd
652 Summary(pl_PL.UTF-8): Wtyczka uuid dla collectd
654 Requires: %{name} = %{version}-%{release}
657 This plugin, if loaded, causes the Hostname to be taken from the machine's
658 UUID. The UUID is a universally unique designation for the machine, usually
659 taken from the machine's BIOS. This is most useful if the machine is
660 running in a virtual environment such as Xen, in which case the UUID is
661 preserved across shutdowns and migration.
664 Summary: vmem-plugin for collectd
665 Summary(pl_PL.UTF-8): Wtyczka vmem dla collectd
667 Requires: %{name} = %{version}-%{release}
670 The vmem plugin collects information about the usage of virtual memory.
671 Since the statistics provided by the Linux kernel are very detailed, they
672 are collected very detailed.
675 Summary: vserver-plugin for collectd
676 Summary(pl_PL.UTF-8): Wtyczka vserver dla collectd
678 Requires: %{name} = %{version}-%{release}
681 Collects information about the virtual servers running on a system, using
685 Summary: wireless-plugin for collectd
686 Summary(pl_PL.UTF-8): Wtyczka wireless dla collectd
688 Requires: %{name} = %{version}-%{release}
690 %description wireless
691 Wireless plugin for collectd.
694 Summary: xmms-plugin for collectd
695 Summary(pl_PL.UTF-8): Wtyczka xmms dla collectd
697 Requires: %{name} = %{version}-%{release}
700 This plugin collectd data provided by XMMS.
714 --with-libstatgrab=/usr \
715 --with-lm-sensors=/usr \
716 --with-libmysql=/usr \
717 --%{?with_ipmi:en}%{!?with_ipmi:dis}able-ipmi \
718 --%{?with_multimeter:en}%{!?with_multimeter:dis}able-multimeter \
719 --%{?with_dns:en}%{!?with_dns:dis}able-dns \
720 --%{?with_iptables:en}%{!?with_iptables:dis}able-iptables \
721 --%{?with_netlink:en}%{!?with_netlink:dis}able-netlink \
727 %{__make} LDFLAGS="%{rpmldflags} -lstatgrab" \
728 BUILD_WITH_OPENIPMI_CFLAGS="-I/usr/include" \
729 BUILD_WITH_OPENIPMI_LIBS="-L/usr/lib64 -lOpenIPMIutils -lOpenIPMIpthread"
732 rm -rf $RPM_BUILD_ROOT
733 install -d $RPM_BUILD_ROOT{%{_var}/{log/,lib/%{name}},/etc/{rc.d/init.d/,collectd.d}} \
734 $RPM_BUILD_ROOT{%{_appdir}/cgi-bin,%{_webappdir},%{_pkglibdir}}
737 DESTDIR=$RPM_BUILD_ROOT
739 touch $RPM_BUILD_ROOT%{_var}/log/collectd.log
740 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
743 install contrib/collection.conf $RPM_BUILD_ROOT%{_webappdir}
744 install contrib/collection.cgi $RPM_BUILD_ROOT%{_appdir}/cgi-bin
745 install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
746 install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf
747 install %{SOURCE4} $RPM_BUILD_ROOT%{_webappdir}/lighttpd.conf
749 ### Configs instalation ###
750 for i in `egrep "^LoadPlugin" src/collectd.conf |awk '{print $NF}' ` ; do
751 egrep "LoadPlugin $i$" src/collectd.conf > $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/$i.conf
752 grep -v LoadPlugin src/collectd.conf |%{__sed} -e '/./{H;$!d;}' -e "x;/ $i>/!d;" >> $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/$i.conf
755 # Example config in sources: src/collectd.conf
756 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
758 # Overwrite only files which we want to change:
759 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/df.conf
760 install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/rrdtool.conf
763 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
766 rm -rf $RPM_BUILD_ROOT
769 /sbin/chkconfig --add %{name}
770 %service %{name} restart
773 if [ "$1" = "0" ]; then
774 %service -q %{name} stop
775 /sbin/chkconfig --del %{name}
778 %define module_scripts() \
780 %service %{name} restart \
783 %service %{name} restart
785 %module_scripts apache
786 %module_scripts apcups
787 %module_scripts ascent
788 %module_scripts battery
789 %module_scripts cpufreq
794 %{?with_dns:%module_scripts dns}
795 %module_scripts email
796 %module_scripts entropy
798 %module_scripts filecount
799 %module_scripts hddtemp
800 %module_scripts interface
801 %{?with_ipmi:%module_scripts ipmi}
802 %{?with_iptables:%module_scripts iptables}
805 %module_scripts logfile
806 %module_scripts mbmon
807 %module_scripts memcached
808 %module_scripts memory
809 %{?with_multimeter:%module_scripts multimeter}
810 %module_scripts mysql
811 %{?with_netlink:%module_scripts netlink}
812 %module_scripts network
814 %module_scripts nginx
815 %module_scripts notify_desktop
816 %module_scripts notify_email
820 %module_scripts postgresql
821 %module_scripts powerdns
822 %module_scripts processes
823 %module_scripts rrdtool
824 %module_scripts sensors
825 %module_scripts serial
828 %module_scripts syslog
830 %module_scripts tcpconns
831 %module_scripts teamspeak2
832 %module_scripts thermal
833 %module_scripts unixsock
834 %module_scripts users
837 %module_scripts vserver
838 %module_scripts wireless
841 %triggerin collection -- apache1 < 1.3.37-3, apache1-base
842 %webapp_register apache %{_webapp}
844 %triggerun collection -- apache1 < 1.3.37-3, apache1-base
845 %webapp_unregister apache %{_webapp}
847 %triggerin collection -- apache < 2.2.0, apache-base
848 %webapp_register httpd %{_webapp}
850 %triggerun collection -- apache < 2.2.0, apache-base
851 %webapp_unregister httpd %{_webapp}
853 %triggerin collection -- lighttpd
854 %webapp_register lighttpd %{_webapp}
856 %triggerun collection -- lighttpd
857 %webapp_unregister lighttpd %{_webapp}
860 %defattr(644,root,root,755)
861 %doc AUTHORS ChangeLog README TODO contrib
862 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
863 %dir %{_sysconfdir}/%{name}.d
864 %attr(755,root,root) %{_sbindir}/collectd
865 %attr(755,root,root) %{_sbindir}/collectdmon
866 %attr(755,root,root) %{_bindir}/collectd-nagios
867 %dir %{_libdir}/%{name}
868 %{_libdir}/%{name}/types.db
869 %attr(754,root,root) /etc/rc.d/init.d/%{name}
870 %{_mandir}/man1/collectd.1*
871 %{_mandir}/man1/collectd-nagios.1*
872 %{_mandir}/man5/collectd.conf.5*
873 %{_mandir}/man5/collectd-perl.5*
874 %{_mandir}/man1/collectdmon.1*
875 %{_mandir}/man5/types.db.5*
876 %dir %{_var}/lib/%{name}
879 %defattr(644,root,root,755)
881 %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/collection.conf
882 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/apache.conf
883 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/httpd.conf
884 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/lighttpd.conf
886 %dir %{_appdir}/cgi-bin
887 %attr(755,root,root) %{_appdir}/cgi-bin/collection.cgi
891 %defattr(644,root,root,755)
892 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/apcups.conf
893 %attr(755,root,root) %{_libdir}/%{name}/apcups.so
896 %defattr(644,root,root,755)
897 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ascent.conf
898 %attr(755,root,root) %{_libdir}/%{name}/ascent.so
901 %defattr(644,root,root,755)
902 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/apache.conf
903 %attr(755,root,root) %{_libdir}/%{name}/apache.so
906 %defattr(644,root,root,755)
907 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/battery.conf
908 %attr(755,root,root) %{_libdir}/%{name}/battery.so
911 %defattr(644,root,root,755)
912 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/cpu.conf
913 %attr(755,root,root) %{_libdir}/%{name}/cpu.so
916 %defattr(644,root,root,755)
917 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/cpufreq.conf
918 %attr(755,root,root) %{_libdir}/%{name}/cpufreq.so
921 %defattr(644,root,root,755)
922 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/csv.conf
923 %attr(755,root,root) %{_libdir}/%{name}/csv.so
926 %defattr(644,root,root,755)
927 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/df.conf
928 %attr(755,root,root) %{_libdir}/%{name}/df.so
931 %defattr(644,root,root,755)
932 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/disk.conf
933 %attr(755,root,root) %{_libdir}/%{name}/disk.so
936 %defattr(644,root,root,755)
937 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/dns.conf
938 %attr(755,root,root) %{_libdir}/%{name}/dns.so
941 %defattr(644,root,root,755)
942 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/email.conf
943 %attr(755,root,root) %{_libdir}/%{name}/email.so
944 %{_mandir}/man5/collectd-email.5*
947 %defattr(644,root,root,755)
948 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/entropy.conf
949 %attr(755,root,root) %{_libdir}/%{name}/entropy.so
952 %defattr(644,root,root,755)
953 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/exec.conf
954 %attr(755,root,root) %{_libdir}/%{name}/exec.so
955 %{_mandir}/man5/collectd-exec.5*
958 %defattr(644,root,root,755)
959 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/filecount.conf
960 %attr(755,root,root) %{_libdir}/%{name}/filecount.so
963 %defattr(644,root,root,755)
964 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/hddtemp.conf
965 %attr(755,root,root) %{_libdir}/%{name}/hddtemp.so
968 %defattr(644,root,root,755)
969 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/interface.conf
970 %attr(755,root,root) %{_libdir}/%{name}/interface.so
974 %defattr(644,root,root,755)
975 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ipmi.conf
976 %attr(755,root,root) %{_libdir}/%{name}/ipmi.so
981 %defattr(644,root,root,755)
982 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/iptables.conf
983 %attr(755,root,root) %{_libdir}/%{name}/iptables.so
987 %defattr(644,root,root,755)
988 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/irq.conf
989 %attr(755,root,root) %{_libdir}/%{name}/irq.so
992 %defattr(644,root,root,755)
993 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/load.conf
994 %attr(755,root,root) %{_libdir}/%{name}/load.so
997 %defattr(644,root,root,755)
998 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/logfile.conf
999 %attr(755,root,root) %{_libdir}/%{name}/logfile.so
1000 %{_var}/log/collectd.log
1003 %defattr(644,root,root,755)
1004 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/mbmon.conf
1005 %attr(755,root,root) %{_libdir}/%{name}/mbmon.so
1008 %defattr(644,root,root,755)
1009 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/memcached.conf
1010 %attr(755,root,root) %{_libdir}/%{name}/memcached.so
1013 %defattr(644,root,root,755)
1014 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/memory.conf
1015 %attr(755,root,root) %{_libdir}/%{name}/memory.so
1017 %if %{with multimeter}
1019 %defattr(644,root,root,755)
1020 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/multimeter.conf
1021 %attr(755,root,root) %{_libdir}/%{name}/multimeter.so
1025 %defattr(644,root,root,755)
1026 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/mysql.conf
1027 %attr(755,root,root) %{_libdir}/%{name}/mysql.so
1031 %defattr(644,root,root,755)
1032 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/netlink.conf
1033 %attr(755,root,root) %{_libdir}/%{name}/netlink.so
1037 %defattr(644,root,root,755)
1038 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/network.conf
1039 %attr(755,root,root) %{_libdir}/%{name}/network.so
1042 %defattr(644,root,root,755)
1043 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nfs.conf
1044 %attr(755,root,root) %{_libdir}/%{name}/nfs.so
1047 %defattr(644,root,root,755)
1048 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nginx.conf
1049 %attr(755,root,root) %{_libdir}/%{name}/nginx.so
1051 %files notify_desktop
1052 %defattr(644,root,root,755)
1053 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/notify_desktop.conf
1054 %attr(755,root,root) %{_libdir}/%{name}/notify_desktop.so
1057 %defattr(644,root,root,755)
1058 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/notify_email.conf
1059 %attr(755,root,root) %{_libdir}/%{name}/notify_email.so
1062 %defattr(644,root,root,755)
1063 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ntpd.conf
1064 %attr(755,root,root) %{_libdir}/%{name}/ntpd.so
1067 %defattr(644,root,root,755)
1068 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nut.conf
1069 %attr(755,root,root) %{_libdir}/%{name}/nut.so
1072 %defattr(644,root,root,755)
1073 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ping.conf
1074 %attr(755,root,root) %{_libdir}/%{name}/ping.so
1077 %defattr(644,root,root,755)
1078 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/postgresql.conf
1079 %attr(755,root,root) %{_libdir}/%{name}/postgresql.so
1082 %defattr(644,root,root,755)
1083 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/powerdns.conf
1084 %attr(755,root,root) %{_libdir}/%{name}/powerdns.so
1087 %defattr(644,root,root,755)
1088 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/processes.conf
1089 %attr(755,root,root) %{_libdir}/%{name}/processes.so
1092 %defattr(644,root,root,755)
1093 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/rrdtool.conf
1094 %attr(755,root,root) %{_libdir}/%{name}/rrdtool.so
1097 %defattr(644,root,root,755)
1098 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/sensors.conf
1099 %attr(755,root,root) %{_libdir}/%{name}/sensors.so
1102 %defattr(644,root,root,755)
1103 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/serial.conf
1104 %attr(755,root,root) %{_libdir}/%{name}/serial.so
1107 %defattr(644,root,root,755)
1108 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/snmp.conf
1109 %attr(755,root,root) %{_libdir}/%{name}/snmp.so
1110 %{_mandir}/man5/collectd-snmp.5*
1113 %defattr(644,root,root,755)
1114 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/swap.conf
1115 %attr(755,root,root) %{_libdir}/%{name}/swap.so
1118 %defattr(644,root,root,755)
1119 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/syslog.conf
1120 %attr(755,root,root) %{_libdir}/%{name}/syslog.so
1123 %defattr(644,root,root,755)
1124 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/tail.conf
1125 %attr(755,root,root) %{_libdir}/%{name}/tail.so
1128 %defattr(644,root,root,755)
1129 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/tcpconns.conf
1130 %attr(755,root,root) %{_libdir}/%{name}/tcpconns.so
1133 %defattr(644,root,root,755)
1134 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/teamspeak2.conf
1135 %attr(755,root,root) %{_libdir}/%{name}/teamspeak2.so
1138 %defattr(644,root,root,755)
1139 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/thermal.conf
1140 %attr(755,root,root) %{_libdir}/%{name}/thermal.so
1143 %defattr(644,root,root,755)
1144 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/unixsock.conf
1145 %attr(755,root,root) %{_libdir}/%{name}/unixsock.so
1146 %{_mandir}/man5/collectd-unixsock.5*
1149 %defattr(644,root,root,755)
1150 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/users.conf
1151 %attr(755,root,root) %{_libdir}/%{name}/users.so
1154 %defattr(644,root,root,755)
1155 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/uuid.conf
1156 %attr(755,root,root) %{_libdir}/%{name}/uuid.so
1159 %defattr(644,root,root,755)
1160 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/vmem.conf
1161 %attr(755,root,root) %{_libdir}/%{name}/vmem.so
1164 %defattr(644,root,root,755)
1165 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/vserver.conf
1166 %attr(755,root,root) %{_libdir}/%{name}/vserver.so
1169 %defattr(644,root,root,755)
1170 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/wireless.conf
1171 %attr(755,root,root) %{_libdir}/%{name}/wireless.so
1174 %defattr(644,root,root,755)
1175 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/xmms.conf
1176 %attr(755,root,root) %{_libdir}/%{name}/xmms.so