1 %define plugin memcached
2 Summary: Memcached Cacti Template
3 Name: cacti-template-%{plugin}
7 Group: Applications/WWW
8 Source0: http://content.dealnews.com/dealnews/developers/cacti-%{plugin}-%{version}.tar.gz
9 # Source0-md5: 1febadae299aff606860da60ef3bd80e
10 URL: http://dealnews.com/developers/cacti/memcached.html
12 BuildRequires: rpmbuild(macros) >= 1.554
13 Requires: cacti >= 0.8.7e-8
14 Requires: python-memcached
15 Obsoletes: cacti-plugin-memcached
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define cactidir /usr/share/cacti
20 %define resourcedir %{cactidir}/resource
21 %define scriptsdir %{cactidir}/scripts
24 This template provides a host template and associated graphs for
25 graphing the output of the memcached stats command on individual
26 memcached installations.
28 Graphs are provided for Bytes Used with total capacity, Cache Hits and
29 Misses per second, Current Connections, Items Cached, Inbound and
30 Outbound Network Traffic (bits per second), and Requests per Second
31 for both the get and set commands.
34 %setup -q -n cacti-%{plugin}-%{version}
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT{%{resourcedir},%{scriptsdir}}
40 cp -p *.xml $RPM_BUILD_ROOT%{resourcedir}
41 install -p *.py $RPM_BUILD_ROOT%{scriptsdir}
44 %cacti_import_template %{resourcedir}/cacti_memcached_host_template.xml
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
52 %attr(755,root,root) %{scriptsdir}/memcached.py
53 %{resourcedir}/cacti_memcached_host_template.xml