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