]>
Commit | Line | Data |
---|---|---|
373d486f | 1 | # TODO: |
373d486f | 2 | # - lm_sensors subpackage |
762d0c28 | 3 | # - initscripts for local/client/server mode (subpackage ?) |
373d486f | 4 | # - package contrib scripts as %doc |
8bf13ddb PG |
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 | |
62 | ||
7df111b4 | 63 | Summary: Collects system information in RRD files |
322f1351 | 64 | Summary(pl.UTF-8): Zbieranie informacji o systemie w plikach RRD |
373d486f | 65 | Name: collectd |
e105712e | 66 | Version: 4.4.0 |
907cfb56 | 67 | Release: 0.3 |
373d486f | 68 | License: GPL v2 |
81857fc6 | 69 | Group: Daemons |
f6984413 | 70 | Source0: http://collectd.org/files/%{name}-%{version}.tar.gz |
e105712e | 71 | # Source0-md5: a677ddcad97fdb3cdd09efac4842b11d |
f6984413 | 72 | Source1: %{name}.conf |
ec8f9a12 | 73 | Source2: %{name}.init |
f6984413 | 74 | URL: http://collectd.org/ |
e105712e | 75 | BuildRequires: OpenIPMI-devel |
373d486f AF |
76 | BuildRequires: autoconf |
77 | BuildRequires: automake | |
762d0c28 | 78 | BuildRequires: curl-devel |
8bf13ddb | 79 | BuildRequires: iptables-devel |
e105712e | 80 | BuildRequires: libnetlink-devel |
907cfb56 | 81 | BuildRequires: liboping-devel |
762d0c28 | 82 | BuildRequires: libpcap-devel |
8bf13ddb | 83 | BuildRequires: libstatgrab-devel >= 0.12 |
373d486f | 84 | BuildRequires: libtool |
762d0c28 | 85 | BuildRequires: mysql-devel |
18e77dbc | 86 | BuildRequires: perl-devel |
c7024cdb | 87 | BuildRequires: rpmbuild(macros) >= 1.268 |
762d0c28 | 88 | BuildRequires: rrdtool-devel |
8bf13ddb | 89 | BuildRequires: xmms-devel |
7df111b4 | 90 | Requires(post,preun): /sbin/chkconfig |
c7024cdb | 91 | Requires: rc-scripts |
373d486f AF |
92 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
93 | ||
94 | %description | |
7df111b4 JB |
95 | collectd is a small daemon which collects system information every 10 |
96 | seconds and writes the results in an RRD-file. | |
97 | ||
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. | |
103 | ||
19cbcad3 | 104 | %description -l pl.UTF-8 |
c7024cdb ER |
105 | collectd to mały demon zbierający co 10 sekund informacje o systemie i |
106 | zapisujący wyniki do pliku RRD. | |
373d486f | 107 | |
19cbcad3 JR |
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 | |
c7024cdb ER |
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. | |
373d486f | 114 | |
8bf13ddb PG |
115 | %package ascent |
116 | Summary: ascent-plugin for collectd | |
117 | Summary(pl_PL.UTF-8): Wtyczka ascent dla collectd | |
118 | Group: Daemons | |
119 | Requires: %{name} = %{version}-%{release} | |
120 | ||
121 | %description ascent | |
122 | ascent plugin for collectd. | |
123 | ||
18e77dbc | 124 | %package apache |
273ffc81 JB |
125 | Summary: apache-plugin for collectd |
126 | Summary(pl_PL.UTF-8): Wtyczka apache dla collectd | |
18e77dbc | 127 | Group: Daemons |
273ffc81 | 128 | Requires: %{name} = %{version}-%{release} |
18e77dbc | 129 | |
130 | %description apache | |
131 | This plugin collectd data provided by Apache's `mod_status'. | |
132 | ||
133 | %description apache -l pl.UTF-8 | |
273ffc81 JB |
134 | Wtyczka collectd zbierająca informacje udostępniane przez moduł |
135 | 'mod_status' Apacha. | |
18e77dbc | 136 | |
5fafedfc | 137 | %package collection |
138 | Summary: Web script for collectiond | |
139 | Summary(pl_PL.UTF-8): Web script for collectiond | |
140 | Group: Applications/WWW | |
141 | Requires: %{name} = %{version}-%{release} | |
142 | ||
143 | %description collection | |
144 | Web script for collectiond | |
145 | ||
8bf13ddb PG |
146 | %package dns |
147 | Summary: dns-plugin for collectd | |
148 | Summary(pl_PL.UTF-8): Wtyczka dns dla collectd | |
149 | Group: Daemons | |
150 | Requires: %{name} = %{version}-%{release} | |
151 | ||
152 | %description dns | |
153 | dns plugin for collectd. | |
154 | ||
155 | %package hddtemp | |
156 | Summary: hddtemp-plugin for collectd | |
157 | Summary(pl_PL.UTF-8): Wtyczka hddtemp dla collectd | |
158 | Group: Daemons | |
159 | Requires: %{name} = %{version}-%{release} | |
160 | ||
161 | %description hddtemp | |
162 | hddtemp plugin for collectd. | |
163 | ||
18e77dbc | 164 | %package mysql |
273ffc81 JB |
165 | Summary: mysql-plugin for collectd |
166 | Summary(pl_PL.UTF-8): Moduł mysql dla collectd. | |
18e77dbc | 167 | Group: Daemons |
273ffc81 | 168 | Requires: %{name} = %{version}-%{release} |
18e77dbc | 169 | |
170 | %description mysql | |
273ffc81 | 171 | MySQL querying plugin. This plugins provides data of issued commands, |
18e77dbc | 172 | called handlers and database traffic. |
173 | ||
174 | %description mysql -l pl.UTF-8 | |
273ffc81 JB |
175 | Moduł odpytujący MySQL. Wtyczka udostępnia dane o wydawanych |
176 | poleceniach, wywoływanych procedurach obsługi i ruchu bazodanowym. | |
18e77dbc | 177 | |
8bf13ddb PG |
178 | %package nginx |
179 | Summary: nginx-plugin for collectd | |
180 | Summary(pl_PL.UTF-8): Wtyczka nginx dla collectd | |
181 | Group: Daemons | |
182 | Requires: %{name} = %{version}-%{release} | |
183 | ||
184 | %description nginx | |
185 | nginx plugin for collectd. | |
186 | ||
907cfb56 PG |
187 | %package ping |
188 | Summary: ping-plugin for collectd | |
189 | Summary(pl_PL.UTF-8): Wtyczka ping dla collectd | |
190 | Group: Daemons | |
191 | Requires: %{name} = %{version}-%{release} | |
192 | ||
193 | %description ping | |
194 | ping plugin for collectd. | |
195 | ||
8bf13ddb PG |
196 | %package rrdtool |
197 | Summary: rrdtool-plugin for collectd | |
198 | Summary(pl_PL.UTF-8): Wtyczka rrdtool dla collectd | |
199 | Group: Daemons | |
200 | Requires: %{name} = %{version}-%{release} | |
201 | Requires: rrdtool | |
202 | ||
203 | %description rrdtool | |
204 | RRDTOOL plugin for collectd. | |
205 | ||
206 | %package sensors | |
207 | Summary: sensors-plugin for collectd | |
208 | Summary(pl_PL.UTF-8): Wtyczka sensors dla collectd | |
209 | Group: Daemons | |
210 | Requires: %{name} = %{version}-%{release} | |
211 | ||
212 | %description sensors | |
213 | This plugin collectd data provided by hardware sensors. | |
214 | ||
215 | %package snmp | |
216 | Summary: snmp-plugin for collectd | |
217 | Summary(pl_PL.UTF-8): Wtyczka snmp dla collectd | |
218 | Group: Daemons | |
219 | Requires: %{name} = %{version}-%{release} | |
220 | ||
221 | %description snmp | |
222 | snmp plugin for collectd. | |
223 | ||
224 | %package uuid | |
225 | Summary: uuid-plugin for collectd | |
226 | Summary(pl_PL.UTF-8): Wtyczka uuid dla collectd | |
227 | Group: Daemons | |
228 | Requires: %{name} = %{version}-%{release} | |
229 | ||
230 | %description uuid | |
231 | This plugin collectd UUID data. | |
232 | ||
233 | %package xmms | |
234 | Summary: xmms-plugin for collectd | |
235 | Summary(pl_PL.UTF-8): Wtyczka xmms dla collectd | |
236 | Group: Daemons | |
237 | Requires: %{name} = %{version}-%{release} | |
238 | Requires: xmms-libs | |
239 | ||
240 | %description xmms | |
241 | This plugin collectd data provided by XMMS. | |
242 | ||
373d486f AF |
243 | %prep |
244 | %setup -q | |
245 | ||
246 | %build | |
247 | %{__libtoolize} | |
248 | %{__aclocal} | |
249 | %{__autoconf} | |
250 | %{__autoheader} | |
251 | %{__automake} | |
252 | %configure \ | |
253 | --with-libstatgrab=/usr \ | |
254 | --with-lm-sensors=/usr \ | |
5fafedfc | 255 | --with-libmysql=/usr |
e105712e | 256 | %{__make} LDFLAGS="%{rpmldflags} -lstatgrab" |
373d486f AF |
257 | |
258 | %install | |
259 | rm -rf $RPM_BUILD_ROOT | |
260 | ||
261 | %{__make} install \ | |
262 | DESTDIR=$RPM_BUILD_ROOT | |
81857fc6 | 263 | |
e105712e | 264 | install -d $RPM_BUILD_ROOT%{_var}/{log/,lib/%{name}} |
5fafedfc | 265 | install -d $RPM_BUILD_ROOT/home/services/httpd/cgi-bin |
ff0d0ea0 | 266 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d/ |
e105712e | 267 | #install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf |
268 | touch $RPM_BUILD_ROOT%{_var}/log/collectd.log | |
269 | install src/collectd.conf $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf | |
5fafedfc | 270 | install contrib/collection.conf $RPM_BUILD_ROOT%{_sysconfdir} |
271 | install contrib/collection.cgi $RPM_BUILD_ROOT/home/services/httpd/cgi-bin | |
f6984413 | 272 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la |
ff0d0ea0 | 273 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
373d486f AF |
274 | |
275 | %clean | |
276 | rm -rf $RPM_BUILD_ROOT | |
277 | ||
81857fc6 | 278 | %post |
373d486f AF |
279 | /sbin/chkconfig --add %{name} |
280 | %service %{name} restart | |
281 | ||
81857fc6 | 282 | %preun |
373d486f AF |
283 | if [ "$1" = "0" ]; then |
284 | %service -q %{name} stop | |
285 | /sbin/chkconfig --del %{name} | |
286 | fi | |
287 | ||
288 | %files | |
289 | %defattr(644,root,root,755) | |
e105712e | 290 | %doc AUTHORS ChangeLog README TODO contrib |
373d486f AF |
291 | |
292 | %attr(755,root,root) %{_sbindir}/collectd | |
e105712e | 293 | %attr(755,root,root) %{_sbindir}/collectdmon |
18e77dbc | 294 | %attr(755,root,root) %{_bindir}/collectd-nagios |
373d486f | 295 | %dir %{_libdir}/%{name} |
c1bbd93e | 296 | %attr(755,root,root) %{_libdir}/%{name}/apcups.so |
18e77dbc | 297 | #%attr(755,root,root) %{_libdir}/%{name}/apple_sensors.so |
373d486f | 298 | %attr(755,root,root) %{_libdir}/%{name}/battery.so |
373d486f | 299 | %attr(755,root,root) %{_libdir}/%{name}/cpufreq.so |
c1bbd93e | 300 | %attr(755,root,root) %{_libdir}/%{name}/cpu.so |
18e77dbc | 301 | %attr(755,root,root) %{_libdir}/%{name}/csv.so |
373d486f AF |
302 | %attr(755,root,root) %{_libdir}/%{name}/df.so |
303 | %attr(755,root,root) %{_libdir}/%{name}/disk.so | |
762d0c28 | 304 | %attr(755,root,root) %{_libdir}/%{name}/email.so |
18e77dbc | 305 | %attr(755,root,root) %{_libdir}/%{name}/entropy.so |
306 | %attr(755,root,root) %{_libdir}/%{name}/exec.so | |
18e77dbc | 307 | %attr(755,root,root) %{_libdir}/%{name}/interface.so |
e105712e | 308 | %attr(755,root,root) %{_libdir}/%{name}/iptables.so |
18e77dbc | 309 | %attr(755,root,root) %{_libdir}/%{name}/irq.so |
373d486f | 310 | %attr(755,root,root) %{_libdir}/%{name}/load.so |
18e77dbc | 311 | %attr(755,root,root) %{_libdir}/%{name}/logfile.so |
762d0c28 | 312 | %attr(755,root,root) %{_libdir}/%{name}/mbmon.so |
e6f53b24 | 313 | %attr(755,root,root) %{_libdir}/%{name}/memcached.so |
373d486f | 314 | %attr(755,root,root) %{_libdir}/%{name}/memory.so |
762d0c28 | 315 | %attr(755,root,root) %{_libdir}/%{name}/multimeter.so |
e105712e | 316 | %attr(755,root,root) %{_libdir}/%{name}/netlink.so |
18e77dbc | 317 | %attr(755,root,root) %{_libdir}/%{name}/network.so |
373d486f | 318 | %attr(755,root,root) %{_libdir}/%{name}/nfs.so |
c1bbd93e | 319 | %attr(755,root,root) %{_libdir}/%{name}/ntpd.so |
e6f53b24 | 320 | #%attr(755,root,root) %{_libdir}/%{name}/perl.so |
e105712e | 321 | %attr(755,root,root) %{_libdir}/%{name}/powerdns.so |
373d486f | 322 | %attr(755,root,root) %{_libdir}/%{name}/processes.so |
373d486f AF |
323 | %attr(755,root,root) %{_libdir}/%{name}/serial.so |
324 | %attr(755,root,root) %{_libdir}/%{name}/swap.so | |
e6f53b24 | 325 | %attr(755,root,root) %{_libdir}/%{name}/syslog.so |
e105712e | 326 | %attr(755,root,root) %{_libdir}/%{name}/tail.so |
18e77dbc | 327 | #%attr(755,root,root) %{_libdir}/%{name}/tape.so |
e105712e | 328 | %attr(755,root,root) %{_libdir}/%{name}/teamspeak2.so |
e6f53b24 | 329 | %attr(755,root,root) %{_libdir}/%{name}/tcpconns.so |
18e77dbc | 330 | #%attr(755,root,root) %{_libdir}/%{name}/traffic.so |
18e77dbc | 331 | %attr(755,root,root) %{_libdir}/%{name}/unixsock.so |
e6f53b24 | 332 | %attr(755,root,root) %{_libdir}/%{name}/users.so |
e105712e | 333 | %attr(755,root,root) %{_libdir}/%{name}/vmem.so |
c1bbd93e | 334 | %attr(755,root,root) %{_libdir}/%{name}/vserver.so |
f6984413 | 335 | %attr(755,root,root) %{_libdir}/%{name}/wireless.so |
e6f53b24 | 336 | %{_libdir}/%{name}/types.db |
373d486f AF |
337 | |
338 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf | |
339 | ||
ff0d0ea0 | 340 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
373d486f AF |
341 | |
342 | %{_mandir}/man1/collectd.1* | |
18e77dbc | 343 | %{_mandir}/man1/collectd-nagios.1* |
373d486f | 344 | %{_mandir}/man5/collectd.conf.5* |
18e77dbc | 345 | %{_mandir}/man5/collectd-email.5* |
346 | %{_mandir}/man5/collectd-exec.5* | |
347 | %{_mandir}/man5/collectd-perl.5* | |
348 | %{_mandir}/man5/collectd-snmp.5* | |
349 | %{_mandir}/man5/collectd-unixsock.5* | |
e105712e | 350 | %{_mandir}/man1/collectdmon.1* |
351 | %{_mandir}/man5/types.db.5* | |
352 | %{_var}/log/collectd.log | |
353 | %dir %{_var}/lib/%{name} | |
354 | ||
8bf13ddb PG |
355 | ########## PLUGINS: |
356 | %files ascent | |
357 | %defattr(644,root,root,755) | |
358 | %attr(755,root,root) %{_libdir}/%{name}/ascent.so | |
18e77dbc | 359 | |
360 | %files apache | |
361 | %defattr(644,root,root,755) | |
362 | %attr(755,root,root) %{_libdir}/%{name}/apache.so | |
363 | ||
5fafedfc | 364 | %files collection |
365 | %defattr(644,root,root,755) | |
366 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/collection.conf | |
367 | %attr(755,root,root) /home/services/httpd/cgi-bin/collection.cgi | |
368 | ||
8bf13ddb PG |
369 | %files dns |
370 | %defattr(644,root,root,755) | |
371 | %attr(755,root,root) %{_libdir}/%{name}/dns.so | |
372 | ||
373 | %files hddtemp | |
374 | %defattr(644,root,root,755) | |
375 | %attr(755,root,root) %{_libdir}/%{name}/hddtemp.so | |
376 | ||
18e77dbc | 377 | %files mysql |
378 | %defattr(644,root,root,755) | |
379 | %attr(755,root,root) %{_libdir}/%{name}/mysql.so | |
8bf13ddb PG |
380 | |
381 | %files nginx | |
382 | %defattr(644,root,root,755) | |
383 | %attr(755,root,root) %{_libdir}/%{name}/nginx.so | |
384 | ||
907cfb56 PG |
385 | %files ping |
386 | %defattr(644,root,root,755) | |
387 | %attr(755,root,root) %{_libdir}/%{name}/ping.so | |
388 | ||
8bf13ddb PG |
389 | %files rrdtool |
390 | %defattr(644,root,root,755) | |
391 | %attr(755,root,root) %{_libdir}/%{name}/rrdtool.so | |
392 | ||
393 | %files sensors | |
394 | %defattr(644,root,root,755) | |
395 | %attr(755,root,root) %{_libdir}/%{name}/sensors.so | |
396 | ||
397 | %files snmp | |
398 | %defattr(644,root,root,755) | |
399 | %attr(755,root,root) %{_libdir}/%{name}/snmp.so | |
400 | ||
401 | %files uuid | |
402 | %defattr(644,root,root,755) | |
403 | %attr(755,root,root) %{_libdir}/%{name}/uuid.so | |
404 | ||
405 | %files xmms | |
406 | %defattr(644,root,root,755) | |
407 | %attr(755,root,root) %{_libdir}/%{name}/xmms.so |