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