Author: glen                         Date: Tue May 29 10:58:54 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/nagios-plugin-check_solr:
   check_solr.cfg (NONE -> 1.1)  (NEW), nagios-plugin-check_solr.spec (NONE -> 
1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/nagios-plugin-check_solr/check_solr.cfg
diff -u /dev/null packages/nagios-plugin-check_solr/check_solr.cfg:1.1
--- /dev/null   Tue May 29 12:58:54 2012
+++ packages/nagios-plugin-check_solr/check_solr.cfg    Tue May 29 12:58:48 2012
@@ -0,0 +1,20 @@
+# Usage:
+# check_solr!-P 8080 -C cluster -M ping
+define command {
+       command_name    check_solr
+       command_line    /usr/lib/nagios/plugins/check_solr -H $HOSTADDRESS$ 
$ARG1$
+}
+
+define service {
+       use                     generic-service
+       name                    solr
+       service_description     solr
+       register                0
+
+       normal_check_interval   5
+       retry_check_interval    1
+
+       notification_interval   10
+
+       check_command           check_solr
+}

================================================================
Index: packages/nagios-plugin-check_solr/nagios-plugin-check_solr.spec
diff -u /dev/null 
packages/nagios-plugin-check_solr/nagios-plugin-check_solr.spec:1.1
--- /dev/null   Tue May 29 12:58:54 2012
+++ packages/nagios-plugin-check_solr/nagios-plugin-check_solr.spec     Tue May 
29 12:58:48 2012
@@ -0,0 +1,52 @@
+# $Revision$, $Date$
+%define                plugin  check_solr
+Summary:       This is a nagios plugin that checks Apache Solr host
+Name:          nagios-plugin-%{plugin}
+Version:       2010.10.11
+Release:       1
+License:       Open Source (other)
+Group:         Networking
+Source0:       
http://nagios-plugins-shamil.googlecode.com/svn/trunk/by_me/check_solr.sh
+# Source0-md5: c53cf19008597b4d9a352ae28ad7127b
+Source1:       %{plugin}.cfg
+URL:           https://code.google.com/p/nagios-plugins-shamil/
+Requires:      curl
+Requires:      which
+Requires:      xmlstarlet
+Requires:      nagios-common
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _sysconfdir     /etc/nagios/plugins
+%define                plugindir       %{_prefix}/lib/nagios/plugins
+
+%description
+The plugin is capable of check couple aspects of Apache Solr server.
+Supported checks are ping, replication and number of documents. Check
+usage for info.
+
+%prep
+%setup -qcT
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
+install -p %{SOURCE0} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) 
%{_sysconfdir}/%{plugin}.cfg
+%attr(755,root,root) %{plugindir}/%{plugin}
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[email protected]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/05/29 10:58:48  glen
+- new
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to