2 # - lm_sensors subpackage
3 # - initscripts for local/client/server mode (subpackage ?)
4 # - package contrib scripts as %doc
5 # - put every plugin into subpackages
6 # - Current plugins status:
7 # apache . . . . . . yes
8 # apcups . . . . . . yes
9 # apple_sensors . . . no
10 # ascent . . . . . . yes
11 # battery . . . . . . yes
12 # cpu . . . . . . . . yes
13 # cpufreq . . . . . . yes
14 # csv . . . . . . . . yes
15 # df . . . . . . . . yes
16 # disk . . . . . . . yes
17 # dns . . . . . . . . yes
18 # email . . . . . . . yes
19 # entropy . . . . . . yes
20 # exec . . . . . . . yes
21 # hddtemp . . . . . . yes
22 # interface . . . . . yes
23 # iptables . . . . . yes
24 # ipmi . . . . . . . no
25 # ipvs . . . . . . . no (ip_vs.h not found)
26 # irq . . . . . . . . yes
27 # libvirt . . . . . . no
28 # load . . . . . . . yes
29 # logfile . . . . . . yes
30 # mbmon . . . . . . . yes
31 # memcached . . . . . yes
32 # memory . . . . . . yes
33 # multimeter . . . . yes
34 # mysql . . . . . . . yes
35 # netlink . . . . . . yes
36 # network . . . . . . yes
37 # nfs . . . . . . . . yes
38 # nginx . . . . . . . yes
39 # ntpd . . . . . . . yes
40 # nut . . . . . . . . no
41 # perl . . . . . . . no (needs libperl)
42 # ping . . . . . . . yes
43 # powerdns . . . . . yes
44 # processes . . . . . yes
45 # rrdtool . . . . . . yes
46 # sensors . . . . . . yes
47 # serial . . . . . . yes
48 # snmp . . . . . . . yes
49 # swap . . . . . . . yes
50 # syslog . . . . . . yes
51 # tail . . . . . . . yes
52 # tape . . . . . . . no
53 # tcpconns . . . . . yes
54 # teamspeak2 . . . . yes
55 # unixsock . . . . . yes
56 # users . . . . . . . yes
57 # uuid . . . . . . . yes
58 # vmem . . . . . . . yes
59 # vserver . . . . . . yes
60 # wireless . . . . . yes
61 # xmms . . . . . . . yes
63 Summary: Collects system information in RRD files
64 Summary(pl.UTF-8): Zbieranie informacji o systemie w plikach RRD
70 Source0: http://collectd.org/files/%{name}-%{version}.tar.gz
71 # Source0-md5: a677ddcad97fdb3cdd09efac4842b11d
74 URL: http://collectd.org/
75 BuildRequires: OpenIPMI-devel
76 BuildRequires: autoconf
77 BuildRequires: automake
78 BuildRequires: curl-devel
79 BuildRequires: iptables-devel
80 BuildRequires: libnetlink-devel
81 BuildRequires: liboping-devel
82 BuildRequires: libpcap-devel
83 BuildRequires: libstatgrab-devel >= 0.12
84 BuildRequires: libtool
85 BuildRequires: lm_sensors-devel
86 BuildRequires: mysql-devel
87 BuildRequires: perl-devel
88 BuildRequires: rpmbuild(macros) >= 1.268
89 BuildRequires: rrdtool-devel
90 BuildRequires: xmms-devel
91 Requires(post,preun): /sbin/chkconfig
93 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
95 %define _pkglibdir /var/lib/%{name}
96 %define _webapps /etc/webapps
97 %define _webapp %{name}
98 %define _webappdir %{_webapps}/%{_webapp}
99 %define _appdir %{_datadir}/%{_webapp}
102 collectd is a small daemon which collects system information every 10
103 seconds and writes the results in an RRD-file.
105 In contrast to most similar software, collectd is not a script but
106 written in plain C for performance and portability. As a daemon it
107 stays in memory, so there is no need to start up a heavy interpreter
108 every time new values should be logged. This allows collectd to have a
109 10 second resolution while being nice to the system.
111 %description -l pl.UTF-8
112 collectd to mały demon zbierający co 10 sekund informacje o systemie i
113 zapisujący wyniki do pliku RRD.
115 W odróżnieniu od innych podobnych programów collectd nie jest
116 skryptem, lecz jest napisany w czystym C z myślą o wydajności i
117 przenośności. Jako demon pozostaje w pamięci, więc nie ma potrzeby
118 urychamiania ciężkiego interpretera za każdym razem, kiedy powinny być
119 zapisane nowe wartości. Dzięki temu collect może mieć rozdzielczość 10
120 sekund i nie obciążać zbytnio systemu.
123 Summary: ascent-plugin for collectd
124 Summary(pl_PL.UTF-8): Wtyczka ascent dla collectd
126 Requires: %{name} = %{version}-%{release}
129 ascent plugin for collectd.
132 Summary: apache-plugin for collectd
133 Summary(pl_PL.UTF-8): Wtyczka apache dla collectd
135 Requires: %{name} = %{version}-%{release}
138 This plugin collectd data provided by Apache's `mod_status'.
140 %description apache -l pl.UTF-8
141 Wtyczka collectd zbierająca informacje udostępniane przez moduł
145 Summary: Web script for collectiond
146 Summary(pl_PL.UTF-8): Web script for collectiond
147 Group: Applications/WWW
148 Requires: %{name} = %{version}-%{release}
150 %description collection
151 Web script for collectiond
154 Summary: dns-plugin for collectd
155 Summary(pl_PL.UTF-8): Wtyczka dns dla collectd
157 Requires: %{name} = %{version}-%{release}
158 Requires: perl-rrdtool
161 dns plugin for collectd.
164 Summary: hddtemp-plugin for collectd
165 Summary(pl_PL.UTF-8): Wtyczka hddtemp dla collectd
167 Requires: %{name} = %{version}-%{release}
170 hddtemp plugin for collectd.
173 Summary: mysql-plugin for collectd
174 Summary(pl_PL.UTF-8): Moduł mysql dla collectd.
176 Requires: %{name} = %{version}-%{release}
179 MySQL querying plugin. This plugins provides data of issued commands,
180 called handlers and database traffic.
182 %description mysql -l pl.UTF-8
183 Moduł odpytujący MySQL. Wtyczka udostępnia dane o wydawanych
184 poleceniach, wywoływanych procedurach obsługi i ruchu bazodanowym.
187 Summary: nginx-plugin for collectd
188 Summary(pl_PL.UTF-8): Wtyczka nginx dla collectd
190 Requires: %{name} = %{version}-%{release}
193 nginx plugin for collectd.
196 Summary: ping-plugin for collectd
197 Summary(pl_PL.UTF-8): Wtyczka ping dla collectd
199 Requires: %{name} = %{version}-%{release}
202 ping plugin for collectd.
205 Summary: rrdtool-plugin for collectd
206 Summary(pl_PL.UTF-8): Wtyczka rrdtool dla collectd
208 Requires: %{name} = %{version}-%{release}
212 RRDTOOL plugin for collectd.
215 Summary: sensors-plugin for collectd
216 Summary(pl_PL.UTF-8): Wtyczka sensors dla collectd
218 Requires: %{name} = %{version}-%{release}
221 This plugin collectd data provided by hardware sensors.
224 Summary: snmp-plugin for collectd
225 Summary(pl_PL.UTF-8): Wtyczka snmp dla collectd
227 Requires: %{name} = %{version}-%{release}
230 snmp plugin for collectd.
233 Summary: uuid-plugin for collectd
234 Summary(pl_PL.UTF-8): Wtyczka uuid dla collectd
236 Requires: %{name} = %{version}-%{release}
239 This plugin collectd UUID data.
242 Summary: xmms-plugin for collectd
243 Summary(pl_PL.UTF-8): Wtyczka xmms dla collectd
245 Requires: %{name} = %{version}-%{release}
249 This plugin collectd data provided by XMMS.
254 cat >> collection.conf <<'EOF'
255 datadir: "/var/lib/collectd/"
256 libdir: "/usr/lib/collectd/"
266 --with-libstatgrab=/usr \
267 --with-lm-sensors=/usr \
269 %{__make} LDFLAGS="%{rpmldflags} -lstatgrab"
272 rm -rf $RPM_BUILD_ROOT
275 DESTDIR=$RPM_BUILD_ROOT
277 install -d $RPM_BUILD_ROOT%{_var}/{log/,lib/%{name}}
278 install -d $RPM_BUILD_ROOT/home/services/httpd/cgi-bin
279 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d/
280 #install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
281 touch $RPM_BUILD_ROOT%{_var}/log/collectd.log
282 install src/collectd.conf $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
283 install contrib/collection.conf $RPM_BUILD_ROOT%{_sysconfdir}
284 install contrib/collection.cgi $RPM_BUILD_ROOT/home/services/httpd/cgi-bin
285 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
286 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
289 rm -rf $RPM_BUILD_ROOT
292 /sbin/chkconfig --add %{name}
293 %service %{name} restart
296 if [ "$1" = "0" ]; then
297 %service -q %{name} stop
298 /sbin/chkconfig --del %{name}
302 %defattr(644,root,root,755)
303 %doc AUTHORS ChangeLog README TODO contrib
305 %attr(755,root,root) %{_sbindir}/collectd
306 %attr(755,root,root) %{_sbindir}/collectdmon
307 %attr(755,root,root) %{_bindir}/collectd-nagios
308 %dir %{_libdir}/%{name}
309 %attr(755,root,root) %{_libdir}/%{name}/apcups.so
310 #%attr(755,root,root) %{_libdir}/%{name}/apple_sensors.so
311 %attr(755,root,root) %{_libdir}/%{name}/battery.so
312 %attr(755,root,root) %{_libdir}/%{name}/cpufreq.so
313 %attr(755,root,root) %{_libdir}/%{name}/cpu.so
314 %attr(755,root,root) %{_libdir}/%{name}/csv.so
315 %attr(755,root,root) %{_libdir}/%{name}/df.so
316 %attr(755,root,root) %{_libdir}/%{name}/disk.so
317 %attr(755,root,root) %{_libdir}/%{name}/email.so
318 %attr(755,root,root) %{_libdir}/%{name}/entropy.so
319 %attr(755,root,root) %{_libdir}/%{name}/exec.so
320 %attr(755,root,root) %{_libdir}/%{name}/interface.so
321 %attr(755,root,root) %{_libdir}/%{name}/iptables.so
322 %attr(755,root,root) %{_libdir}/%{name}/irq.so
323 %attr(755,root,root) %{_libdir}/%{name}/load.so
324 %attr(755,root,root) %{_libdir}/%{name}/logfile.so
325 %attr(755,root,root) %{_libdir}/%{name}/mbmon.so
326 %attr(755,root,root) %{_libdir}/%{name}/memcached.so
327 %attr(755,root,root) %{_libdir}/%{name}/memory.so
328 %attr(755,root,root) %{_libdir}/%{name}/multimeter.so
329 %attr(755,root,root) %{_libdir}/%{name}/netlink.so
330 %attr(755,root,root) %{_libdir}/%{name}/network.so
331 %attr(755,root,root) %{_libdir}/%{name}/nfs.so
332 %attr(755,root,root) %{_libdir}/%{name}/ntpd.so
333 #%attr(755,root,root) %{_libdir}/%{name}/perl.so
334 %attr(755,root,root) %{_libdir}/%{name}/powerdns.so
335 %attr(755,root,root) %{_libdir}/%{name}/processes.so
336 %attr(755,root,root) %{_libdir}/%{name}/serial.so
337 %attr(755,root,root) %{_libdir}/%{name}/swap.so
338 %attr(755,root,root) %{_libdir}/%{name}/syslog.so
339 %attr(755,root,root) %{_libdir}/%{name}/tail.so
340 #%attr(755,root,root) %{_libdir}/%{name}/tape.so
341 %attr(755,root,root) %{_libdir}/%{name}/teamspeak2.so
342 %attr(755,root,root) %{_libdir}/%{name}/tcpconns.so
343 #%attr(755,root,root) %{_libdir}/%{name}/traffic.so
344 %attr(755,root,root) %{_libdir}/%{name}/unixsock.so
345 %attr(755,root,root) %{_libdir}/%{name}/users.so
346 %attr(755,root,root) %{_libdir}/%{name}/vmem.so
347 %attr(755,root,root) %{_libdir}/%{name}/vserver.so
348 %attr(755,root,root) %{_libdir}/%{name}/wireless.so
349 %{_libdir}/%{name}/types.db
351 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
353 %attr(754,root,root) /etc/rc.d/init.d/%{name}
355 %{_mandir}/man1/collectd.1*
356 %{_mandir}/man1/collectd-nagios.1*
357 %{_mandir}/man5/collectd.conf.5*
358 %{_mandir}/man5/collectd-email.5*
359 %{_mandir}/man5/collectd-exec.5*
360 %{_mandir}/man5/collectd-perl.5*
361 %{_mandir}/man5/collectd-snmp.5*
362 %{_mandir}/man5/collectd-unixsock.5*
363 %{_mandir}/man1/collectdmon.1*
364 %{_mandir}/man5/types.db.5*
365 %{_var}/log/collectd.log
366 %dir %{_var}/lib/%{name}
370 %defattr(644,root,root,755)
371 %attr(755,root,root) %{_libdir}/%{name}/ascent.so
374 %defattr(644,root,root,755)
375 %attr(755,root,root) %{_libdir}/%{name}/apache.so
378 %defattr(644,root,root,755)
379 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/collection.conf
380 %attr(755,root,root) /home/services/httpd/cgi-bin/collection.cgi
383 %defattr(644,root,root,755)
384 %attr(755,root,root) %{_libdir}/%{name}/dns.so
387 %defattr(644,root,root,755)
388 %attr(755,root,root) %{_libdir}/%{name}/hddtemp.so
391 %defattr(644,root,root,755)
392 %attr(755,root,root) %{_libdir}/%{name}/mysql.so
395 %defattr(644,root,root,755)
396 %attr(755,root,root) %{_libdir}/%{name}/nginx.so
399 %defattr(644,root,root,755)
400 %attr(755,root,root) %{_libdir}/%{name}/ping.so
403 %defattr(644,root,root,755)
404 %attr(755,root,root) %{_libdir}/%{name}/rrdtool.so
407 %defattr(644,root,root,755)
408 %attr(755,root,root) %{_libdir}/%{name}/sensors.so
411 %defattr(644,root,root,755)
412 %attr(755,root,root) %{_libdir}/%{name}/snmp.so
415 %defattr(644,root,root,755)
416 %attr(755,root,root) %{_libdir}/%{name}/uuid.so
419 %defattr(644,root,root,755)
420 %attr(755,root,root) %{_libdir}/%{name}/xmms.so