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: 464f44da322f78dcc9c12eeb52d3ad8d
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 BuildRequires: hal-devel
49 %{?with_iptables:BuildRequires: iptables-devel >= 1.4.1.1-4}
50 BuildRequires: libesmtp-devel
51 BuildRequires: libnetlink-devel
52 BuildRequires: libnotify-devel
53 BuildRequires: liboping-devel
54 BuildRequires: libpcap-devel
55 BuildRequires: libstatgrab-devel >= 0.12
56 BuildRequires: libtool
57 BuildRequires: libxml2-devel
58 BuildRequires: lm_sensors-devel
59 BuildRequires: mysql-devel
60 BuildRequires: nut-devel
61 BuildRequires: perl-devel
62 BuildRequires: postgresql-devel
63 BuildRequires: rpmbuild(macros) >= 1.268
64 BuildRequires: rrdtool-devel
65 BuildRequires: net-snmp-devel
66 BuildRequires: xmms-devel
67 Requires(post,preun): /sbin/chkconfig
69 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
71 %define _pkglibdir %{_sharedstatedir}/%{name}
72 %define _webapps /etc/webapps
73 %define _webapp %{name}
74 %define _webappdir %{_webapps}/%{_webapp}
75 %define _appdir %{_datadir}/%{_webapp}
78 collectd is a small daemon which collects system information every 10
79 seconds and writes the results in an RRD-file.
81 In contrast to most similar software, collectd is not a script but
82 written in plain C for performance and portability. As a daemon it
83 stays in memory, so there is no need to start up a heavy interpreter
84 every time new values should be logged. This allows collectd to have a
85 10 second resolution while being nice to the system.
87 %description -l pl.UTF-8
88 collectd to mały demon zbierający co 10 sekund informacje o systemie i
89 zapisujący wyniki do pliku RRD.
91 W odróżnieniu od innych podobnych programów collectd nie jest
92 skryptem, lecz jest napisany w czystym C z myślą o wydajności i
93 przenośności. Jako demon pozostaje w pamięci, więc nie ma potrzeby
94 urychamiania ciężkiego interpretera za każdym razem, kiedy powinny być
95 zapisane nowe wartości. Dzięki temu collect może mieć rozdzielczość 10
96 sekund i nie obciążać zbytnio systemu.
99 Summary: apache-plugin for collectd
100 Summary(pl_PL.UTF-8): Wtyczka apache dla collectd
102 Requires: %{name} = %{version}-%{release}
105 This plugin collectd data provided by Apache's `mod_status'.
107 %description apache -l pl.UTF-8
108 Wtyczka collectd zbierająca informacje udostępniane przez moduł
112 Summary: APC UPS plugin for collectd
113 Summary(pl_PL.UTF-8): Wtyczka APC UPS dla collectd
115 Requires: %{name} = %{version}-%{release}
118 APC UPS plugin for collectd.
121 Summary: ascent-plugin for collectd
122 Summary(pl_PL.UTF-8): Wtyczka ascent dla collectd
124 Requires: %{name} = %{version}-%{release}
127 ascent plugin for collectd.
130 Summary: battery plugin for collectd
131 Summary(pl_PL.UTF-8): Wtyczka battery dla collectd
133 Requires: %{name} = %{version}-%{release}
136 This plugin collects the battery's charge, the drawn current and the
140 Summary: Web script for collectd
141 Summary(pl_PL.UTF-8): Web script for collectd
142 Group: Applications/WWW
143 Requires: %{name} = %{version}-%{release}
145 Requires: perl(Data::Dumper)
146 Requires: perl(HTML::Entities)
148 Requires: perl(URI::Escape)
149 Requires: webserver(cgi)
150 Suggests: fonts-TTF-DejaVu
152 %description collection
153 Web script for collectd.
156 Summary: cpu-plugin for collectd
157 Summary(pl_PL.UTF-8): Wtyczka cpu dla collectd
159 Requires: %{name} = %{version}-%{release}
162 The cpu-plugin collects the amount of time spent by the CPU in various states,
163 most notably executing user code, executing system code, waiting for IO
164 operations and being idle.
167 Summary: cpufreq-plugin for collectd
168 Summary(pl_PL.UTF-8): Wtyczka cpufreq dla collectd
170 Requires: %{name} = %{version}-%{release}
173 Collects the current CPU's frequency, mostly for mobile computers.
176 Summary: CSV output plugin for collectd
177 Summary(pl_PL.UTF-8): Wtyczka wyjściowa CSV dla collectd
179 Requires: %{name} = %{version}-%{release}
182 CSV output plugin for collectd.
185 Summary: df-plugin for collectd
186 Summary(pl_PL.UTF-8): Wtyczka df dla collectd
188 Requires: %{name} = %{version}-%{release}
191 The df-plugin collects file system usage information, i. e. basically how
192 much space on a mounted partition is used and how much is available. It's
193 named after and very similar to the df(1) UNIX command that's been around
197 Summary: disk-plugin for collectd
198 Summary(pl_PL.UTF-8): Wtyczka disk dla collectd
200 Requires: %{name} = %{version}-%{release}
203 This plugin collects performance statistics of harddisks and, where
204 supported, partitions.
207 Summary: dns-plugin for collectd
208 Summary(pl_PL.UTF-8): Wtyczka dns dla collectd
210 Requires: %{name} = %{version}-%{release}
211 Requires: perl-rrdtool
214 This plugin has a similar functionality to dnstop: It uses libpcap to get
215 a copy of all traffic from/to port UDP/53 (that's the DNS port), interprets
216 the packets and collects statistics of your DNS traffic.
219 Summary: email-plugin for collectd
220 Summary(pl_PL.UTF-8): Wtyczka email dla collectd
222 Requires: %{name} = %{version}-%{release}
225 The email plugin opens an UNIX-socket over which one can submit email
226 statistics, such as the number of ``ham'', ``spam'', ``virus'', etc. mails
227 received/handled, spam scores and matched spam checks.
229 This plugin is intended to be used with the the
230 Mail::SpamAssassin::Plugin::Collectd manpage SpamAssassin-plugin which is
231 included in contrib/, but is of course not limited to that use.
234 Summary: entropy-plugin for collectd
235 Summary(pl_PL.UTF-8): Wtyczka entropy dla collectd
237 Requires: %{name} = %{version}-%{release}
240 entropy plugin for collectd.
243 Summary: exec-plugin for collectd
244 Summary(pl_PL.UTF-8): Wtyczka exec dla collectd
246 Requires: %{name} = %{version}-%{release}
249 The exec plugin forks of an executable either to receive values or to
250 dispatch notifications to the outside world.
253 Summary: filecount-plugin for collectd
254 Summary(pl_PL.UTF-8): Wtyczka filecount dla collectd
256 Requires: %{name} = %{version}-%{release}
258 %description filecount
259 The filecount-plugin does something very simple: Count the number of files
260 in a directory and all its subdirectories. This can be used for a variety of
261 statistics, for example the queue length of an MTA, the number of PHP
262 sessions of a web server or simply the number of files in your home
266 Summary: hddtemp-plugin for collectd
267 Summary(pl_PL.UTF-8): Wtyczka hddtemp dla collectd
269 Requires: %{name} = %{version}-%{release}
270 Suggests: hddtemp-hddtempd
273 Temperature of harddisks. The temperatures are provided via S.M.A.R.T. and
274 queried by the external hddtemp-daemon.
277 Summary: interface-plugin for collectd
278 Summary(pl_PL.UTF-8): Wtyczka interface dla collectd
280 Requires: %{name} = %{version}-%{release}
282 %description interface
283 The interface-plugin collects information about the traffic (octets), packets
284 and errors of interfaces.
287 Summary: iptables-plugin for collectd
288 Summary(pl_PL.UTF-8): Wtyczka iptables dla collectd
290 Requires: %{name} = %{version}-%{release}
292 %description iptables
293 With this plugin you can gather statistics from your ip_tables based
294 packetfilter (aka. firewall). It can collect the byte- and packet-counters
295 of selected rules and submit them to collectd. You can select rules that
296 should be collected wither by its position (e.g. "the fourth rule in the
297 INPUT queue in the filter table") or by its comment (using the COMMENT
298 match). This means that depending on your firewall layout you can collect
299 certain services (such as the amount of web-traffic), source or destination
300 hosts or networks, dropped packets and much more.
303 Summary: ipmi-plugin for collectd
304 Summary(pl_PL.UTF-8): Wtyczka ipmi dla collectd
306 Requires: %{name} = %{version}-%{release}
309 ipmi plugin for collectd.
311 %description ipmi -l pl.UTF-8
312 Wtyczka ipmi dla collectd.
315 Summary: IRQs-plugin for collectd
316 Summary(pl_PL.UTF-8): Wtyczka IRQs dla collectd
318 Requires: %{name} = %{version}-%{release}
321 IRQs plugin for collectd.
324 Summary: load-plugin for collectd
325 Summary(pl_PL.UTF-8): Wtyczka load dla collectd
327 Requires: %{name} = %{version}-%{release}
330 Collects the system load. These numbers give a rough overview over the
331 utilization of a machine, though their meaning is mostly overrated.
334 Summary: logfile-plugin for collectd
335 Summary(pl_PL.UTF-8): Wtyczka logfile dla collectd
337 Requires: %{name} = %{version}-%{release}
340 Logfile plugin for collectd.
342 %module_scripts mbmon
344 Summary: mbmon-plugin for collectd
345 Summary(pl_PL.UTF-8): Wtyczka mbmon dla collectd
347 Requires: %{name} = %{version}-%{release}
350 The mbmon plugin uses mbmon to retrieve temperature, voltage, etc.
353 Summary: memcached-plugin for collectd
354 Summary(pl_PL.UTF-8): Wtyczka memcached dla collectd
356 Requires: %{name} = %{version}-%{release}
358 %description memcached
359 The memcached plugin connects to a memcached daemon and collects the number
360 of connections and requests handled by the daemon, the CPU resources consumed,
361 number of items cached, number of threads, and bytes sent and received.
364 Summary: memory-plugin for collectd
365 Summary(pl_PL.UTF-8): Wtyczka memory dla collectd
367 Requires: %{name} = %{version}-%{release}
370 Collects physical memory utilization for collectd.
373 Summary: multimeter-plugin for collectd
374 Summary(pl_PL.UTF-8): Wtyczka multimeter dla collectd
376 Requires: %{name} = %{version}-%{release}
378 %description multimeter
379 Multimeter plugin for collectd.
382 Summary: mysql-plugin for collectd
383 Summary(pl_PL.UTF-8): Moduł mysql dla collectd.
385 Requires: %{name} = %{version}-%{release}
388 MySQL querying plugin. This plugins provides data of issued commands,
389 called handlers and database traffic.
391 %description mysql -l pl.UTF-8
392 Moduł odpytujący MySQL. Wtyczka udostępnia dane o wydawanych
393 poleceniach, wywoływanych procedurach obsługi i ruchu bazodanowym.
396 Summary: netlink-plugin for collectd
397 Summary(pl_PL.UTF-8): Wtyczka netlink dla collectd
399 Requires: %{name} = %{version}-%{release}
402 This plugin will open a netlink socket to the Linux kernel and use it to get
403 statistics for interfaces, qdiscs, classes, and, if you can make use of it,
404 filters. Since in most setups many of the statistics this plugin can collect
405 aren't of interest, you can select which information to gather using the
409 Summary: network-plugin for collectd
410 Summary(pl_PL.UTF-8): Wtyczka network dla collectd
412 Requires: %{name} = %{version}-%{release}
415 nginx plugin for collectd.
418 Summary: NFS-plugin for collectd
419 Summary(pl_PL.UTF-8): Wtyczka NFS dla collectd
421 Requires: %{name} = %{version}-%{release}
424 The nfs plugin counts the number of procedure calls of the different NFS
428 Summary: nginx-plugin for collectd
429 Summary(pl_PL.UTF-8): Wtyczka nginx dla collectd
431 Requires: %{name} = %{version}-%{release}
434 This plugin collects the number of connections and requests handled by the
435 nginx daemon, a HTTP and mail server/proxy. It queries the page provided by
436 the ngx_http_stub_status_module module, which isn't compiled by default.
438 %package notify_desktop
439 Summary: notify_desktop for collectd
440 Summary(pl_PL.UTF-8): Wtyczka notify_desktop dla collectd
442 Requires: %{name} = %{version}-%{release}
444 %description notify_desktop
445 This plugin sends a desktop notification to a notification daemon, as
446 defined in the Desktop Notification Specification. To actually display the
447 notifications, notification-daemon is required and collectd has to be able
448 to access the X server.
450 %package notify_email
451 Summary: notify_email-plugin for collectd
452 Summary(pl_PL.UTF-8): Wtyczka notify_email dla collectd
454 Requires: %{name} = %{version}-%{release}
456 %description notify_email
457 notify_email plugin for collectd.
460 Summary: ntpd-plugin for collectd
461 Summary(pl_PL.UTF-8): Wtyczka ntpd dla collectd
463 Requires: %{name} = %{version}-%{release}
466 NTPd plugin for collectd.
469 Summary: nut-plugin for collectd
470 Summary(pl_PL.UTF-8): Wtyczka nut dla collectd
472 Requires: %{name} = %{version}-%{release}
475 UPS statistics using the Network UPS Tools. These statistics include
476 basically everything NUT will give us, including voltages, currents, power,
477 frequencies, load, and temperatures.
480 Summary: ping-plugin for collectd
481 Summary(pl_PL.UTF-8): Wtyczka ping dla collectd
483 Requires: %{name} = %{version}-%{release}
486 The network latency is measured as a roundtrip time. An ICMP-echo-request
487 (aka. "ping")is sent to a host and the time needed for his echo-reply (aka.
488 "pong") to arrive is measured. If a reply is not received within one second
489 the plugin will no longer expect a reply and return. This may happen in
490 several circumstances, e. g. the packet is lost, the host is down, a router
491 has dismissed the packet, etc.
494 Summary: mysql-plugin for collectd
495 Summary(pl_PL.UTF-8): Moduł postgresql dla collectd.
497 Requires: %{name} = %{version}-%{release}
499 %description postgresql
500 The postgresql plugin queries statistics from PostgreSQL databases. It keeps
501 a persistent connection to all configured databases and tries to reconnect
502 if the connection has been interrupted.
505 Summary: powerdns-plugin for collectd
506 Summary(pl_PL.UTF-8): Wtyczka powerdns dla collectd
508 Requires: %{name} = %{version}-%{release}
510 %description powerdns
511 The powerdns plugin queries statistics from an authoritative PowerDNS
512 nameserver and/or a PowerDNS recursor. Since both offer a wide variety of
513 values, many of which are probably meaningless to most users, but may be
517 Summary: processes-plugin for collectd
518 Summary(pl_PL.UTF-8): Wtyczka processes dla collectd
520 Requires: %{name} = %{version}-%{release}
522 %description processes
523 This plugin collects the number of processes, grouped by their state (e.g.
524 running, sleeping, zombies, etc.). In addition to that, it can select
525 detailed statistics about selected processes, grouped by name.
528 Summary: rrdtool-plugin for collectd
529 Summary(pl_PL.UTF-8): Wtyczka rrdtool dla collectd
531 Requires: %{name} = %{version}-%{release}
535 RRDTOOL plugin for collectd.
538 Summary: sensors-plugin for collectd
539 Summary(pl_PL.UTF-8): Wtyczka sensors dla collectd
541 Requires: %{name} = %{version}-%{release}
544 This plugin uses lm-sensors to read hardware sensors. You will need to
545 configure lm-sensors before this plugin will collect any usefull and correct
548 %module_scripts serial
550 Summary: serial-plugin for collectd
551 Summary(pl_PL.UTF-8): Wtyczka serial dla collectd
553 Requires: %{name} = %{version}-%{release}
556 Serial plugin for collectd.
559 Summary: snmp-plugin for collectd
560 Summary(pl_PL.UTF-8): Wtyczka snmp dla collectd
562 Requires: %{name} = %{version}-%{release}
565 The snmp plugin queries other hosts using SNMP, the Simple Network
566 Management Protocol, and translates the value it receives to collectd's
567 internal format and dispatches them. Depending on the write plugins you have
568 loaded they may be written to disk or submitted to another instance or
569 whatever you configured.
572 Summary: swap-plugin for collectd
573 Summary(pl_PL.UTF-8): Wtyczka swap dla collectd
575 Requires: %{name} = %{version}-%{release}
578 Swap space plugin for collectd.
581 Summary: syslog-plugin for collectd
582 Summary(pl_PL.UTF-8): Wtyczka syslog dla collectd
584 Requires: %{name} = %{version}-%{release}
587 Syslog plugin for collectd.
590 Summary: tail-plugin for collectd
591 Summary(pl_PL.UTF-8): Wtyczka tail dla collectd
593 Requires: %{name} = %{version}-%{release}
596 The tail-plugin can be used to "tail" logfiles, i.e. follow them as tail -F
597 does. Each line is given to one or more "matches" which test if the line is
598 relevant for any statistics using a regular expression.
601 Summary: tcpconns-plugin for collectd
602 Summary(pl_PL.UTF-8): Wtyczka tcpconns dla collectd
604 Requires: %{name} = %{version}-%{release}
606 %description tcpconns
607 The tcpconns-plugin counts the number of TCP connections to or from a
608 specified port. Typically the connectioins where you specify the local port
609 are incoming connections while the connections where you specify the remote
610 port are outgoing connections.
613 Summary: teamspeak2-plugin for collectd
614 Summary(pl_PL.UTF-8): Wtyczka teamspeak2 dla collectd
616 Requires: %{name} = %{version}-%{release}
618 %description teamspeak2
619 The teamspeak2 plugin connects to the query port of a teamspeak2 server and
620 polls interesting global and virtual server data. The plugin can query only
621 one physical server but unlimited virtual servers.
624 Summary: thermal-plugin for collectd
625 Summary(pl_PL.UTF-8): Wtyczka thermal dla collectd
627 Requires: %{name} = %{version}-%{release}
630 Thermal plugin for collectd.
633 Summary: unixsock-plugin for collectd
634 Summary(pl_PL.UTF-8): Wtyczka unixsock dla collectd
636 Requires: %{name} = %{version}-%{release}
638 %description unixsock
639 The unixsock plugin opens an UNIX-socket over which one can interact with
640 the daemon. This can be used to use the values collected by collectd in
641 other applications, such as monitoring, or submit externally collected
645 Summary: users-plugin for collectd
646 Summary(pl_PL.UTF-8): Wtyczka users dla collectd
648 Requires: %{name} = %{version}-%{release}
651 Number of users currently logged in.
654 Summary: uuid-plugin for collectd
655 Summary(pl_PL.UTF-8): Wtyczka uuid dla collectd
657 Requires: %{name} = %{version}-%{release}
660 This plugin, if loaded, causes the Hostname to be taken from the machine's
661 UUID. The UUID is a universally unique designation for the machine, usually
662 taken from the machine's BIOS. This is most useful if the machine is
663 running in a virtual environment such as Xen, in which case the UUID is
664 preserved across shutdowns and migration.
667 Summary: vmem-plugin for collectd
668 Summary(pl_PL.UTF-8): Wtyczka vmem dla collectd
670 Requires: %{name} = %{version}-%{release}
673 The vmem plugin collects information about the usage of virtual memory.
674 Since the statistics provided by the Linux kernel are very detailed, they
675 are collected very detailed.
678 Summary: vserver-plugin for collectd
679 Summary(pl_PL.UTF-8): Wtyczka vserver dla collectd
681 Requires: %{name} = %{version}-%{release}
684 Collects information about the virtual servers running on a system, using
688 Summary: wireless-plugin for collectd
689 Summary(pl_PL.UTF-8): Wtyczka wireless dla collectd
691 Requires: %{name} = %{version}-%{release}
693 %description wireless
694 Wireless plugin for collectd.
697 Summary: xmms-plugin for collectd
698 Summary(pl_PL.UTF-8): Wtyczka xmms dla collectd
700 Requires: %{name} = %{version}-%{release}
703 This plugin collectd data provided by XMMS.
717 --with-libstatgrab=/usr \
718 --with-lm-sensors=/usr \
719 --with-libmysql=/usr \
720 --%{?with_ipmi:en}%{!?with_ipmi:dis}able-ipmi \
721 --%{?with_multimeter:en}%{!?with_multimeter:dis}able-multimeter \
722 --%{?with_dns:en}%{!?with_dns:dis}able-dns \
723 --%{?with_iptables:en}%{!?with_iptables:dis}able-iptables \
724 --%{?with_netlink:en}%{!?with_netlink:dis}able-netlink \
730 %{__make} LDFLAGS="%{rpmldflags} -lstatgrab" \
731 BUILD_WITH_OPENIPMI_CFLAGS="-I/usr/include" \
732 BUILD_WITH_OPENIPMI_LIBS="-L/usr/lib64 -lOpenIPMIutils -lOpenIPMIpthread"
735 rm -rf $RPM_BUILD_ROOT
736 install -d $RPM_BUILD_ROOT{%{_var}/{log/,lib/%{name}},/etc/{rc.d/init.d/,collectd.d}} \
737 $RPM_BUILD_ROOT{%{_appdir}/cgi-bin,%{_webappdir},%{_pkglibdir}}
740 DESTDIR=$RPM_BUILD_ROOT
742 touch $RPM_BUILD_ROOT%{_var}/log/collectd.log
743 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
746 install contrib/collection.conf $RPM_BUILD_ROOT%{_webappdir}
747 install contrib/collection.cgi $RPM_BUILD_ROOT%{_appdir}/cgi-bin
748 install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
749 install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf
750 install %{SOURCE4} $RPM_BUILD_ROOT%{_webappdir}/lighttpd.conf
752 ### Configs instalation ###
753 for i in `egrep "^LoadPlugin" src/collectd.conf |awk '{print $NF}' ` ; do
754 egrep "LoadPlugin $i$" src/collectd.conf > $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/$i.conf
755 grep -v LoadPlugin src/collectd.conf |%{__sed} -e '/./{H;$!d;}' -e "x;/ $i>/!d;" >> $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/$i.conf
758 # Example config in sources: src/collectd.conf
759 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
761 # Overwrite only files which we want to change:
762 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/df.conf
763 install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/rrdtool.conf
766 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
769 rm -rf $RPM_BUILD_ROOT
772 /sbin/chkconfig --add %{name}
773 %service %{name} restart
776 if [ "$1" = "0" ]; then
777 %service -q %{name} stop
778 /sbin/chkconfig --del %{name}
781 %define module_scripts() \
783 %service %{name} restart \
786 %service %{name} restart
788 %module_scripts apache
789 %module_scripts apcups
790 %module_scripts ascent
791 %module_scripts battery
792 %module_scripts cpufreq
797 %{?with_dns:%module_scripts dns}
798 %module_scripts email
799 %module_scripts entropy
801 %module_scripts filecount
802 %module_scripts hddtemp
803 %module_scripts interface
804 %{?with_ipmi:%module_scripts ipmi}
805 %{?with_iptables:%module_scripts iptables}
808 %module_scripts logfile
809 %module_scripts mbmon
810 %module_scripts memcached
811 %module_scripts memory
812 %{?with_multimeter:%module_scripts multimeter}
813 %module_scripts mysql
814 %{?with_netlink:%module_scripts netlink}
815 %module_scripts network
817 %module_scripts nginx
818 %module_scripts notify_desktop
819 %module_scripts notify_email
823 %module_scripts postgresql
824 %module_scripts powerdns
825 %module_scripts processes
826 %module_scripts rrdtool
827 %module_scripts sensors
828 %module_scripts serial
831 %module_scripts syslog
833 %module_scripts tcpconns
834 %module_scripts teamspeak2
835 %module_scripts thermal
836 %module_scripts unixsock
837 %module_scripts users
840 %module_scripts vserver
841 %module_scripts wireless
844 %triggerin collection -- apache1 < 1.3.37-3, apache1-base
845 %webapp_register apache %{_webapp}
847 %triggerun collection -- apache1 < 1.3.37-3, apache1-base
848 %webapp_unregister apache %{_webapp}
850 %triggerin collection -- apache < 2.2.0, apache-base
851 %webapp_register httpd %{_webapp}
853 %triggerun collection -- apache < 2.2.0, apache-base
854 %webapp_unregister httpd %{_webapp}
856 %triggerin collection -- lighttpd
857 %webapp_register lighttpd %{_webapp}
859 %triggerun collection -- lighttpd
860 %webapp_unregister lighttpd %{_webapp}
863 %defattr(644,root,root,755)
864 %doc AUTHORS ChangeLog README TODO contrib
865 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
866 %dir %{_sysconfdir}/%{name}.d
867 %attr(755,root,root) %{_sbindir}/collectd
868 %attr(755,root,root) %{_sbindir}/collectdmon
869 %attr(755,root,root) %{_bindir}/collectd-nagios
870 %dir %{_libdir}/%{name}
871 %{_libdir}/%{name}/types.db
872 %attr(754,root,root) /etc/rc.d/init.d/%{name}
873 %{_mandir}/man1/collectd.1*
874 %{_mandir}/man1/collectd-nagios.1*
875 %{_mandir}/man5/collectd.conf.5*
876 %{_mandir}/man5/collectd-perl.5*
877 %{_mandir}/man1/collectdmon.1*
878 %{_mandir}/man5/types.db.5*
879 %dir %{_var}/lib/%{name}
882 %defattr(644,root,root,755)
884 %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/collection.conf
885 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/apache.conf
886 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/httpd.conf
887 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/lighttpd.conf
889 %dir %{_appdir}/cgi-bin
890 %attr(755,root,root) %{_appdir}/cgi-bin/collection.cgi
894 %defattr(644,root,root,755)
895 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/apcups.conf
896 %attr(755,root,root) %{_libdir}/%{name}/apcups.so
899 %defattr(644,root,root,755)
900 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ascent.conf
901 %attr(755,root,root) %{_libdir}/%{name}/ascent.so
904 %defattr(644,root,root,755)
905 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/apache.conf
906 %attr(755,root,root) %{_libdir}/%{name}/apache.so
909 %defattr(644,root,root,755)
910 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/battery.conf
911 %attr(755,root,root) %{_libdir}/%{name}/battery.so
914 %defattr(644,root,root,755)
915 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/cpu.conf
916 %attr(755,root,root) %{_libdir}/%{name}/cpu.so
919 %defattr(644,root,root,755)
920 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/cpufreq.conf
921 %attr(755,root,root) %{_libdir}/%{name}/cpufreq.so
924 %defattr(644,root,root,755)
925 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/csv.conf
926 %attr(755,root,root) %{_libdir}/%{name}/csv.so
929 %defattr(644,root,root,755)
930 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/df.conf
931 %attr(755,root,root) %{_libdir}/%{name}/df.so
934 %defattr(644,root,root,755)
935 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/disk.conf
936 %attr(755,root,root) %{_libdir}/%{name}/disk.so
939 %defattr(644,root,root,755)
940 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/dns.conf
941 %attr(755,root,root) %{_libdir}/%{name}/dns.so
944 %defattr(644,root,root,755)
945 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/email.conf
946 %attr(755,root,root) %{_libdir}/%{name}/email.so
947 %{_mandir}/man5/collectd-email.5*
950 %defattr(644,root,root,755)
951 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/entropy.conf
952 %attr(755,root,root) %{_libdir}/%{name}/entropy.so
955 %defattr(644,root,root,755)
956 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/exec.conf
957 %attr(755,root,root) %{_libdir}/%{name}/exec.so
958 %{_mandir}/man5/collectd-exec.5*
961 %defattr(644,root,root,755)
962 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/filecount.conf
963 %attr(755,root,root) %{_libdir}/%{name}/filecount.so
966 %defattr(644,root,root,755)
967 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/hddtemp.conf
968 %attr(755,root,root) %{_libdir}/%{name}/hddtemp.so
971 %defattr(644,root,root,755)
972 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/interface.conf
973 %attr(755,root,root) %{_libdir}/%{name}/interface.so
977 %defattr(644,root,root,755)
978 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ipmi.conf
979 %attr(755,root,root) %{_libdir}/%{name}/ipmi.so
984 %defattr(644,root,root,755)
985 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/iptables.conf
986 %attr(755,root,root) %{_libdir}/%{name}/iptables.so
990 %defattr(644,root,root,755)
991 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/irq.conf
992 %attr(755,root,root) %{_libdir}/%{name}/irq.so
995 %defattr(644,root,root,755)
996 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/load.conf
997 %attr(755,root,root) %{_libdir}/%{name}/load.so
1000 %defattr(644,root,root,755)
1001 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/logfile.conf
1002 %attr(755,root,root) %{_libdir}/%{name}/logfile.so
1003 %{_var}/log/collectd.log
1006 %defattr(644,root,root,755)
1007 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/mbmon.conf
1008 %attr(755,root,root) %{_libdir}/%{name}/mbmon.so
1011 %defattr(644,root,root,755)
1012 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/memcached.conf
1013 %attr(755,root,root) %{_libdir}/%{name}/memcached.so
1016 %defattr(644,root,root,755)
1017 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/memory.conf
1018 %attr(755,root,root) %{_libdir}/%{name}/memory.so
1020 %if %{with multimeter}
1022 %defattr(644,root,root,755)
1023 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/multimeter.conf
1024 %attr(755,root,root) %{_libdir}/%{name}/multimeter.so
1028 %defattr(644,root,root,755)
1029 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/mysql.conf
1030 %attr(755,root,root) %{_libdir}/%{name}/mysql.so
1034 %defattr(644,root,root,755)
1035 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/netlink.conf
1036 %attr(755,root,root) %{_libdir}/%{name}/netlink.so
1040 %defattr(644,root,root,755)
1041 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/network.conf
1042 %attr(755,root,root) %{_libdir}/%{name}/network.so
1045 %defattr(644,root,root,755)
1046 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nfs.conf
1047 %attr(755,root,root) %{_libdir}/%{name}/nfs.so
1050 %defattr(644,root,root,755)
1051 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nginx.conf
1052 %attr(755,root,root) %{_libdir}/%{name}/nginx.so
1054 %files notify_desktop
1055 %defattr(644,root,root,755)
1056 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/notify_desktop.conf
1057 %attr(755,root,root) %{_libdir}/%{name}/notify_desktop.so
1060 %defattr(644,root,root,755)
1061 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/notify_email.conf
1062 %attr(755,root,root) %{_libdir}/%{name}/notify_email.so
1065 %defattr(644,root,root,755)
1066 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ntpd.conf
1067 %attr(755,root,root) %{_libdir}/%{name}/ntpd.so
1070 %defattr(644,root,root,755)
1071 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nut.conf
1072 %attr(755,root,root) %{_libdir}/%{name}/nut.so
1075 %defattr(644,root,root,755)
1076 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ping.conf
1077 %attr(755,root,root) %{_libdir}/%{name}/ping.so
1080 %defattr(644,root,root,755)
1081 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/postgresql.conf
1082 %attr(755,root,root) %{_libdir}/%{name}/postgresql.so
1085 %defattr(644,root,root,755)
1086 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/powerdns.conf
1087 %attr(755,root,root) %{_libdir}/%{name}/powerdns.so
1090 %defattr(644,root,root,755)
1091 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/processes.conf
1092 %attr(755,root,root) %{_libdir}/%{name}/processes.so
1095 %defattr(644,root,root,755)
1096 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/rrdtool.conf
1097 %attr(755,root,root) %{_libdir}/%{name}/rrdtool.so
1100 %defattr(644,root,root,755)
1101 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/sensors.conf
1102 %attr(755,root,root) %{_libdir}/%{name}/sensors.so
1105 %defattr(644,root,root,755)
1106 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/serial.conf
1107 %attr(755,root,root) %{_libdir}/%{name}/serial.so
1110 %defattr(644,root,root,755)
1111 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/snmp.conf
1112 %attr(755,root,root) %{_libdir}/%{name}/snmp.so
1113 %{_mandir}/man5/collectd-snmp.5*
1116 %defattr(644,root,root,755)
1117 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/swap.conf
1118 %attr(755,root,root) %{_libdir}/%{name}/swap.so
1121 %defattr(644,root,root,755)
1122 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/syslog.conf
1123 %attr(755,root,root) %{_libdir}/%{name}/syslog.so
1126 %defattr(644,root,root,755)
1127 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/tail.conf
1128 %attr(755,root,root) %{_libdir}/%{name}/tail.so
1131 %defattr(644,root,root,755)
1132 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/tcpconns.conf
1133 %attr(755,root,root) %{_libdir}/%{name}/tcpconns.so
1136 %defattr(644,root,root,755)
1137 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/teamspeak2.conf
1138 %attr(755,root,root) %{_libdir}/%{name}/teamspeak2.so
1141 %defattr(644,root,root,755)
1142 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/thermal.conf
1143 %attr(755,root,root) %{_libdir}/%{name}/thermal.so
1146 %defattr(644,root,root,755)
1147 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/unixsock.conf
1148 %attr(755,root,root) %{_libdir}/%{name}/unixsock.so
1149 %{_mandir}/man5/collectd-unixsock.5*
1152 %defattr(644,root,root,755)
1153 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/users.conf
1154 %attr(755,root,root) %{_libdir}/%{name}/users.so
1157 %defattr(644,root,root,755)
1158 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/uuid.conf
1159 %attr(755,root,root) %{_libdir}/%{name}/uuid.so
1162 %defattr(644,root,root,755)
1163 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/vmem.conf
1164 %attr(755,root,root) %{_libdir}/%{name}/vmem.so
1167 %defattr(644,root,root,755)
1168 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/vserver.conf
1169 %attr(755,root,root) %{_libdir}/%{name}/vserver.so
1172 %defattr(644,root,root,755)
1173 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/wireless.conf
1174 %attr(755,root,root) %{_libdir}/%{name}/wireless.so
1177 %defattr(644,root,root,755)
1178 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/xmms.conf
1179 %attr(755,root,root) %{_libdir}/%{name}/xmms.so