]>
Commit | Line | Data |
---|---|---|
136933cf | 1 | # TODO |
0b07446c ER |
2 | # - separate packages for templates from here |
3 | %define php_min_version 5.0.0 | |
d4c4d92b MWP |
4 | Summary: Add-ons for Cacti |
5 | Summary(pl.UTF-8): Dodatki do Cacti | |
9cd8f43f MWP |
6 | Name: cacti-addons |
7 | Version: 0.1 | |
0b07446c | 8 | Release: 0.14 |
9cd8f43f MWP |
9 | License: GPL v2 |
10 | Group: Applications/WWW | |
3ada5fa8 | 11 | # Show locked Machines, Shares and Files from a Samba Server - http://forums.cacti.net/about7516.html |
d4c4d92b MWP |
12 | Source0: http://forums.cacti.net/files/samba.tar.gz |
13 | # Source0-md5: b8fc04a74b8ab297fd39fb6fb02d80f4 | |
62f678a7 | 14 | # DNS Server Response Time - http://forums.cacti.net/about6332.html |
d4c4d92b MWP |
15 | Source4: http://forums.cacti.net/files/cacti_graph_template_dnsresponsetime_204__fixed_timeout_and_interval_161.xml |
16 | # Source4-md5: abf46930508377099b37d696648ce7de | |
17 | Source5: http://forums.cacti.net/files/dnsresponsetimeloop_115.txt | |
18 | # Source5-md5: 0844f7d58ff77904416dee5b120c31cf | |
19 | # hddtemp - http://forums.cacti.net/about15020.html , http://forums.cacti.net/about15743.html | |
20 | #URL: http://www.pawelko.net/Cacti/3-Hddtemp-Template-For-Cacti | |
21 | Source6: http://www.pawelko.net/xmedia/cacti/cacti-linux-hddtemp-1.0.tar.gz | |
22 | # Source6-md5: d08898b43978ccbd863076c4b3124987 | |
ec6417d1 MWP |
23 | # MySQL Host Template - http://www.faemalia.net/mysqlUtils/ , http://forums.cacti.net/viewtopic.php?t=11010 |
24 | Source7: http://www.faemalia.net/mysqlUtils/teMySQLcacti-20060810.tar.gz | |
5c0a212f | 25 | # Source7-md5: 9fa929206625d0824dff77168c85e6f8 |
9cd8f43f MWP |
26 | URL: http://www.debianhelp.co.uk/cactitemplates.htm |
27 | BuildRequires: rpm-perlprov | |
0b07446c ER |
28 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
29 | BuildRequires: rpmbuild(macros) >= 1.554 | |
5c0a212f | 30 | BuildRequires: unzip |
0b07446c | 31 | Requires: cacti >= 0.8.7e-8 |
9cd8f43f MWP |
32 | BuildArch: noarch |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
3ada5fa8 | 35 | %define cactidir /usr/share/cacti |
9cd8f43f MWP |
36 | |
37 | %description | |
38 | Templates and scripts for Cacti. | |
39 | ||
40 | %description -l pl.UTF-8 | |
87e8b535 | 41 | Skrypty i szablony dla Cacti. |
9cd8f43f | 42 | |
62f678a7 MWP |
43 | %package DNS_Server_Response_Time |
44 | Summary: Cacti - Measure the response times of multiple internal and external DNS Resolver | |
87e8b535 | 45 | Summary(pl.UTF-8): Cacti - określanie czasu odpowiedzi wielu wewnętrznych lub zewnętrznych DNS-ów |
62f678a7 | 46 | Group: Applications/WWW |
0b07446c | 47 | Requires: cacti >= 0.8.7e-8 |
62f678a7 MWP |
48 | |
49 | %description DNS_Server_Response_Time | |
50 | Measure the response times of multiple internal and external DNS | |
51 | Resolvers. The Perl script launches queries repeatedly (after holdoff | |
87e8b535 | 52 | delay between queries) during Cacti default sample interval of 300 |
62f678a7 MWP |
53 | seconds and the returns minimum, median, average and maximum response |
54 | times. | |
f39be15f | 55 | |
87e8b535 JB |
56 | %description DNS_Server_Response_Time -l pl.UTF-8 |
57 | Określanie czasu odpowiedzi wielu wewnętrznych lub zewnętrznych | |
58 | DNS-ów. Skrypt w perlu powtarza zapytania (z określonym odstępem | |
59 | między nimi) w czasie domyślnych 300-sekundowych interwałów czasowych | |
60 | Cacti i zwraca czasy odpowiedzi minimalne, średnie, maksymalne oraz | |
61 | ich mediany. | |
62 | ||
d4c4d92b | 63 | %package Samba_locked_machine |
87e8b535 JB |
64 | Summary: Graphs the locked machines, shares and files from a Samba server |
65 | Summary(pl.UTF-8): Wykresy zablokowanych stacji, udziałów i plików z serwera Samby | |
d4c4d92b | 66 | Group: Applications/WWW |
0b07446c | 67 | Requires: cacti >= 0.8.7e-8 |
d4c4d92b MWP |
68 | |
69 | %description Samba_locked_machine | |
87e8b535 JB |
70 | Add-on for Cacti: graphs the locked machines, shares and files from a |
71 | Samba server in gauge mode. | |
d4c4d92b MWP |
72 | |
73 | %description Samba_locked_machine -l pl.UTF-8 | |
87e8b535 JB |
74 | Dodatek do cacti: wykresy zablokowanych stacji, udziałów i plików z |
75 | serwera Samby. | |
d4c4d92b MWP |
76 | |
77 | %package hddtemp | |
78 | Summary: Template to query hddtemp deamon and graph disks temperature | |
79 | Summary(pl.UTF-8): Wykresy temperatury dysków - dane pobierane z hddtemp | |
80 | Group: Applications/WWW | |
0b07446c ER |
81 | Requires: cacti >= 0.8.7e-8 |
82 | Requires: php-common >= 4:%{php_min_version} | |
d4c4d92b MWP |
83 | |
84 | %description hddtemp | |
85 | Template to query hddtemp deamon and graph disks temperature. | |
86 | ||
87 | %description hddtemp -l pl.UTF-8 | |
88 | Wykresy temperatury dysków - dane pobierane z hddtemp. | |
89 | ||
9cd8f43f | 90 | %prep |
5c0a212f | 91 | %setup -q -c -a6 |
0b07446c | 92 | %undos -f php,inc |
9cd8f43f MWP |
93 | |
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
3ada5fa8 | 96 | install -d $RPM_BUILD_ROOT{%{cactidir}/cacti,%{cactidir}/scripts,%{cactidir}/resource/script_queries,%{cactidir}/resource/snmp_queries,%{cactidir}/resource/script_server,%{_bindir}} |
9cd8f43f | 97 | |
0b07446c ER |
98 | cp -p samba/cacti_graph_template_snmp_samba.xml $RPM_BUILD_ROOT%{cactidir}/resource |
99 | install -p samba/samba.pl $RPM_BUILD_ROOT%{cactidir}/scripts | |
d4c4d92b | 100 | |
0b07446c ER |
101 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{cactidir}/resource/cacti_graph_template_dnsresponsetime.xml |
102 | install -p %{SOURCE5} $RPM_BUILD_ROOT%{cactidir}/scripts/dnsResponseTime.pl | |
d4c4d92b | 103 | |
0b07446c ER |
104 | cp -p cacti-linux-hddtemp-1.0/hddtemp.xml $RPM_BUILD_ROOT%{cactidir}/resource/script_queries |
105 | cp -p cacti-linux-hddtemp-1.0/hddtemp.php $RPM_BUILD_ROOT%{cactidir}/scripts | |
106 | cp -p cacti-linux-hddtemp-1.0/cacti_graph_template_linux_hddtemp*.xml $RPM_BUILD_ROOT%{cactidir}/resource | |
62f678a7 | 107 | |
9cd8f43f MWP |
108 | %clean |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
a693a551 | 111 | %post DNS_Server_Response_Time |
0b07446c | 112 | %cacti_import_template %{cactidir}/resource/cacti_graph_template_dnsresponsetime.xml |
a693a551 MWP |
113 | |
114 | %post Samba_locked_machine | |
0b07446c | 115 | %cacti_import_template %{cactidir}/resource/cacti_graph_template_snmp_samba.xml |
a693a551 MWP |
116 | |
117 | %post hddtemp | |
0b07446c | 118 | %cacti_import_template %{cactidir}/resource/cacti_graph_template_linux_hddtemp_disk_temperature*.xml |
f39be15f | 119 | |
62f678a7 MWP |
120 | %files DNS_Server_Response_Time |
121 | %defattr(644,root,root,755) | |
3ada5fa8 | 122 | %attr(755,root,root) %{cactidir}/scripts/dnsResponseTime.pl |
f7b21de7 | 123 | %{cactidir}/resource/cacti_graph_template_dnsresponsetime.xml |
d4c4d92b MWP |
124 | |
125 | %files Samba_locked_machine | |
126 | %defattr(644,root,root,755) | |
3ada5fa8 | 127 | %attr(755,root,root) %{cactidir}/scripts/samba.pl |
f7b21de7 | 128 | %{cactidir}/resource/cacti_graph_template_snmp_samba.xml |
d4c4d92b | 129 | |
3ada5fa8 | 130 | %files hddtemp |
d4c4d92b MWP |
131 | %defattr(644,root,root,755) |
132 | %doc cacti-linux-hddtemp-1.0/{CHANGELOG.txt,INSTALL.txt} | |
3ada5fa8 | 133 | %attr(755,root,root) %{cactidir}/scripts/hddtemp.php |
f7b21de7 | 134 | %{cactidir}/resource/cacti_graph_template_linux_hddtemp_disk_temperature*.xml |
3ada5fa8 | 135 | %{cactidir}/resource/script_queries/hddtemp.xml |