[packages/percona-monitoring-plugins] add apache template
glen
glen at pld-linux.org
Sun Mar 23 10:36:01 CET 2014
commit db0a4661dfdd322f551c7503514654a3ac5f64f2
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Mar 23 11:35:46 2014 +0200
add apache template
percona-monitoring-plugins.spec | 25 +++++++++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)
---
diff --git a/percona-monitoring-plugins.spec b/percona-monitoring-plugins.spec
index dfa8b85..a8a91f7 100644
--- a/percona-monitoring-plugins.spec
+++ b/percona-monitoring-plugins.spec
@@ -1,7 +1,6 @@
# TODO
# - cacti: package other templates:
# http://www.percona.com/doc/percona-monitoring-plugins/1.1/#templates-for-cacti
-# - Apache
# - JMX
# - MongoDB
# - Nginx
@@ -12,7 +11,7 @@
Summary: MySQL cacti templates
Name: percona-monitoring-plugins
Version: 1.1.3
-Release: 0.2
+Release: 0.4
License: GPL v2
Group: Applications/WWW
Source0: http://www.percona.com/redir/downloads/percona-monitoring-plugins/LATEST/%{name}-%{version}.tar.gz
@@ -37,6 +36,17 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
This is a set of templates for monitoring MySQL servers with Cacti.
+%package -n cacti-template-apache
+Summary: Apache Stats
+Group: Applications/WWW
+Requires: %{name} = %{version}-%{release}
+Requires: nc
+# mark obsoletes so ftp admin knows to remove old src.rpm once this package lands
+Obsoletes: cacti-template-apache < 1.1
+
+%description -n cacti-template-apache
+Apache Stats for Cacti (PHP Script Server Version).
+
%package -n cacti-template-memcached
Summary: Memcached Cacti Template
Group: Applications/WWW
@@ -113,6 +123,13 @@ cp -p templates/cacti_host_template_percona_redis_server_ht.xml \
cp -p templates/cacti_host_template_percona_memcached_server_ht.xml \
$RPM_BUILD_ROOT%{resourcedir}
+# apache template
+cp -p templates/cacti_host_template_percona_apache_server_ht.xml \
+ $RPM_BUILD_ROOT%{resourcedir}
+
+%post -n cacti-template-apache
+%cacti_import_template %{resourcedir}/cacti_host_template_percona_apache_server_ht.xml
+
%post -n cacti-template-memcached
%cacti_import_template %{resourcedir}/cacti_host_template_percona_memcached_server_ht.xml
@@ -136,6 +153,10 @@ rm -rf $RPM_BUILD_ROOT
%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ss_get_by_ssh.php
%attr(755,root,root) %{scriptsdir}/ss_get_by_ssh.php
+%files -n cacti-template-apache
+%defattr(644,root,root,755)
+%{resourcedir}/cacti_host_template_percona_apache_server_ht.xml
+
%files -n cacti-template-memcached
%defattr(644,root,root,755)
%{resourcedir}/cacti_host_template_percona_memcached_server_ht.xml
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/percona-monitoring-plugins.git/commitdiff/ae6f2ee852bcedb4ecf445bce4c3f83de142262a
More information about the pld-cvs-commit
mailing list