]>
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 | |
9cd8f43f | 16 | # Cacti Poller Statistics - http://forums.cacti.net/about18057-0-asc-0.html |
d4c4d92b MWP |
17 | Source1: http://forums.cacti.net/files/ss_poller.php.gz |
18 | # Source1-md5: 5de3f1cfeb5803a9c76a6e1472dd2478 | |
19 | Source2: http://forums.cacti.net/files/cacti_host_template_local_cacti_polling_host_171.xml | |
20 | # Source2-md5: 3f54a6579f06745426163685facac558 | |
f39be15f | 21 | # Adding template from command line - http://forums.cacti.net/about8827.html |
62f678a7 | 22 | # DNS Server Response Time - http://forums.cacti.net/about6332.html |
d4c4d92b MWP |
23 | Source4: http://forums.cacti.net/files/cacti_graph_template_dnsresponsetime_204__fixed_timeout_and_interval_161.xml |
24 | # Source4-md5: abf46930508377099b37d696648ce7de | |
25 | Source5: http://forums.cacti.net/files/dnsresponsetimeloop_115.txt | |
26 | # Source5-md5: 0844f7d58ff77904416dee5b120c31cf | |
27 | # hddtemp - http://forums.cacti.net/about15020.html , http://forums.cacti.net/about15743.html | |
28 | #URL: http://www.pawelko.net/Cacti/3-Hddtemp-Template-For-Cacti | |
29 | Source6: http://www.pawelko.net/xmedia/cacti/cacti-linux-hddtemp-1.0.tar.gz | |
30 | # Source6-md5: d08898b43978ccbd863076c4b3124987 | |
ec6417d1 MWP |
31 | # MySQL Host Template - http://www.faemalia.net/mysqlUtils/ , http://forums.cacti.net/viewtopic.php?t=11010 |
32 | Source7: http://www.faemalia.net/mysqlUtils/teMySQLcacti-20060810.tar.gz | |
5c0a212f | 33 | # Source7-md5: 9fa929206625d0824dff77168c85e6f8 |
9cd8f43f MWP |
34 | URL: http://www.debianhelp.co.uk/cactitemplates.htm |
35 | BuildRequires: rpm-perlprov | |
0b07446c ER |
36 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
37 | BuildRequires: rpmbuild(macros) >= 1.554 | |
5c0a212f | 38 | BuildRequires: unzip |
0b07446c | 39 | Requires: cacti >= 0.8.7e-8 |
9cd8f43f MWP |
40 | BuildArch: noarch |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
42 | ||
3ada5fa8 | 43 | %define cactidir /usr/share/cacti |
9cd8f43f MWP |
44 | |
45 | %description | |
46 | Templates and scripts for Cacti. | |
47 | ||
48 | %description -l pl.UTF-8 | |
87e8b535 | 49 | Skrypty i szablony dla Cacti. |
9cd8f43f MWP |
50 | |
51 | %package Cacti_Poller_Statistics | |
52 | Summary: Statistics for Cacti Poller | |
53 | Summary(pl.UTF-8): Statystyki działania Pollera Cacti | |
54 | Group: Applications/WWW | |
0b07446c ER |
55 | Requires: cacti >= 0.8.7e-8 |
56 | Requires: php-common >= 4:%{php_min_version} | |
9cd8f43f MWP |
57 | |
58 | %description Cacti_Poller_Statistics | |
59 | Statistics for Cacti Poller, works with localhost only. | |
60 | ||
61 | %description Cacti_Poller_Statistics -l pl.UTF-8 | |
87e8b535 | 62 | Statystyki działania Pollera Cacti; działają tylko lokalnie. |
9cd8f43f | 63 | |
62f678a7 MWP |
64 | %package DNS_Server_Response_Time |
65 | Summary: Cacti - Measure the response times of multiple internal and external DNS Resolver | |
87e8b535 | 66 | Summary(pl.UTF-8): Cacti - określanie czasu odpowiedzi wielu wewnętrznych lub zewnętrznych DNS-ów |
62f678a7 | 67 | Group: Applications/WWW |
0b07446c | 68 | Requires: cacti >= 0.8.7e-8 |
62f678a7 MWP |
69 | |
70 | %description DNS_Server_Response_Time | |
71 | Measure the response times of multiple internal and external DNS | |
72 | Resolvers. The Perl script launches queries repeatedly (after holdoff | |
87e8b535 | 73 | delay between queries) during Cacti default sample interval of 300 |
62f678a7 MWP |
74 | seconds and the returns minimum, median, average and maximum response |
75 | times. | |
f39be15f | 76 | |
87e8b535 JB |
77 | %description DNS_Server_Response_Time -l pl.UTF-8 |
78 | Określanie czasu odpowiedzi wielu wewnętrznych lub zewnętrznych | |
79 | DNS-ów. Skrypt w perlu powtarza zapytania (z określonym odstępem | |
80 | między nimi) w czasie domyślnych 300-sekundowych interwałów czasowych | |
81 | Cacti i zwraca czasy odpowiedzi minimalne, średnie, maksymalne oraz | |
82 | ich mediany. | |
83 | ||
d4c4d92b | 84 | %package Samba_locked_machine |
87e8b535 JB |
85 | Summary: Graphs the locked machines, shares and files from a Samba server |
86 | Summary(pl.UTF-8): Wykresy zablokowanych stacji, udziałów i plików z serwera Samby | |
d4c4d92b | 87 | Group: Applications/WWW |
0b07446c | 88 | Requires: cacti >= 0.8.7e-8 |
d4c4d92b MWP |
89 | |
90 | %description Samba_locked_machine | |
87e8b535 JB |
91 | Add-on for Cacti: graphs the locked machines, shares and files from a |
92 | Samba server in gauge mode. | |
d4c4d92b MWP |
93 | |
94 | %description Samba_locked_machine -l pl.UTF-8 | |
87e8b535 JB |
95 | Dodatek do cacti: wykresy zablokowanych stacji, udziałów i plików z |
96 | serwera Samby. | |
d4c4d92b MWP |
97 | |
98 | %package hddtemp | |
99 | Summary: Template to query hddtemp deamon and graph disks temperature | |
100 | Summary(pl.UTF-8): Wykresy temperatury dysków - dane pobierane z hddtemp | |
101 | Group: Applications/WWW | |
0b07446c ER |
102 | Requires: cacti >= 0.8.7e-8 |
103 | Requires: php-common >= 4:%{php_min_version} | |
d4c4d92b MWP |
104 | |
105 | %description hddtemp | |
106 | Template to query hddtemp deamon and graph disks temperature. | |
107 | ||
108 | %description hddtemp -l pl.UTF-8 | |
109 | Wykresy temperatury dysków - dane pobierane z hddtemp. | |
110 | ||
9cd8f43f | 111 | %prep |
5c0a212f | 112 | %setup -q -c -a6 |
b96be476 | 113 | gzip -dNc %{SOURCE1} > ss_poller.php |
3ada5fa8 | 114 | |
0b07446c | 115 | %undos -f php,inc |
9cd8f43f MWP |
116 | |
117 | %install | |
118 | rm -rf $RPM_BUILD_ROOT | |
3ada5fa8 | 119 | install -d $RPM_BUILD_ROOT{%{cactidir}/cacti,%{cactidir}/scripts,%{cactidir}/resource/script_queries,%{cactidir}/resource/snmp_queries,%{cactidir}/resource/script_server,%{_bindir}} |
9cd8f43f | 120 | |
0b07446c ER |
121 | cp -p samba/cacti_graph_template_snmp_samba.xml $RPM_BUILD_ROOT%{cactidir}/resource |
122 | install -p samba/samba.pl $RPM_BUILD_ROOT%{cactidir}/scripts | |
d4c4d92b | 123 | |
0b07446c ER |
124 | install -p ss_poller.php $RPM_BUILD_ROOT%{cactidir}/scripts/ss_poller.php |
125 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{cactidir}/resource/cacti_host_template_local_cacti_polling_host.xml | |
d4c4d92b | 126 | |
0b07446c ER |
127 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{cactidir}/resource/cacti_graph_template_dnsresponsetime.xml |
128 | install -p %{SOURCE5} $RPM_BUILD_ROOT%{cactidir}/scripts/dnsResponseTime.pl | |
d4c4d92b | 129 | |
0b07446c ER |
130 | cp -p cacti-linux-hddtemp-1.0/hddtemp.xml $RPM_BUILD_ROOT%{cactidir}/resource/script_queries |
131 | cp -p cacti-linux-hddtemp-1.0/hddtemp.php $RPM_BUILD_ROOT%{cactidir}/scripts | |
132 | cp -p cacti-linux-hddtemp-1.0/cacti_graph_template_linux_hddtemp*.xml $RPM_BUILD_ROOT%{cactidir}/resource | |
62f678a7 | 133 | |
9cd8f43f MWP |
134 | %clean |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
3ada5fa8 | 137 | %post Cacti_Poller_Statistics |
0b07446c | 138 | %cacti_import_template %{cactidir}/resource/cacti_host_template_local_cacti_polling_host.xml |
a693a551 MWP |
139 | |
140 | %post DNS_Server_Response_Time | |
0b07446c | 141 | %cacti_import_template %{cactidir}/resource/cacti_graph_template_dnsresponsetime.xml |
a693a551 MWP |
142 | |
143 | %post Samba_locked_machine | |
0b07446c | 144 | %cacti_import_template %{cactidir}/resource/cacti_graph_template_snmp_samba.xml |
a693a551 MWP |
145 | |
146 | %post hddtemp | |
0b07446c | 147 | %cacti_import_template %{cactidir}/resource/cacti_graph_template_linux_hddtemp_disk_temperature*.xml |
f39be15f | 148 | |
9cd8f43f MWP |
149 | %files Cacti_Poller_Statistics |
150 | %defattr(644,root,root,755) | |
3ada5fa8 | 151 | %attr(755,root,root) %{cactidir}/scripts/ss_poller.php |
f7b21de7 | 152 | %{cactidir}/resource/cacti_host_template_local_cacti_polling_host.xml |
f39be15f | 153 | |
62f678a7 MWP |
154 | %files DNS_Server_Response_Time |
155 | %defattr(644,root,root,755) | |
3ada5fa8 | 156 | %attr(755,root,root) %{cactidir}/scripts/dnsResponseTime.pl |
f7b21de7 | 157 | %{cactidir}/resource/cacti_graph_template_dnsresponsetime.xml |
d4c4d92b MWP |
158 | |
159 | %files Samba_locked_machine | |
160 | %defattr(644,root,root,755) | |
3ada5fa8 | 161 | %attr(755,root,root) %{cactidir}/scripts/samba.pl |
f7b21de7 | 162 | %{cactidir}/resource/cacti_graph_template_snmp_samba.xml |
d4c4d92b | 163 | |
3ada5fa8 | 164 | %files hddtemp |
d4c4d92b MWP |
165 | %defattr(644,root,root,755) |
166 | %doc cacti-linux-hddtemp-1.0/{CHANGELOG.txt,INSTALL.txt} | |
3ada5fa8 | 167 | %attr(755,root,root) %{cactidir}/scripts/hddtemp.php |
f7b21de7 | 168 | %{cactidir}/resource/cacti_graph_template_linux_hddtemp_disk_temperature*.xml |
3ada5fa8 | 169 | %{cactidir}/resource/script_queries/hddtemp.xml |