]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - package contrib scripts as %doc | |
3 | # - perl modules with Collectd classes package to separate package | |
4 | # - Disabled modules: | |
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 | |
14 | # | |
15 | # Conditional build: | |
16 | %bcond_without curl # apache, ascent, bind, curl and nginx plugins | |
17 | %bcond_without dns # DNS plugin | |
18 | %bcond_without ipmi # IPMI plugin | |
19 | %bcond_without iptables # iptables plugin | |
20 | %bcond_without libesmtp # notify_email plugin | |
21 | %bcond_with multimeter # multimeter plugin | |
22 | %bcond_without mysql # MySQL plugin | |
23 | %bcond_without netlink # netlink plugin | |
24 | %bcond_without notify # notify_desktop plugin | |
25 | %bcond_without ping # ping plugin | |
26 | %bcond_without psql # PostgreSQL plugin | |
27 | %bcond_without rrd # rrdtool and rrdcached plugins | |
28 | %bcond_without sensors # sensors plugin | |
29 | %bcond_without snmp # SNMP plugin | |
30 | %bcond_without ups # nut plugin | |
31 | %bcond_without xml # ascent, bind and libvirt plugins | |
32 | %bcond_without xmms # XMMS plugin | |
33 | # | |
34 | #http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=358637 | |
35 | %ifarch %{x8664} | |
36 | %undefine with_iptables | |
37 | %undefine with_netlink | |
38 | %endif | |
39 | Summary: Collects system information in RRD files | |
40 | Summary(pl.UTF-8): Zbieranie informacji o systemie w plikach RRD | |
41 | Name: collectd | |
42 | Version: 4.6.2 | |
43 | Release: 2 | |
44 | License: GPL v2 | |
45 | Group: Daemons | |
46 | Source0: http://collectd.org/files/%{name}-%{version}.tar.gz | |
47 | # Source0-md5: 9eee46a6330780d6e6b41155b159f4f9 | |
48 | Source1: %{name}.conf | |
49 | Source2: %{name}.init | |
50 | Source3: %{name}-http.conf | |
51 | Source4: %{name}-lighttpd.conf | |
52 | Source10: %{name}-df.conf | |
53 | Source11: %{name}-rrdtool.conf | |
54 | Patch0: %{name}-collection.patch | |
55 | URL: http://collectd.org/ | |
56 | %{?with_ipmi:BuildRequires: OpenIPMI-devel >= 2.0.14-3} | |
57 | BuildRequires: autoconf | |
58 | BuildRequires: automake | |
59 | %{?with_curl:BuildRequires: curl-devel} | |
60 | BuildRequires: gcc-c++ | |
61 | BuildRequires: hal-devel | |
62 | %{?with_iptables:BuildRequires: iptables-devel >= 1.4.1.1-4} | |
63 | BuildRequires: libdbi-devel | |
64 | %{?with_libesmtp:BuildRequires: libesmtp-devel} | |
65 | BuildRequires: libltdl-devel | |
66 | %{?with_netlink:BuildRequires: libnetlink-devel} | |
67 | %{?with_notify:BuildRequires: libnotify-devel} | |
68 | %{?with_ping:BuildRequires: liboping-devel} | |
69 | %{?with_dns:BuildRequires: libpcap-devel} | |
70 | BuildRequires: libstatgrab-devel >= 0.12 | |
71 | BuildRequires: libtool | |
72 | %{?with_xml:BuildRequires: libxml2-devel} | |
73 | %{?with_sensors:BuildRequires: lm_sensors-devel} | |
74 | %{?with_mysql:BuildRequires: mysql-devel} | |
75 | %{?with_ups:BuildRequires: nut-devel} | |
76 | BuildRequires: perl-devel | |
77 | %{?with_psql:BuildRequires: postgresql-devel} | |
78 | BuildRequires: rpmbuild(macros) >= 1.268 | |
79 | %{?with_rrd:BuildRequires: rrdtool-devel} | |
80 | %{?with_snmp:BuildRequires: net-snmp-devel} | |
81 | %{?with_xmms:BuildRequires: xmms-devel} | |
82 | Requires(post,preun): /sbin/chkconfig | |
83 | Requires: rc-scripts | |
84 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
85 | ||
86 | %define _pkglibdir %{_sharedstatedir}/%{name} | |
87 | %define _webapps /etc/webapps | |
88 | %define _webapp %{name} | |
89 | %define _webappdir %{_webapps}/%{_webapp} | |
90 | %define _appdir %{_datadir}/%{_webapp} | |
91 | ||
92 | %description | |
93 | collectd is a small daemon which collects system information every 10 | |
94 | seconds and writes the results in an RRD-file. | |
95 | ||
96 | In contrast to most similar software, collectd is not a script but | |
97 | written in plain C for performance and portability. As a daemon it | |
98 | stays in memory, so there is no need to start up a heavy interpreter | |
99 | every time new values should be logged. This allows collectd to have a | |
100 | 10 second resolution while being nice to the system. | |
101 | ||
102 | %description -l pl.UTF-8 | |
103 | collectd to mały demon zbierający co 10 sekund informacje o systemie i | |
104 | zapisujący wyniki do pliku RRD. | |
105 | ||
106 | W odróżnieniu od innych podobnych programów collectd nie jest | |
107 | skryptem, lecz jest napisany w czystym C z myślą o wydajności i | |
108 | przenośności. Jako demon pozostaje w pamięci, więc nie ma potrzeby | |
109 | urychamiania ciężkiego interpretera za każdym razem, kiedy powinny być | |
110 | zapisane nowe wartości. Dzięki temu collect może mieć rozdzielczość 10 | |
111 | sekund i nie obciążać zbytnio systemu. | |
112 | ||
113 | %package libs | |
114 | Summary: %{name} libraries | |
115 | Summary(pl.UTF-8): Biblioteki %{name} | |
116 | Group: Libraries | |
117 | ||
118 | %description libs | |
119 | %{name} libraries. | |
120 | ||
121 | %description libs -l pl.UTF-8 | |
122 | Biblioteki %{name}. | |
123 | ||
124 | %package devel | |
125 | Summary: Header files for %{name} libraries | |
126 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek %{name} | |
127 | Group: Development/Libraries | |
128 | Requires: %{name}-libs = %{version}-%{release} | |
129 | ||
130 | %description devel | |
131 | Header files for %{name} libraries. | |
132 | ||
133 | %description devel -l pl.UTF-8 | |
134 | Pliki nagłówkowe bibliotek %{name}. | |
135 | ||
136 | %package apache | |
137 | Summary: apache-plugin for collectd | |
138 | Summary(pl_PL.UTF-8): Wtyczka apache dla collectd | |
139 | Group: Daemons | |
140 | Requires: %{name} = %{version}-%{release} | |
141 | ||
142 | %description apache | |
143 | This plugin collectd data provided by Apache's `mod_status'. | |
144 | ||
145 | %description apache -l pl.UTF-8 | |
146 | Wtyczka collectd zbierająca informacje udostępniane przez moduł | |
147 | 'mod_status' Apacha. | |
148 | ||
149 | %package apcups | |
150 | Summary: APC UPS plugin for collectd | |
151 | Summary(pl_PL.UTF-8): Wtyczka APC UPS dla collectd | |
152 | Group: Daemons | |
153 | Requires: %{name} = %{version}-%{release} | |
154 | ||
155 | %description apcups | |
156 | APC UPS plugin for collectd. | |
157 | ||
158 | %package ascent | |
159 | Summary: ascent-plugin for collectd | |
160 | Summary(pl_PL.UTF-8): Wtyczka ascent dla collectd | |
161 | Group: Daemons | |
162 | Requires: %{name} = %{version}-%{release} | |
163 | ||
164 | %description ascent | |
165 | ascent plugin for collectd. | |
166 | ||
167 | %package battery | |
168 | Summary: battery plugin for collectd | |
169 | Summary(pl_PL.UTF-8): Wtyczka battery dla collectd | |
170 | Group: Daemons | |
171 | Requires: %{name} = %{version}-%{release} | |
172 | ||
173 | %description battery | |
174 | This plugin collects the battery's charge, the drawn current and the | |
175 | battery's voltage. | |
176 | ||
177 | %package bind | |
178 | Summary: bind plugin for collectd | |
179 | Summary(pl_PL.UTF-8): Wtyczka bind dla collectd | |
180 | Group: Daemons | |
181 | Requires: %{name} = %{version}-%{release} | |
182 | ||
183 | %description bind | |
184 | Starting with BIND 9.5.0, the most widely used DNS server software provides | |
185 | extensive statistics about queries, responses and lots of other information. | |
186 | The bind plugin retrieves this information that's encoded in XML and provided | |
187 | via HTTP and submits the values to collectd. | |
188 | ||
189 | %package collection | |
190 | Summary: Web script for collectd | |
191 | Summary(pl_PL.UTF-8): Web script for collectd | |
192 | Group: Applications/WWW | |
193 | Requires: %{name} = %{version}-%{release} | |
194 | Requires: perl(CGI) | |
195 | Requires: perl(Data::Dumper) | |
196 | Requires: perl(HTML::Entities) | |
197 | Requires: perl(RRDs) | |
198 | Requires: perl(URI::Escape) | |
199 | Requires: webserver(cgi) | |
200 | Suggests: fonts-TTF-DejaVu | |
201 | ||
202 | %description collection | |
203 | Web script for collectd. | |
204 | ||
205 | %package cpu | |
206 | Summary: cpu-plugin for collectd | |
207 | Summary(pl_PL.UTF-8): Wtyczka cpu dla collectd | |
208 | Group: Daemons | |
209 | Requires: %{name} = %{version}-%{release} | |
210 | ||
211 | %description cpu | |
212 | The cpu-plugin collects the amount of time spent by the CPU in various states, | |
213 | most notably executing user code, executing system code, waiting for IO | |
214 | operations and being idle. | |
215 | ||
216 | %package cpufreq | |
217 | Summary: cpufreq-plugin for collectd | |
218 | Summary(pl_PL.UTF-8): Wtyczka cpufreq dla collectd | |
219 | Group: Daemons | |
220 | Requires: %{name} = %{version}-%{release} | |
221 | ||
222 | %description cpufreq | |
223 | Collects the current CPU's frequency, mostly for mobile computers. | |
224 | ||
225 | %package csv | |
226 | Summary: CSV output plugin for collectd | |
227 | Summary(pl_PL.UTF-8): Wtyczka wyjściowa CSV dla collectd | |
228 | Group: Daemons | |
229 | Requires: %{name} = %{version}-%{release} | |
230 | ||
231 | %description csv | |
232 | CSV output plugin for collectd. | |
233 | ||
234 | %package curl | |
235 | Summary: cURL output plugin for collectd | |
236 | Summary(pl_PL.UTF-8): Wtyczka wyjściowa cURL dla collectd | |
237 | Group: Daemons | |
238 | Requires: %{name} = %{version}-%{release} | |
239 | ||
240 | %description curl | |
241 | The curl plugin uses the libcurl to read web pages and the match | |
242 | infrastructure (the same code used by the tail plugin) to use regular | |
243 | expressions with the received data. | |
244 | ||
245 | %package dbi | |
246 | Summary: dbi plugin for collectd | |
247 | Summary(pl_PL.UTF-8): Wtyczka dbi dla collectd | |
248 | Group: Daemons | |
249 | Requires: %{name} = %{version}-%{release} | |
250 | ||
251 | %description dbi | |
252 | This plugin uses the dbi library to connect to various databases, execute | |
253 | SQL statements and read back the results. dbi is an acronym for "database | |
254 | interface" in case you were wondering about the name. You can configure how | |
255 | each column is to be interpreted and the plugin will generate one or more | |
256 | data sets from each row returned according to these rules. | |
257 | ||
258 | %package df | |
259 | Summary: df-plugin for collectd | |
260 | Summary(pl_PL.UTF-8): Wtyczka df dla collectd | |
261 | Group: Daemons | |
262 | Requires: %{name} = %{version}-%{release} | |
263 | ||
264 | %description df | |
265 | The df-plugin collects file system usage information, i. e. basically how | |
266 | much space on a mounted partition is used and how much is available. It's | |
267 | named after and very similar to the df(1) UNIX command that's been around | |
268 | forever. | |
269 | ||
270 | %package disk | |
271 | Summary: disk-plugin for collectd | |
272 | Summary(pl_PL.UTF-8): Wtyczka disk dla collectd | |
273 | Group: Daemons | |
274 | Requires: %{name} = %{version}-%{release} | |
275 | ||
276 | %description disk | |
277 | This plugin collects performance statistics of harddisks and, where | |
278 | supported, partitions. | |
279 | ||
280 | %package dns | |
281 | Summary: dns-plugin for collectd | |
282 | Summary(pl_PL.UTF-8): Wtyczka dns dla collectd | |
283 | Group: Daemons | |
284 | Requires: %{name} = %{version}-%{release} | |
285 | Requires: perl-rrdtool | |
286 | ||
287 | %description dns | |
288 | This plugin has a similar functionality to dnstop: It uses libpcap to get | |
289 | a copy of all traffic from/to port UDP/53 (that's the DNS port), interprets | |
290 | the packets and collects statistics of your DNS traffic. | |
291 | ||
292 | %package email | |
293 | Summary: email-plugin for collectd | |
294 | Summary(pl_PL.UTF-8): Wtyczka email dla collectd | |
295 | Group: Daemons | |
296 | Requires: %{name} = %{version}-%{release} | |
297 | ||
298 | %description email | |
299 | The email plugin opens an UNIX-socket over which one can submit email | |
300 | statistics, such as the number of ``ham'', ``spam'', ``virus'', etc. mails | |
301 | received/handled, spam scores and matched spam checks. | |
302 | ||
303 | This plugin is intended to be used with the the | |
304 | Mail::SpamAssassin::Plugin::Collectd manpage SpamAssassin-plugin which is | |
305 | included in contrib/, but is of course not limited to that use. | |
306 | ||
307 | %package entropy | |
308 | Summary: entropy-plugin for collectd | |
309 | Summary(pl_PL.UTF-8): Wtyczka entropy dla collectd | |
310 | Group: Daemons | |
311 | Requires: %{name} = %{version}-%{release} | |
312 | ||
313 | %description entropy | |
314 | entropy plugin for collectd. | |
315 | ||
316 | %package exec | |
317 | Summary: exec-plugin for collectd | |
318 | Summary(pl_PL.UTF-8): Wtyczka exec dla collectd | |
319 | Group: Daemons | |
320 | Requires: %{name} = %{version}-%{release} | |
321 | ||
322 | %description exec | |
323 | The exec plugin forks of an executable either to receive values or to | |
324 | dispatch notifications to the outside world. | |
325 | ||
326 | %package filecount | |
327 | Summary: filecount-plugin for collectd | |
328 | Summary(pl_PL.UTF-8): Wtyczka filecount dla collectd | |
329 | Group: Daemons | |
330 | Requires: %{name} = %{version}-%{release} | |
331 | ||
332 | %description filecount | |
333 | The filecount-plugin does something very simple: Count the number of files | |
334 | in a directory and all its subdirectories. This can be used for a variety of | |
335 | statistics, for example the queue length of an MTA, the number of PHP | |
336 | sessions of a web server or simply the number of files in your home | |
337 | directory. | |
338 | ||
339 | %package hddtemp | |
340 | Summary: hddtemp-plugin for collectd | |
341 | Summary(pl_PL.UTF-8): Wtyczka hddtemp dla collectd | |
342 | Group: Daemons | |
343 | Requires: %{name} = %{version}-%{release} | |
344 | Suggests: hddtemp-hddtempd | |
345 | ||
346 | %description hddtemp | |
347 | Temperature of harddisks. The temperatures are provided via S.M.A.R.T. and | |
348 | queried by the external hddtemp-daemon. | |
349 | ||
350 | %package interface | |
351 | Summary: interface-plugin for collectd | |
352 | Summary(pl_PL.UTF-8): Wtyczka interface dla collectd | |
353 | Group: Daemons | |
354 | Requires: %{name} = %{version}-%{release} | |
355 | ||
356 | %description interface | |
357 | The interface-plugin collects information about the traffic (octets), packets | |
358 | and errors of interfaces. | |
359 | ||
360 | %package iptables | |
361 | Summary: iptables-plugin for collectd | |
362 | Summary(pl_PL.UTF-8): Wtyczka iptables dla collectd | |
363 | Group: Daemons | |
364 | Requires: %{name} = %{version}-%{release} | |
365 | ||
366 | %description iptables | |
367 | With this plugin you can gather statistics from your ip_tables based | |
368 | packetfilter (aka. firewall). It can collect the byte- and packet-counters | |
369 | of selected rules and submit them to collectd. You can select rules that | |
370 | should be collected wither by its position (e.g. "the fourth rule in the | |
371 | INPUT queue in the filter table") or by its comment (using the COMMENT | |
372 | match). This means that depending on your firewall layout you can collect | |
373 | certain services (such as the amount of web-traffic), source or destination | |
374 | hosts or networks, dropped packets and much more. | |
375 | ||
376 | %package ipmi | |
377 | Summary: ipmi-plugin for collectd | |
378 | Summary(pl_PL.UTF-8): Wtyczka ipmi dla collectd | |
379 | Group: Daemons | |
380 | Requires: %{name} = %{version}-%{release} | |
381 | ||
382 | %description ipmi | |
383 | ipmi plugin for collectd. | |
384 | ||
385 | %description ipmi -l pl.UTF-8 | |
386 | Wtyczka ipmi dla collectd. | |
387 | ||
388 | %package irq | |
389 | Summary: IRQs-plugin for collectd | |
390 | Summary(pl_PL.UTF-8): Wtyczka IRQs dla collectd | |
391 | Group: Daemons | |
392 | Requires: %{name} = %{version}-%{release} | |
393 | ||
394 | %description irq | |
395 | IRQs plugin for collectd. | |
396 | ||
397 | %package load | |
398 | Summary: load-plugin for collectd | |
399 | Summary(pl_PL.UTF-8): Wtyczka load dla collectd | |
400 | Group: Daemons | |
401 | Requires: %{name} = %{version}-%{release} | |
402 | ||
403 | %description load | |
404 | Collects the system load. These numbers give a rough overview over the | |
405 | utilization of a machine, though their meaning is mostly overrated. | |
406 | ||
407 | %package logfile | |
408 | Summary: logfile-plugin for collectd | |
409 | Summary(pl_PL.UTF-8): Wtyczka logfile dla collectd | |
410 | Group: Daemons | |
411 | Requires: %{name} = %{version}-%{release} | |
412 | ||
413 | %description logfile | |
414 | Logfile plugin for collectd. | |
415 | ||
416 | %package match_regex | |
417 | Summary: match_regex plugin for collectd | |
418 | Summary(pl_PL.UTF-8): Wtyczka match_regex dla collectd | |
419 | Group: Daemons | |
420 | Requires: %{name} = %{version}-%{release} | |
421 | ||
422 | %description match_regex | |
423 | match_regex plugin for collectd. | |
424 | ||
425 | %package match_timediff | |
426 | Summary: match_timediff plugin for collectd | |
427 | Summary(pl_PL.UTF-8): Wtyczka match_timediff dla collectd | |
428 | Group: Daemons | |
429 | Requires: %{name} = %{version}-%{release} | |
430 | ||
431 | %description match_timediff | |
432 | match_timediff plugin for collectd. | |
433 | ||
434 | %package match_value | |
435 | Summary: match_value plugin for collectd | |
436 | Summary(pl_PL.UTF-8): Wtyczka match_value dla collectd | |
437 | Group: Daemons | |
438 | Requires: %{name} = %{version}-%{release} | |
439 | ||
440 | %description match_value | |
441 | match_value plugin for collectd. | |
442 | ||
443 | %package mbmon | |
444 | Summary: mbmon plugin for collectd | |
445 | Summary(pl_PL.UTF-8): Wtyczka mbmon dla collectd | |
446 | Group: Daemons | |
447 | Requires: %{name} = %{version}-%{release} | |
448 | ||
449 | %description mbmon | |
450 | The mbmon plugin uses mbmon to retrieve temperature, voltage, etc. | |
451 | ||
452 | %package memcached | |
453 | Summary: memcached-plugin for collectd | |
454 | Summary(pl_PL.UTF-8): Wtyczka memcached dla collectd | |
455 | Group: Daemons | |
456 | Requires: %{name} = %{version}-%{release} | |
457 | ||
458 | %description memcached | |
459 | The memcached plugin connects to a memcached daemon and collects the number | |
460 | of connections and requests handled by the daemon, the CPU resources consumed, | |
461 | number of items cached, number of threads, and bytes sent and received. | |
462 | ||
463 | %package memory | |
464 | Summary: memory-plugin for collectd | |
465 | Summary(pl_PL.UTF-8): Wtyczka memory dla collectd | |
466 | Group: Daemons | |
467 | Requires: %{name} = %{version}-%{release} | |
468 | ||
469 | %description memory | |
470 | Collects physical memory utilization for collectd. | |
471 | ||
472 | %package multimeter | |
473 | Summary: multimeter-plugin for collectd | |
474 | Summary(pl_PL.UTF-8): Wtyczka multimeter dla collectd | |
475 | Group: Daemons | |
476 | Requires: %{name} = %{version}-%{release} | |
477 | ||
478 | %description multimeter | |
479 | Multimeter plugin for collectd. | |
480 | ||
481 | %package mysql | |
482 | Summary: mysql-plugin for collectd | |
483 | Summary(pl_PL.UTF-8): Moduł mysql dla collectd. | |
484 | Group: Daemons | |
485 | Requires: %{name} = %{version}-%{release} | |
486 | ||
487 | %description mysql | |
488 | MySQL querying plugin. This plugins provides data of issued commands, | |
489 | called handlers and database traffic. | |
490 | ||
491 | %description mysql -l pl.UTF-8 | |
492 | Moduł odpytujący MySQL. Wtyczka udostępnia dane o wydawanych | |
493 | poleceniach, wywoływanych procedurach obsługi i ruchu bazodanowym. | |
494 | ||
495 | %package netlink | |
496 | Summary: netlink-plugin for collectd | |
497 | Summary(pl_PL.UTF-8): Wtyczka netlink dla collectd | |
498 | Group: Daemons | |
499 | Requires: %{name} = %{version}-%{release} | |
500 | ||
501 | %description netlink | |
502 | This plugin will open a netlink socket to the Linux kernel and use it to get | |
503 | statistics for interfaces, qdiscs, classes, and, if you can make use of it, | |
504 | filters. Since in most setups many of the statistics this plugin can collect | |
505 | aren't of interest, you can select which information to gather using the | |
506 | configuration. | |
507 | ||
508 | %package network | |
509 | Summary: network-plugin for collectd | |
510 | Summary(pl_PL.UTF-8): Wtyczka network dla collectd | |
511 | Group: Daemons | |
512 | Requires: %{name} = %{version}-%{release} | |
513 | ||
514 | %description network | |
515 | nginx plugin for collectd. | |
516 | ||
517 | %package nfs | |
518 | Summary: NFS-plugin for collectd | |
519 | Summary(pl_PL.UTF-8): Wtyczka NFS dla collectd | |
520 | Group: Daemons | |
521 | Requires: %{name} = %{version}-%{release} | |
522 | ||
523 | %description nfs | |
524 | The nfs plugin counts the number of procedure calls of the different NFS | |
525 | procedures. | |
526 | ||
527 | %package nginx | |
528 | Summary: nginx-plugin for collectd | |
529 | Summary(pl_PL.UTF-8): Wtyczka nginx dla collectd | |
530 | Group: Daemons | |
531 | Requires: %{name} = %{version}-%{release} | |
532 | ||
533 | %description nginx | |
534 | This plugin collects the number of connections and requests handled by the | |
535 | nginx daemon, a HTTP and mail server/proxy. It queries the page provided by | |
536 | the ngx_http_stub_status_module module, which isn't compiled by default. | |
537 | ||
538 | %package notify_desktop | |
539 | Summary: notify_desktop for collectd | |
540 | Summary(pl_PL.UTF-8): Wtyczka notify_desktop dla collectd | |
541 | Group: Daemons | |
542 | Requires: %{name} = %{version}-%{release} | |
543 | ||
544 | %description notify_desktop | |
545 | This plugin sends a desktop notification to a notification daemon, as | |
546 | defined in the Desktop Notification Specification. To actually display the | |
547 | notifications, notification-daemon is required and collectd has to be able | |
548 | to access the X server. | |
549 | ||
550 | %package notify_email | |
551 | Summary: notify_email-plugin for collectd | |
552 | Summary(pl_PL.UTF-8): Wtyczka notify_email dla collectd | |
553 | Group: Daemons | |
554 | Requires: %{name} = %{version}-%{release} | |
555 | ||
556 | %description notify_email | |
557 | notify_email plugin for collectd. | |
558 | ||
559 | %package ntpd | |
560 | Summary: ntpd-plugin for collectd | |
561 | Summary(pl_PL.UTF-8): Wtyczka ntpd dla collectd | |
562 | Group: Daemons | |
563 | Requires: %{name} = %{version}-%{release} | |
564 | ||
565 | %description ntpd | |
566 | NTPd plugin for collectd. | |
567 | ||
568 | %package nut | |
569 | Summary: nut-plugin for collectd | |
570 | Summary(pl_PL.UTF-8): Wtyczka nut dla collectd | |
571 | Group: Daemons | |
572 | Requires: %{name} = %{version}-%{release} | |
573 | ||
574 | %description nut | |
575 | UPS statistics using the Network UPS Tools. These statistics include | |
576 | basically everything NUT will give us, including voltages, currents, power, | |
577 | frequencies, load, and temperatures. | |
578 | ||
579 | %package openvpn | |
580 | Summary: openvpn plugin for collectd | |
581 | Summary(pl_PL.UTF-8): Wtyczka openvpn dla collectd | |
582 | Group: Daemons | |
583 | Requires: %{name} = %{version}-%{release} | |
584 | Requires: openvpn | |
585 | ||
586 | %description openvpn | |
587 | The OpenVPN plugin reads a status file maintained by OpenVPN and gathers | |
588 | traffic statistics about connected clients. | |
589 | ||
590 | %package ping | |
591 | Summary: ping-plugin for collectd | |
592 | Summary(pl_PL.UTF-8): Wtyczka ping dla collectd | |
593 | Group: Daemons | |
594 | Requires: %{name} = %{version}-%{release} | |
595 | ||
596 | %description ping | |
597 | The network latency is measured as a roundtrip time. An ICMP-echo-request | |
598 | (aka. "ping")is sent to a host and the time needed for his echo-reply (aka. | |
599 | "pong") to arrive is measured. If a reply is not received within one second | |
600 | the plugin will no longer expect a reply and return. This may happen in | |
601 | several circumstances, e. g. the packet is lost, the host is down, a router | |
602 | has dismissed the packet, etc. | |
603 | ||
604 | %package postgresql | |
605 | Summary: mysql-plugin for collectd | |
606 | Summary(pl_PL.UTF-8): Moduł postgresql dla collectd. | |
607 | Group: Daemons | |
608 | Requires: %{name} = %{version}-%{release} | |
609 | ||
610 | %description postgresql | |
611 | The postgresql plugin queries statistics from PostgreSQL databases. It keeps | |
612 | a persistent connection to all configured databases and tries to reconnect | |
613 | if the connection has been interrupted. | |
614 | ||
615 | %package powerdns | |
616 | Summary: powerdns-plugin for collectd | |
617 | Summary(pl_PL.UTF-8): Wtyczka powerdns dla collectd | |
618 | Group: Daemons | |
619 | Requires: %{name} = %{version}-%{release} | |
620 | ||
621 | %description powerdns | |
622 | The powerdns plugin queries statistics from an authoritative PowerDNS | |
623 | nameserver and/or a PowerDNS recursor. Since both offer a wide variety of | |
624 | values, many of which are probably meaningless to most users, but may be | |
625 | useful for some. | |
626 | ||
627 | %package processes | |
628 | Summary: processes-plugin for collectd | |
629 | Summary(pl_PL.UTF-8): Wtyczka processes dla collectd | |
630 | Group: Daemons | |
631 | Requires: %{name} = %{version}-%{release} | |
632 | ||
633 | %description processes | |
634 | This plugin collects the number of processes, grouped by their state (e.g. | |
635 | running, sleeping, zombies, etc.). In addition to that, it can select | |
636 | detailed statistics about selected processes, grouped by name. | |
637 | ||
638 | %package rrdtool | |
639 | Summary: rrdtool-plugin for collectd | |
640 | Summary(pl_PL.UTF-8): Wtyczka rrdtool dla collectd | |
641 | Group: Daemons | |
642 | Requires: %{name} = %{version}-%{release} | |
643 | Requires: rrdtool | |
644 | ||
645 | %description rrdtool | |
646 | RRDTOOL plugin for collectd. | |
647 | ||
648 | %package sensors | |
649 | Summary: sensors-plugin for collectd | |
650 | Summary(pl_PL.UTF-8): Wtyczka sensors dla collectd | |
651 | Group: Daemons | |
652 | Requires: %{name} = %{version}-%{release} | |
653 | ||
654 | %description sensors | |
655 | This plugin uses lm-sensors to read hardware sensors. You will need to | |
656 | configure lm-sensors before this plugin will collect any usefull and correct | |
657 | data. | |
658 | ||
659 | %package serial | |
660 | Summary: serial-plugin for collectd | |
661 | Summary(pl_PL.UTF-8): Wtyczka serial dla collectd | |
662 | Group: Daemons | |
663 | Requires: %{name} = %{version}-%{release} | |
664 | ||
665 | %description serial | |
666 | Serial plugin for collectd. | |
667 | ||
668 | %package snmp | |
669 | Summary: snmp-plugin for collectd | |
670 | Summary(pl_PL.UTF-8): Wtyczka snmp dla collectd | |
671 | Group: Daemons | |
672 | Requires: %{name} = %{version}-%{release} | |
673 | ||
674 | %description snmp | |
675 | The snmp plugin queries other hosts using SNMP, the Simple Network | |
676 | Management Protocol, and translates the value it receives to collectd's | |
677 | internal format and dispatches them. Depending on the write plugins you have | |
678 | loaded they may be written to disk or submitted to another instance or | |
679 | whatever you configured. | |
680 | ||
681 | %package swap | |
682 | Summary: swap-plugin for collectd | |
683 | Summary(pl_PL.UTF-8): Wtyczka swap dla collectd | |
684 | Group: Daemons | |
685 | Requires: %{name} = %{version}-%{release} | |
686 | ||
687 | %description swap | |
688 | Swap space plugin for collectd. | |
689 | ||
690 | %package syslog | |
691 | Summary: syslog-plugin for collectd | |
692 | Summary(pl_PL.UTF-8): Wtyczka syslog dla collectd | |
693 | Group: Daemons | |
694 | Requires: %{name} = %{version}-%{release} | |
695 | ||
696 | %description syslog | |
697 | Syslog plugin for collectd. | |
698 | ||
699 | %package target_notification | |
700 | Summary: target_notification-plugin for collectd | |
701 | Summary(pl_PL.UTF-8): Wtyczka target_notification dla collectd | |
702 | Group: Daemons | |
703 | Requires: %{name} = %{version}-%{release} | |
704 | ||
705 | %description target_notification | |
706 | target_notification plugin for collectd. | |
707 | ||
708 | %package target_replace | |
709 | Summary: target_replace-plugin for collectd | |
710 | Summary(pl_PL.UTF-8): Wtyczka target_replace dla collectd | |
711 | Group: Daemons | |
712 | Requires: %{name} = %{version}-%{release} | |
713 | ||
714 | %description target_replace | |
715 | target_replace plugin for collectd. | |
716 | ||
717 | %package target_set | |
718 | Summary: target_set-plugin for collectd | |
719 | Summary(pl_PL.UTF-8): Wtyczka target_set dla collectd | |
720 | Group: Daemons | |
721 | Requires: %{name} = %{version}-%{release} | |
722 | ||
723 | %description target_set | |
724 | target_set plugin for collectd. | |
725 | ||
726 | %package tail | |
727 | Summary: tail-plugin for collectd | |
728 | Summary(pl_PL.UTF-8): Wtyczka tail dla collectd | |
729 | Group: Daemons | |
730 | Requires: %{name} = %{version}-%{release} | |
731 | ||
732 | %description tail | |
733 | The tail-plugin can be used to "tail" logfiles, i.e. follow them as tail -F | |
734 | does. Each line is given to one or more "matches" which test if the line is | |
735 | relevant for any statistics using a regular expression. | |
736 | ||
737 | %package tcpconns | |
738 | Summary: tcpconns-plugin for collectd | |
739 | Summary(pl_PL.UTF-8): Wtyczka tcpconns dla collectd | |
740 | Group: Daemons | |
741 | Requires: %{name} = %{version}-%{release} | |
742 | ||
743 | %description tcpconns | |
744 | The tcpconns-plugin counts the number of TCP connections to or from a | |
745 | specified port. Typically the connectioins where you specify the local port | |
746 | are incoming connections while the connections where you specify the remote | |
747 | port are outgoing connections. | |
748 | ||
749 | %package teamspeak2 | |
750 | Summary: teamspeak2-plugin for collectd | |
751 | Summary(pl_PL.UTF-8): Wtyczka teamspeak2 dla collectd | |
752 | Group: Daemons | |
753 | Requires: %{name} = %{version}-%{release} | |
754 | ||
755 | %description teamspeak2 | |
756 | The teamspeak2 plugin connects to the query port of a teamspeak2 server and | |
757 | polls interesting global and virtual server data. The plugin can query only | |
758 | one physical server but unlimited virtual servers. | |
759 | ||
760 | %package thermal | |
761 | Summary: thermal-plugin for collectd | |
762 | Summary(pl_PL.UTF-8): Wtyczka thermal dla collectd | |
763 | Group: Daemons | |
764 | Requires: %{name} = %{version}-%{release} | |
765 | ||
766 | %description thermal | |
767 | Thermal plugin for collectd. | |
768 | ||
769 | %package unixsock | |
770 | Summary: unixsock-plugin for collectd | |
771 | Summary(pl_PL.UTF-8): Wtyczka unixsock dla collectd | |
772 | Group: Daemons | |
773 | Requires: %{name} = %{version}-%{release} | |
774 | ||
775 | %description unixsock | |
776 | The unixsock plugin opens an UNIX-socket over which one can interact with | |
777 | the daemon. This can be used to use the values collected by collectd in | |
778 | other applications, such as monitoring, or submit externally collected | |
779 | values to collectd. | |
780 | ||
781 | %package users | |
782 | Summary: users-plugin for collectd | |
783 | Summary(pl_PL.UTF-8): Wtyczka users dla collectd | |
784 | Group: Daemons | |
785 | Requires: %{name} = %{version}-%{release} | |
786 | ||
787 | %description users | |
788 | Number of users currently logged in. | |
789 | ||
790 | %package uuid | |
791 | Summary: uuid-plugin for collectd | |
792 | Summary(pl_PL.UTF-8): Wtyczka uuid dla collectd | |
793 | Group: Daemons | |
794 | Requires: %{name} = %{version}-%{release} | |
795 | ||
796 | %description uuid | |
797 | This plugin, if loaded, causes the Hostname to be taken from the machine's | |
798 | UUID. The UUID is a universally unique designation for the machine, usually | |
799 | taken from the machine's BIOS. This is most useful if the machine is | |
800 | running in a virtual environment such as Xen, in which case the UUID is | |
801 | preserved across shutdowns and migration. | |
802 | ||
803 | %package vmem | |
804 | Summary: vmem-plugin for collectd | |
805 | Summary(pl_PL.UTF-8): Wtyczka vmem dla collectd | |
806 | Group: Daemons | |
807 | Requires: %{name} = %{version}-%{release} | |
808 | ||
809 | %description vmem | |
810 | The vmem plugin collects information about the usage of virtual memory. | |
811 | Since the statistics provided by the Linux kernel are very detailed, they | |
812 | are collected very detailed. | |
813 | ||
814 | %package vserver | |
815 | Summary: vserver-plugin for collectd | |
816 | Summary(pl_PL.UTF-8): Wtyczka vserver dla collectd | |
817 | Group: Daemons | |
818 | Requires: %{name} = %{version}-%{release} | |
819 | ||
820 | %description vserver | |
821 | Collects information about the virtual servers running on a system, using | |
822 | Linux-Vserver. | |
823 | ||
824 | %package wireless | |
825 | Summary: wireless-plugin for collectd | |
826 | Summary(pl_PL.UTF-8): Wtyczka wireless dla collectd | |
827 | Group: Daemons | |
828 | Requires: %{name} = %{version}-%{release} | |
829 | ||
830 | %description wireless | |
831 | Wireless plugin for collectd. | |
832 | ||
833 | %package xmms | |
834 | Summary: xmms-plugin for collectd | |
835 | Summary(pl_PL.UTF-8): Wtyczka xmms dla collectd | |
836 | Group: Daemons | |
837 | Requires: %{name} = %{version}-%{release} | |
838 | ||
839 | %description xmms | |
840 | This plugin collectd data provided by XMMS. | |
841 | ||
842 | %prep | |
843 | %setup -q | |
844 | %patch0 -p1 | |
845 | ||
846 | %build | |
847 | %{__libtoolize} | |
848 | %{__aclocal} | |
849 | %{__autoconf} | |
850 | %{__autoheader} | |
851 | %{__automake} | |
852 | ||
853 | %configure \ | |
854 | --with-libstatgrab=/usr \ | |
855 | --with-lm-sensors=/usr \ | |
856 | --with-libmysql=/usr \ | |
857 | --%{?with_dns:en}%{!?with_dns:dis}able-dns \ | |
858 | --%{?with_ipmi:en}%{!?with_ipmi:dis}able-ipmi \ | |
859 | --%{?with_iptables:en}%{!?with_iptables:dis}able-iptables \ | |
860 | --%{?with_multimeter:en}%{!?with_multimeter:dis}able-multimeter \ | |
861 | --%{?with_mysql:en}%{!?with_mysql:dis}able-mysql \ | |
862 | --%{?with_netlink:en}%{!?with_netlink:dis}able-netlink \ | |
863 | --%{?with_notify:en}%{!?with_notify:dis}able-notify_desktop \ | |
864 | --%{?with_libesmtp:en}%{!?with_libesmtp:dis}able-notify_email \ | |
865 | --%{?with_ups:en}%{!?with_ups:dis}able-nut \ | |
866 | --%{?with_ping:en}%{!?with_ping:dis}able-ping \ | |
867 | --%{?with_psql:en}%{!?with_psql:dis}able-postgresql \ | |
868 | --%{?with_rrd:en}%{!?with_rrd:dis}able-rrd{cached,tool} \ | |
869 | --%{?with_sensors:en}%{!?with_sensors:dis}able-sensors \ | |
870 | --%{?with_snmp:en}%{!?with_snmp:dis}able-snmp \ | |
871 | --%{?with_xmms:en}%{!?with_xmms:dis}able-xmms \ | |
872 | %{!?with_curl:--disable-{apache,ascent,bind,curl,nginx}} \ | |
873 | %{!?with_xml:--disable-{ascent,libvirt}} \ | |
874 | --disable-ipvs \ | |
875 | --disable-libvirt \ | |
876 | --disable-perl | |
877 | ||
878 | ||
879 | %{__make} LDFLAGS="%{rpmldflags} -lstatgrab" \ | |
880 | BUILD_WITH_OPENIPMI_CFLAGS="-I/usr/include" \ | |
881 | BUILD_WITH_OPENIPMI_LIBS="-L/usr/lib64 -lOpenIPMIutils -lOpenIPMIpthread" | |
882 | ||
883 | %install | |
884 | rm -rf $RPM_BUILD_ROOT | |
885 | install -d $RPM_BUILD_ROOT{%{_var}/{log/,lib/%{name}},/etc/{rc.d/init.d/,collectd.d}} \ | |
886 | $RPM_BUILD_ROOT{%{_appdir}/cgi-bin,%{_webappdir},%{_pkglibdir}} | |
887 | ||
888 | %{__make} install \ | |
889 | DESTDIR=$RPM_BUILD_ROOT | |
890 | ||
891 | touch $RPM_BUILD_ROOT%{_var}/log/collectd.log | |
892 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
893 | ||
894 | # Web frontend: | |
895 | install contrib/collection.conf $RPM_BUILD_ROOT%{_webappdir} | |
896 | install contrib/collection.cgi $RPM_BUILD_ROOT%{_appdir}/cgi-bin | |
897 | install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/apache.conf | |
898 | install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf | |
899 | install %{SOURCE4} $RPM_BUILD_ROOT%{_webappdir}/lighttpd.conf | |
900 | ||
901 | ### Configs instalation ### | |
902 | for i in `egrep "^(#|)LoadPlugin" src/collectd.conf |awk '{print $NF}' ` ; do | |
903 | egrep "LoadPlugin $i$" src/collectd.conf | %{__sed} -e "s/^#//" > $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/$i.conf | |
904 | grep -v LoadPlugin src/collectd.conf |%{__sed} -e '/./{H;$!d;}' -e "x;/ $i>/!d;" >> $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/$i.conf | |
905 | done | |
906 | ||
907 | # Example config in sources: src/collectd.conf | |
908 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.conf | |
909 | ||
910 | # Overwrite only files which we want to change: | |
911 | install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/df.conf | |
912 | install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/collectd.d/rrdtool.conf | |
913 | ||
914 | # Cleanups: | |
915 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la | |
916 | ||
917 | %clean | |
918 | rm -rf $RPM_BUILD_ROOT | |
919 | ||
920 | %post | |
921 | /sbin/chkconfig --add %{name} | |
922 | %service %{name} restart | |
923 | ||
924 | %preun | |
925 | if [ "$1" = "0" ]; then | |
926 | %service -q %{name} stop | |
927 | /sbin/chkconfig --del %{name} | |
928 | fi | |
929 | ||
930 | %post libs -p /sbin/ldconfig | |
931 | %postun libs -p /sbin/ldconfig | |
932 | ||
933 | %define module_scripts() \ | |
934 | %post %1 \ | |
935 | %service %{name} restart \ | |
936 | \ | |
937 | %postun %1 \ | |
938 | %service %{name} restart | |
939 | ||
940 | %{?with_xml:%{?with_curl:%module_scripts apache}} | |
941 | %module_scripts apcups | |
942 | %{?with_curl:%module_scripts ascent} | |
943 | %module_scripts battery | |
944 | %{?with_xml:%{?with_curl:%module_scripts bind}} | |
945 | %module_scripts cpufreq | |
946 | %module_scripts cpu | |
947 | %module_scripts csv | |
948 | %{?with_curl:%module_scripts curl} | |
949 | %module_scripts dbi | |
950 | %module_scripts df | |
951 | %module_scripts disk | |
952 | %{?with_dns:%module_scripts dns} | |
953 | %module_scripts email | |
954 | %module_scripts entropy | |
955 | %module_scripts exec | |
956 | %module_scripts filecount | |
957 | %module_scripts hddtemp | |
958 | %module_scripts interface | |
959 | %{?with_ipmi:%module_scripts ipmi} | |
960 | %{?with_iptables:%module_scripts iptables} | |
961 | %module_scripts irq | |
962 | %module_scripts load | |
963 | %module_scripts logfile | |
964 | %module_scripts match_regex | |
965 | %module_scripts match_timediff | |
966 | %module_scripts match_value | |
967 | %module_scripts mbmon | |
968 | %module_scripts memcached | |
969 | %module_scripts memory | |
970 | %{?with_multimeter:%module_scripts multimeter} | |
971 | %{?with_mysql:%module_scripts mysql | |
972 | %{?with_netlink:%module_scripts netlink} | |
973 | %module_scripts network | |
974 | %module_scripts nfs | |
975 | %{?with_curl:%module_scripts nginx} | |
976 | %{?with_notify:%module_scripts notify_desktop} | |
977 | %{?with_libesmtp:%module_scripts notify_email} | |
978 | %module_scripts ntpd | |
979 | %{?with_ups:%module_scripts nut} | |
980 | %module_scripts openvpn | |
981 | %{?with_ping:%module_scripts ping} | |
982 | %{?with_psql:%module_scripts postgresql} | |
983 | %module_scripts powerdns | |
984 | %module_scripts processes | |
985 | %{?with_rrd:%module_scripts rrdtool} | |
986 | %{?with_sensors:%module_scripts sensors} | |
987 | %module_scripts serial | |
988 | %{?with_snmp:%module_scripts snmp} | |
989 | %module_scripts swap | |
990 | %module_scripts syslog | |
991 | %module_scripts tail | |
992 | %module_scripts target_notification | |
993 | %module_scripts target_replace | |
994 | %module_scripts target_set | |
995 | %module_scripts tcpconns | |
996 | %module_scripts teamspeak2 | |
997 | %module_scripts thermal | |
998 | %module_scripts unixsock | |
999 | %module_scripts users | |
1000 | %module_scripts uuid | |
1001 | %module_scripts vmem | |
1002 | %module_scripts vserver | |
1003 | %module_scripts wireless | |
1004 | %{?with_xmms:%module_scripts xmms} | |
1005 | ||
1006 | %triggerin collection -- apache1 < 1.3.37-3, apache1-base | |
1007 | %webapp_register apache %{_webapp} | |
1008 | ||
1009 | %triggerun collection -- apache1 < 1.3.37-3, apache1-base | |
1010 | %webapp_unregister apache %{_webapp} | |
1011 | ||
1012 | %triggerin collection -- apache < 2.2.0, apache-base | |
1013 | %webapp_register httpd %{_webapp} | |
1014 | ||
1015 | %triggerun collection -- apache < 2.2.0, apache-base | |
1016 | %webapp_unregister httpd %{_webapp} | |
1017 | ||
1018 | %triggerin collection -- lighttpd | |
1019 | %webapp_register lighttpd %{_webapp} | |
1020 | ||
1021 | %triggerun collection -- lighttpd | |
1022 | %webapp_unregister lighttpd %{_webapp} | |
1023 | ||
1024 | %files | |
1025 | %defattr(644,root,root,755) | |
1026 | %doc AUTHORS ChangeLog README TODO contrib | |
1027 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf | |
1028 | %dir %{_sysconfdir}/%{name}.d | |
1029 | %attr(755,root,root) %{_sbindir}/collectd | |
1030 | %attr(755,root,root) %{_sbindir}/collectdmon | |
1031 | %attr(755,root,root) %{_bindir}/collectd-nagios | |
1032 | %dir %{_datadir}/%{name} | |
1033 | %{_datadir}/%{name}/types.db | |
1034 | %attr(754,root,root) /etc/rc.d/init.d/%{name} | |
1035 | %{_mandir}/man1/collectd.1* | |
1036 | %{_mandir}/man1/collectd-nagios.1* | |
1037 | %{_mandir}/man5/collectd.conf.5* | |
1038 | %{_mandir}/man5/collectd-perl.5* | |
1039 | %{_mandir}/man1/collectdmon.1* | |
1040 | %{_mandir}/man5/types.db.5* | |
1041 | %dir %{_var}/lib/%{name} | |
1042 | ||
1043 | %files libs | |
1044 | %defattr(644,root,root,755) | |
1045 | %attr(755,root,root) %{_libdir}/libcollectdclient.so.*.*.* | |
1046 | %attr(755,root,root) %ghost %{_libdir}/libcollectdclient.so.0 | |
1047 | %dir %{_libdir}/%{name} | |
1048 | ||
1049 | %files devel | |
1050 | %defattr(644,root,root,755) | |
1051 | %attr(755,root,root) %{_libdir}/libcollectdclient.so | |
1052 | %{_libdir}/libcollectdclient.la | |
1053 | %dir %{_includedir}/%{name} | |
1054 | %{_includedir}/%{name}/*.h | |
1055 | %{_pkgconfigdir}/libcollectdclient.pc | |
1056 | ||
1057 | %files collection | |
1058 | %defattr(644,root,root,755) | |
1059 | %dir %{_webappdir} | |
1060 | %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/collection.conf | |
1061 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/apache.conf | |
1062 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/httpd.conf | |
1063 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/lighttpd.conf | |
1064 | %dir %{_appdir} | |
1065 | %dir %{_appdir}/cgi-bin | |
1066 | %attr(755,root,root) %{_appdir}/cgi-bin/collection.cgi | |
1067 | ||
1068 | ########## PLUGINS: | |
1069 | %if %{with xml} | |
1070 | %if %{with curl} | |
1071 | %files apache | |
1072 | %defattr(640,root,root,755) | |
1073 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/apache.conf | |
1074 | %attr(755,root,root) %{_libdir}/%{name}/apache.so | |
1075 | %endif | |
1076 | %endif | |
1077 | ||
1078 | %files apcups | |
1079 | %defattr(644,root,root,755) | |
1080 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/apcups.conf | |
1081 | %attr(755,root,root) %{_libdir}/%{name}/apcups.so | |
1082 | ||
1083 | %if %{with curl} | |
1084 | %files ascent | |
1085 | %defattr(640,root,root,755) | |
1086 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ascent.conf | |
1087 | %attr(755,root,root) %{_libdir}/%{name}/ascent.so | |
1088 | %endif | |
1089 | ||
1090 | %files battery | |
1091 | %defattr(644,root,root,755) | |
1092 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/battery.conf | |
1093 | %attr(755,root,root) %{_libdir}/%{name}/battery.so | |
1094 | ||
1095 | %if %{with xml} | |
1096 | %if %{with curl} | |
1097 | %files bind | |
1098 | %defattr(644,root,root,755) | |
1099 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/bind.conf | |
1100 | %attr(755,root,root) %{_libdir}/%{name}/bind.so | |
1101 | %endif | |
1102 | %endif | |
1103 | ||
1104 | %files cpu | |
1105 | %defattr(644,root,root,755) | |
1106 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/cpu.conf | |
1107 | %attr(755,root,root) %{_libdir}/%{name}/cpu.so | |
1108 | ||
1109 | %files cpufreq | |
1110 | %defattr(644,root,root,755) | |
1111 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/cpufreq.conf | |
1112 | %attr(755,root,root) %{_libdir}/%{name}/cpufreq.so | |
1113 | ||
1114 | %files csv | |
1115 | %defattr(644,root,root,755) | |
1116 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/csv.conf | |
1117 | %attr(755,root,root) %{_libdir}/%{name}/csv.so | |
1118 | ||
1119 | %if %{with curl} | |
1120 | %files curl | |
1121 | %defattr(640,root,root,755) | |
1122 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/curl.conf | |
1123 | %attr(755,root,root) %{_libdir}/%{name}/curl.so | |
1124 | %endif | |
1125 | ||
1126 | %files dbi | |
1127 | %defattr(640,root,root,755) | |
1128 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/dbi.conf | |
1129 | %attr(755,root,root) %{_libdir}/%{name}/dbi.so | |
1130 | ||
1131 | %files df | |
1132 | %defattr(644,root,root,755) | |
1133 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/df.conf | |
1134 | %attr(755,root,root) %{_libdir}/%{name}/df.so | |
1135 | ||
1136 | %files disk | |
1137 | %defattr(644,root,root,755) | |
1138 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/disk.conf | |
1139 | %attr(755,root,root) %{_libdir}/%{name}/disk.so | |
1140 | ||
1141 | %if %{with dns} | |
1142 | %files dns | |
1143 | %defattr(644,root,root,755) | |
1144 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/dns.conf | |
1145 | %attr(755,root,root) %{_libdir}/%{name}/dns.so | |
1146 | %endif | |
1147 | ||
1148 | %files email | |
1149 | %defattr(644,root,root,755) | |
1150 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/email.conf | |
1151 | %attr(755,root,root) %{_libdir}/%{name}/email.so | |
1152 | %{_mandir}/man5/collectd-email.5* | |
1153 | ||
1154 | %files entropy | |
1155 | %defattr(644,root,root,755) | |
1156 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/entropy.conf | |
1157 | %attr(755,root,root) %{_libdir}/%{name}/entropy.so | |
1158 | ||
1159 | %files exec | |
1160 | %defattr(644,root,root,755) | |
1161 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/exec.conf | |
1162 | %attr(755,root,root) %{_libdir}/%{name}/exec.so | |
1163 | %{_mandir}/man5/collectd-exec.5* | |
1164 | ||
1165 | %files filecount | |
1166 | %defattr(644,root,root,755) | |
1167 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/filecount.conf | |
1168 | %attr(755,root,root) %{_libdir}/%{name}/filecount.so | |
1169 | ||
1170 | %files hddtemp | |
1171 | %defattr(644,root,root,755) | |
1172 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/hddtemp.conf | |
1173 | %attr(755,root,root) %{_libdir}/%{name}/hddtemp.so | |
1174 | ||
1175 | %files interface | |
1176 | %defattr(644,root,root,755) | |
1177 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/interface.conf | |
1178 | %attr(755,root,root) %{_libdir}/%{name}/interface.so | |
1179 | ||
1180 | %if %{with ipmi} | |
1181 | %files ipmi | |
1182 | %defattr(644,root,root,755) | |
1183 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ipmi.conf | |
1184 | %attr(755,root,root) %{_libdir}/%{name}/ipmi.so | |
1185 | %endif | |
1186 | ||
1187 | %if %{with iptables} | |
1188 | %files iptables | |
1189 | %defattr(644,root,root,755) | |
1190 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/iptables.conf | |
1191 | %attr(755,root,root) %{_libdir}/%{name}/iptables.so | |
1192 | %endif | |
1193 | ||
1194 | %files irq | |
1195 | %defattr(644,root,root,755) | |
1196 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/irq.conf | |
1197 | %attr(755,root,root) %{_libdir}/%{name}/irq.so | |
1198 | ||
1199 | %files load | |
1200 | %defattr(644,root,root,755) | |
1201 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/load.conf | |
1202 | %attr(755,root,root) %{_libdir}/%{name}/load.so | |
1203 | ||
1204 | %files logfile | |
1205 | %defattr(644,root,root,755) | |
1206 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/logfile.conf | |
1207 | %attr(755,root,root) %{_libdir}/%{name}/logfile.so | |
1208 | %{_var}/log/collectd.log | |
1209 | ||
1210 | %files match_regex | |
1211 | %defattr(644,root,root,755) | |
1212 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/match_regex.conf | |
1213 | %attr(755,root,root) %{_libdir}/%{name}/match_regex.so | |
1214 | ||
1215 | %files match_timediff | |
1216 | %defattr(644,root,root,755) | |
1217 | %attr(755,root,root) %{_libdir}/%{name}/match_timediff.so | |
1218 | ||
1219 | %files match_value | |
1220 | %defattr(644,root,root,755) | |
1221 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/match_value.conf | |
1222 | %attr(755,root,root) %{_libdir}/%{name}/match_value.so | |
1223 | ||
1224 | %files mbmon | |
1225 | %defattr(644,root,root,755) | |
1226 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/mbmon.conf | |
1227 | %attr(755,root,root) %{_libdir}/%{name}/mbmon.so | |
1228 | ||
1229 | %files memcached | |
1230 | %defattr(644,root,root,755) | |
1231 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/memcached.conf | |
1232 | %attr(755,root,root) %{_libdir}/%{name}/memcached.so | |
1233 | ||
1234 | %files memory | |
1235 | %defattr(644,root,root,755) | |
1236 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/memory.conf | |
1237 | %attr(755,root,root) %{_libdir}/%{name}/memory.so | |
1238 | ||
1239 | %if %{with multimeter} | |
1240 | %files multimeter | |
1241 | %defattr(644,root,root,755) | |
1242 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/multimeter.conf | |
1243 | %attr(755,root,root) %{_libdir}/%{name}/multimeter.so | |
1244 | %endif | |
1245 | ||
1246 | %if %{with mysql} | |
1247 | %files mysql | |
1248 | %defattr(640,root,root,755) | |
1249 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/mysql.conf | |
1250 | %attr(755,root,root) %{_libdir}/%{name}/mysql.so | |
1251 | %endif | |
1252 | ||
1253 | %if %{with netlink} | |
1254 | %files netlink | |
1255 | %defattr(644,root,root,755) | |
1256 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/netlink.conf | |
1257 | %attr(755,root,root) %{_libdir}/%{name}/netlink.so | |
1258 | %endif | |
1259 | ||
1260 | %files network | |
1261 | %defattr(644,root,root,755) | |
1262 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/network.conf | |
1263 | %attr(755,root,root) %{_libdir}/%{name}/network.so | |
1264 | ||
1265 | %files nfs | |
1266 | %defattr(644,root,root,755) | |
1267 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nfs.conf | |
1268 | %attr(755,root,root) %{_libdir}/%{name}/nfs.so | |
1269 | ||
1270 | %if %{with curl} | |
1271 | %files nginx | |
1272 | %defattr(640,root,root,755) | |
1273 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nginx.conf | |
1274 | %attr(755,root,root) %{_libdir}/%{name}/nginx.so | |
1275 | %endif | |
1276 | ||
1277 | %if %{with notify} | |
1278 | %files notify_desktop | |
1279 | %defattr(644,root,root,755) | |
1280 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/notify_desktop.conf | |
1281 | %attr(755,root,root) %{_libdir}/%{name}/notify_desktop.so | |
1282 | %endif | |
1283 | ||
1284 | %if %{with libesmtp} | |
1285 | %files notify_email | |
1286 | %defattr(640,root,root,755) | |
1287 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/notify_email.conf | |
1288 | %attr(755,root,root) %{_libdir}/%{name}/notify_email.so | |
1289 | %endif | |
1290 | ||
1291 | %files ntpd | |
1292 | %defattr(644,root,root,755) | |
1293 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ntpd.conf | |
1294 | %attr(755,root,root) %{_libdir}/%{name}/ntpd.so | |
1295 | ||
1296 | %if %{with ups} | |
1297 | %files nut | |
1298 | %defattr(644,root,root,755) | |
1299 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/nut.conf | |
1300 | %attr(755,root,root) %{_libdir}/%{name}/nut.so | |
1301 | %endif | |
1302 | ||
1303 | %files openvpn | |
1304 | %defattr(644,root,root,755) | |
1305 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/openvpn.conf | |
1306 | %attr(755,root,root) %{_libdir}/%{name}/openvpn.so | |
1307 | ||
1308 | %if %{with ping} | |
1309 | %files ping | |
1310 | %defattr(644,root,root,755) | |
1311 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/ping.conf | |
1312 | %attr(755,root,root) %{_libdir}/%{name}/ping.so | |
1313 | %endif | |
1314 | ||
1315 | %if %{with psql} | |
1316 | %files postgresql | |
1317 | %defattr(640,root,root,755) | |
1318 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/postgresql.conf | |
1319 | %attr(755,root,root) %{_libdir}/%{name}/postgresql.so | |
1320 | %{_datadir}/%{name}/postgresql_default.conf | |
1321 | %endif | |
1322 | ||
1323 | %files powerdns | |
1324 | %defattr(644,root,root,755) | |
1325 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/powerdns.conf | |
1326 | %attr(755,root,root) %{_libdir}/%{name}/powerdns.so | |
1327 | ||
1328 | %files processes | |
1329 | %defattr(644,root,root,755) | |
1330 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/processes.conf | |
1331 | %attr(755,root,root) %{_libdir}/%{name}/processes.so | |
1332 | ||
1333 | %if %{with rrd} | |
1334 | %files rrdtool | |
1335 | %defattr(644,root,root,755) | |
1336 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/rrdtool.conf | |
1337 | %attr(755,root,root) %{_libdir}/%{name}/rrdtool.so | |
1338 | %endif | |
1339 | ||
1340 | %if %{with sensors} | |
1341 | %files sensors | |
1342 | %defattr(644,root,root,755) | |
1343 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/sensors.conf | |
1344 | %attr(755,root,root) %{_libdir}/%{name}/sensors.so | |
1345 | %endif | |
1346 | ||
1347 | %files serial | |
1348 | %defattr(644,root,root,755) | |
1349 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/serial.conf | |
1350 | %attr(755,root,root) %{_libdir}/%{name}/serial.so | |
1351 | ||
1352 | %if %{with snmp} | |
1353 | %files snmp | |
1354 | %defattr(644,root,root,755) | |
1355 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/snmp.conf | |
1356 | %attr(755,root,root) %{_libdir}/%{name}/snmp.so | |
1357 | %{_mandir}/man5/collectd-snmp.5* | |
1358 | %endif | |
1359 | ||
1360 | %files swap | |
1361 | %defattr(644,root,root,755) | |
1362 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/swap.conf | |
1363 | %attr(755,root,root) %{_libdir}/%{name}/swap.so | |
1364 | ||
1365 | %files syslog | |
1366 | %defattr(644,root,root,755) | |
1367 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/syslog.conf | |
1368 | %attr(755,root,root) %{_libdir}/%{name}/syslog.so | |
1369 | ||
1370 | %files tail | |
1371 | %defattr(644,root,root,755) | |
1372 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/tail.conf | |
1373 | %attr(755,root,root) %{_libdir}/%{name}/tail.so | |
1374 | ||
1375 | %files target_notification | |
1376 | %defattr(644,root,root,755) | |
1377 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/target_notification.conf | |
1378 | %attr(755,root,root) %{_libdir}/%{name}/target_notification.so | |
1379 | ||
1380 | %files target_replace | |
1381 | %defattr(644,root,root,755) | |
1382 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/target_replace.conf | |
1383 | %attr(755,root,root) %{_libdir}/%{name}/target_replace.so | |
1384 | ||
1385 | %files target_set | |
1386 | %defattr(644,root,root,755) | |
1387 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/target_set.conf | |
1388 | %attr(755,root,root) %{_libdir}/%{name}/target_set.so | |
1389 | ||
1390 | %files tcpconns | |
1391 | %defattr(644,root,root,755) | |
1392 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/tcpconns.conf | |
1393 | %attr(755,root,root) %{_libdir}/%{name}/tcpconns.so | |
1394 | ||
1395 | %files teamspeak2 | |
1396 | %defattr(644,root,root,755) | |
1397 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/teamspeak2.conf | |
1398 | %attr(755,root,root) %{_libdir}/%{name}/teamspeak2.so | |
1399 | ||
1400 | %files thermal | |
1401 | %defattr(644,root,root,755) | |
1402 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/thermal.conf | |
1403 | %attr(755,root,root) %{_libdir}/%{name}/thermal.so | |
1404 | ||
1405 | %files unixsock | |
1406 | %defattr(644,root,root,755) | |
1407 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/unixsock.conf | |
1408 | %attr(755,root,root) %{_libdir}/%{name}/unixsock.so | |
1409 | %{_mandir}/man5/collectd-unixsock.5* | |
1410 | ||
1411 | %files users | |
1412 | %defattr(644,root,root,755) | |
1413 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/users.conf | |
1414 | %attr(755,root,root) %{_libdir}/%{name}/users.so | |
1415 | ||
1416 | %files uuid | |
1417 | %defattr(644,root,root,755) | |
1418 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/uuid.conf | |
1419 | %attr(755,root,root) %{_libdir}/%{name}/uuid.so | |
1420 | ||
1421 | %files vmem | |
1422 | %defattr(644,root,root,755) | |
1423 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/vmem.conf | |
1424 | %attr(755,root,root) %{_libdir}/%{name}/vmem.so | |
1425 | ||
1426 | %files vserver | |
1427 | %defattr(644,root,root,755) | |
1428 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/vserver.conf | |
1429 | %attr(755,root,root) %{_libdir}/%{name}/vserver.so | |
1430 | ||
1431 | %files wireless | |
1432 | %defattr(644,root,root,755) | |
1433 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/wireless.conf | |
1434 | %attr(755,root,root) %{_libdir}/%{name}/wireless.so | |
1435 | ||
1436 | %if %{with xmms} | |
1437 | %files xmms | |
1438 | %defattr(644,root,root,755) | |
1439 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/xmms.conf | |
1440 | %attr(755,root,root) %{_libdir}/%{name}/xmms.so | |
1441 | %endif |