2 # - lm_sensors subpackage
3 # - initscripts for local/client/server mode (subpackage ?)
4 # - collection CGI script
5 # - package contrib scripts as %doc
6 # - put every plugin into subpackages
7 # - Current plugins status:
8 # apache . . . . . . yes
9 # apcups . . . . . . yes
10 # apple_sensors . . . no
11 # ascent . . . . . . yes
12 # battery . . . . . . yes
13 # cpu . . . . . . . . yes
14 # cpufreq . . . . . . yes
15 # csv . . . . . . . . yes
16 # df . . . . . . . . yes
17 # disk . . . . . . . yes
18 # dns . . . . . . . . yes
19 # email . . . . . . . yes
20 # entropy . . . . . . yes
21 # exec . . . . . . . yes
22 # hddtemp . . . . . . yes
23 # interface . . . . . yes
24 # iptables . . . . . yes
25 # ipmi . . . . . . . no
26 # ipvs . . . . . . . no (ip_vs.h not found)
27 # irq . . . . . . . . yes
28 # libvirt . . . . . . no
29 # load . . . . . . . yes
30 # logfile . . . . . . yes
31 # mbmon . . . . . . . yes
32 # memcached . . . . . yes
33 # memory . . . . . . yes
34 # multimeter . . . . yes
35 # mysql . . . . . . . yes
36 # netlink . . . . . . yes
37 # network . . . . . . yes
38 # nfs . . . . . . . . yes
39 # nginx . . . . . . . yes
40 # ntpd . . . . . . . yes
41 # nut . . . . . . . . no
42 # perl . . . . . . . no (needs libperl)
43 # ping . . . . . . . yes
44 # powerdns . . . . . yes
45 # processes . . . . . yes
46 # rrdtool . . . . . . yes
47 # sensors . . . . . . yes
48 # serial . . . . . . yes
49 # snmp . . . . . . . yes
50 # swap . . . . . . . yes
51 # syslog . . . . . . yes
52 # tail . . . . . . . yes
53 # tape . . . . . . . no
54 # tcpconns . . . . . yes
55 # teamspeak2 . . . . yes
56 # unixsock . . . . . yes
57 # users . . . . . . . yes
58 # uuid . . . . . . . yes
59 # vmem . . . . . . . yes
60 # vserver . . . . . . yes
61 # wireless . . . . . yes
62 # xmms . . . . . . . yes
64 Summary: Collects system information in RRD files
65 Summary(pl.UTF-8): Zbieranie informacji o systemie w plikach RRD
71 Source0: http://collectd.org/files/%{name}-%{version}.tar.gz
72 # 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 # External package needed (http://verplant.org/liboping/)
82 #BuildRequires: liboping-devel
83 BuildRequires: libpcap-devel
84 BuildRequires: libstatgrab-devel >= 0.12
85 BuildRequires: libtool
86 BuildRequires: mysql-devel
87 BuildRequires: perl-devel
88 BuildRequires: rpmbuild(macros) >= 1.228
89 BuildRequires: rrdtool-devel
90 BuildRequires: xmms-devel
91 Requires(post,preun): /sbin/chkconfig
92 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
95 collectd is a small daemon which collects system information every 10
96 seconds and writes the results in an RRD-file.
98 In contrast to most similar software, collectd is not a script but
99 written in plain C for performance and portability. As a daemon it
100 stays in memory, so there is no need to start up a heavy interpreter
101 every time new values should be logged. This allows collectd to have a
102 10 second resolution while being nice to the system.
104 %description -l pl.UTF-8
105 collectd to mały demon zbierający co 10 sekund informacje o systemie i
106 zapisujący wyniki do pliku RRD.
108 W odróżnieniu od innych podobnych programów collectd nie jest
109 skryptem, lecz jest napisany w czystym C z myślą o wydajności i
110 przenośności. Jako demon pozostaje w pamięci, więc nie ma potrzeby
111 urychamiania ciężkiego interpretera za każdym razem, kiedy powinny być
112 zapisane nowe wartości. Dzięki temu collect może mieć rozdzielczość 10
113 sekund i nie obciążać zbytnio systemu.
116 Summary: ascent-plugin for collectd
117 Summary(pl_PL.UTF-8): Wtyczka ascent dla collectd
119 Requires: %{name} = %{version}-%{release}
122 ascent plugin for collectd.
125 Summary: apache-plugin for collectd
126 Summary(pl_PL.UTF-8): Wtyczka apache dla collectd
128 Requires: %{name} = %{version}-%{release}
131 This plugin collectd data provided by Apache's `mod_status'.
133 %description apache -l pl.UTF-8
134 Wtyczka collectd zbierająca informacje udostępniane przez moduł
138 Summary: dns-plugin for collectd
139 Summary(pl_PL.UTF-8): Wtyczka dns dla collectd
141 Requires: %{name} = %{version}-%{release}
144 dns plugin for collectd.
147 Summary: hddtemp-plugin for collectd
148 Summary(pl_PL.UTF-8): Wtyczka hddtemp dla collectd
150 Requires: %{name} = %{version}-%{release}
153 hddtemp plugin for collectd.
156 Summary: mysql-plugin for collectd
157 Summary(pl_PL.UTF-8): Moduł mysql dla collectd.
159 Requires: %{name} = %{version}-%{release}
162 MySQL querying plugin. This plugins provides data of issued commands,
163 called handlers and database traffic.
165 %description mysql -l pl.UTF-8
166 Moduł odpytujący MySQL. Wtyczka udostępnia dane o wydawanych
167 poleceniach, wywoływanych procedurach obsługi i ruchu bazodanowym.
170 Summary: nginx-plugin for collectd
171 Summary(pl_PL.UTF-8): Wtyczka nginx dla collectd
173 Requires: %{name} = %{version}-%{release}
176 nginx plugin for collectd.
179 Summary: rrdtool-plugin for collectd
180 Summary(pl_PL.UTF-8): Wtyczka rrdtool dla collectd
182 Requires: %{name} = %{version}-%{release}
186 RRDTOOL plugin for collectd.
189 Summary: sensors-plugin for collectd
190 Summary(pl_PL.UTF-8): Wtyczka sensors dla collectd
192 Requires: %{name} = %{version}-%{release}
195 This plugin collectd data provided by hardware sensors.
198 Summary: snmp-plugin for collectd
199 Summary(pl_PL.UTF-8): Wtyczka snmp dla collectd
201 Requires: %{name} = %{version}-%{release}
204 snmp plugin for collectd.
207 Summary: uuid-plugin for collectd
208 Summary(pl_PL.UTF-8): Wtyczka uuid dla collectd
210 Requires: %{name} = %{version}-%{release}
213 This plugin collectd UUID data.
216 Summary: xmms-plugin for collectd
217 Summary(pl_PL.UTF-8): Wtyczka xmms dla collectd
219 Requires: %{name} = %{version}-%{release}
223 This plugin collectd data provided by XMMS.
235 --with-libstatgrab=/usr \
236 --with-lm-sensors=/usr \
238 %{__make} LDFLAGS="%{rpmldflags} -lstatgrab"
241 rm -rf $RPM_BUILD_ROOT
244 DESTDIR=$RPM_BUILD_ROOT
246 install -d $RPM_BUILD_ROOT%{_var}/{log/,lib/%{name}}
247 #install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
248 touch $RPM_BUILD_ROOT%{_var}/log/collectd.log
249 install src/collectd.conf $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf
251 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
254 rm -rf $RPM_BUILD_ROOT
257 /sbin/chkconfig --add %{name}
258 %service %{name} restart
261 if [ "$1" = "0" ]; then
262 %service -q %{name} stop
263 /sbin/chkconfig --del %{name}
267 %defattr(644,root,root,755)
268 %doc AUTHORS ChangeLog README TODO contrib
270 %attr(755,root,root) %{_sbindir}/collectd
271 %attr(755,root,root) %{_sbindir}/collectdmon
272 %attr(755,root,root) %{_bindir}/collectd-nagios
273 %dir %{_libdir}/%{name}
274 %attr(755,root,root) %{_libdir}/%{name}/apcups.so
275 #%attr(755,root,root) %{_libdir}/%{name}/apple_sensors.so
276 %attr(755,root,root) %{_libdir}/%{name}/battery.so
277 %attr(755,root,root) %{_libdir}/%{name}/cpufreq.so
278 %attr(755,root,root) %{_libdir}/%{name}/cpu.so
279 %attr(755,root,root) %{_libdir}/%{name}/csv.so
280 %attr(755,root,root) %{_libdir}/%{name}/df.so
281 %attr(755,root,root) %{_libdir}/%{name}/disk.so
282 %attr(755,root,root) %{_libdir}/%{name}/email.so
283 %attr(755,root,root) %{_libdir}/%{name}/entropy.so
284 %attr(755,root,root) %{_libdir}/%{name}/exec.so
285 %attr(755,root,root) %{_libdir}/%{name}/interface.so
286 %attr(755,root,root) %{_libdir}/%{name}/iptables.so
287 %attr(755,root,root) %{_libdir}/%{name}/irq.so
288 %attr(755,root,root) %{_libdir}/%{name}/load.so
289 %attr(755,root,root) %{_libdir}/%{name}/logfile.so
290 %attr(755,root,root) %{_libdir}/%{name}/mbmon.so
291 %attr(755,root,root) %{_libdir}/%{name}/memcached.so
292 %attr(755,root,root) %{_libdir}/%{name}/memory.so
293 %attr(755,root,root) %{_libdir}/%{name}/multimeter.so
294 %attr(755,root,root) %{_libdir}/%{name}/netlink.so
295 %attr(755,root,root) %{_libdir}/%{name}/network.so
296 %attr(755,root,root) %{_libdir}/%{name}/nfs.so
297 %attr(755,root,root) %{_libdir}/%{name}/ntpd.so
298 #%attr(755,root,root) %{_libdir}/%{name}/perl.so
299 %attr(755,root,root) %{_libdir}/%{name}/ping.so
300 %attr(755,root,root) %{_libdir}/%{name}/powerdns.so
301 %attr(755,root,root) %{_libdir}/%{name}/processes.so
302 %attr(755,root,root) %{_libdir}/%{name}/serial.so
303 %attr(755,root,root) %{_libdir}/%{name}/swap.so
304 %attr(755,root,root) %{_libdir}/%{name}/syslog.so
305 %attr(755,root,root) %{_libdir}/%{name}/tail.so
306 #%attr(755,root,root) %{_libdir}/%{name}/tape.so
307 %attr(755,root,root) %{_libdir}/%{name}/teamspeak2.so
308 %attr(755,root,root) %{_libdir}/%{name}/tcpconns.so
309 #%attr(755,root,root) %{_libdir}/%{name}/traffic.so
310 %attr(755,root,root) %{_libdir}/%{name}/unixsock.so
311 %attr(755,root,root) %{_libdir}/%{name}/users.so
312 %attr(755,root,root) %{_libdir}/%{name}/vmem.so
313 %attr(755,root,root) %{_libdir}/%{name}/vserver.so
314 %attr(755,root,root) %{_libdir}/%{name}/wireless.so
315 %{_libdir}/%{name}/types.db
317 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
319 #%attr(754,root,root) /etc/rc.d/init.d/%{name}
320 #%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
322 %{_mandir}/man1/collectd.1*
323 %{_mandir}/man1/collectd-nagios.1*
324 %{_mandir}/man5/collectd.conf.5*
325 %{_mandir}/man5/collectd-email.5*
326 %{_mandir}/man5/collectd-exec.5*
327 %{_mandir}/man5/collectd-perl.5*
328 %{_mandir}/man5/collectd-snmp.5*
329 %{_mandir}/man5/collectd-unixsock.5*
330 %{_mandir}/man1/collectdmon.1*
331 %{_mandir}/man5/types.db.5*
332 %{_var}/log/collectd.log
333 %dir %{_var}/lib/%{name}
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_libdir}/%{name}/ascent.so
341 %defattr(644,root,root,755)
342 %attr(755,root,root) %{_libdir}/%{name}/apache.so
345 %defattr(644,root,root,755)
346 %attr(755,root,root) %{_libdir}/%{name}/dns.so
349 %defattr(644,root,root,755)
350 %attr(755,root,root) %{_libdir}/%{name}/hddtemp.so
353 %defattr(644,root,root,755)
354 %attr(755,root,root) %{_libdir}/%{name}/mysql.so
357 %defattr(644,root,root,755)
358 %attr(755,root,root) %{_libdir}/%{name}/nginx.so
361 %defattr(644,root,root,755)
362 %attr(755,root,root) %{_libdir}/%{name}/rrdtool.so
365 %defattr(644,root,root,755)
366 %attr(755,root,root) %{_libdir}/%{name}/sensors.so
369 %defattr(644,root,root,755)
370 %attr(755,root,root) %{_libdir}/%{name}/snmp.so
373 %defattr(644,root,root,755)
374 %attr(755,root,root) %{_libdir}/%{name}/uuid.so
377 %defattr(644,root,root,755)
378 %attr(755,root,root) %{_libdir}/%{name}/xmms.so