2 # - separate packages for templates from here
3 %define php_min_version 5.0.0
4 Summary: Add-ons for Cacti
5 Summary(pl.UTF-8): Dodatki do Cacti
10 Group: Applications/WWW
11 # Show locked Machines, Shares and Files from a Samba Server - http://forums.cacti.net/about7516.html
12 Source0: http://forums.cacti.net/files/samba.tar.gz
13 # Source0-md5: b8fc04a74b8ab297fd39fb6fb02d80f4
14 # DNS Server Response Time - http://forums.cacti.net/about6332.html
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
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
25 # Source7-md5: 9fa929206625d0824dff77168c85e6f8
26 URL: http://www.debianhelp.co.uk/cactitemplates.htm
27 BuildRequires: rpm-perlprov
28 BuildRequires: rpm-php-pearprov >= 4.4.2-11
29 BuildRequires: rpmbuild(macros) >= 1.554
31 Requires: cacti >= 0.8.7e-8
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 %define cactidir /usr/share/cacti
38 Templates and scripts for Cacti.
40 %description -l pl.UTF-8
41 Skrypty i szablony dla Cacti.
43 %package DNS_Server_Response_Time
44 Summary: Cacti - Measure the response times of multiple internal and external DNS Resolver
45 Summary(pl.UTF-8): Cacti - określanie czasu odpowiedzi wielu wewnętrznych lub zewnętrznych DNS-ów
46 Group: Applications/WWW
47 Requires: cacti >= 0.8.7e-8
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
52 delay between queries) during Cacti default sample interval of 300
53 seconds and the returns minimum, median, average and maximum response
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
63 %package Samba_locked_machine
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
66 Group: Applications/WWW
67 Requires: cacti >= 0.8.7e-8
69 %description Samba_locked_machine
70 Add-on for Cacti: graphs the locked machines, shares and files from a
71 Samba server in gauge mode.
73 %description Samba_locked_machine -l pl.UTF-8
74 Dodatek do cacti: wykresy zablokowanych stacji, udziałów i plików z
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
81 Requires: cacti >= 0.8.7e-8
82 Requires: php-common >= 4:%{php_min_version}
85 Template to query hddtemp deamon and graph disks temperature.
87 %description hddtemp -l pl.UTF-8
88 Wykresy temperatury dysków - dane pobierane z hddtemp.
95 rm -rf $RPM_BUILD_ROOT
96 install -d $RPM_BUILD_ROOT{%{cactidir}/cacti,%{cactidir}/scripts,%{cactidir}/resource/script_queries,%{cactidir}/resource/snmp_queries,%{cactidir}/resource/script_server,%{_bindir}}
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
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
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
109 rm -rf $RPM_BUILD_ROOT
111 %post DNS_Server_Response_Time
112 %cacti_import_template %{cactidir}/resource/cacti_graph_template_dnsresponsetime.xml
114 %post Samba_locked_machine
115 %cacti_import_template %{cactidir}/resource/cacti_graph_template_snmp_samba.xml
118 %cacti_import_template %{cactidir}/resource/cacti_graph_template_linux_hddtemp_disk_temperature*.xml
120 %files DNS_Server_Response_Time
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{cactidir}/scripts/dnsResponseTime.pl
123 %{cactidir}/resource/cacti_graph_template_dnsresponsetime.xml
125 %files Samba_locked_machine
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{cactidir}/scripts/samba.pl
128 %{cactidir}/resource/cacti_graph_template_snmp_samba.xml
131 %defattr(644,root,root,755)
132 %doc cacti-linux-hddtemp-1.0/{CHANGELOG.txt,INSTALL.txt}
133 %attr(755,root,root) %{cactidir}/scripts/hddtemp.php
134 %{cactidir}/resource/cacti_graph_template_linux_hddtemp_disk_temperature*.xml
135 %{cactidir}/resource/script_queries/hddtemp.xml