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