Author: glen                         Date: Mon Jul 27 00:04:09 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

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

---- Diffs:

================================================================
Index: 
packages/nagios-plugin-check_mailman_qfiles/nagios-plugin-check_mailman_qfiles.spec
diff -u /dev/null 
packages/nagios-plugin-check_mailman_qfiles/nagios-plugin-check_mailman_qfiles.spec:1.1
--- /dev/null   Mon Jul 27 02:04:10 2009
+++ 
packages/nagios-plugin-check_mailman_qfiles/nagios-plugin-check_mailman_qfiles.spec
 Mon Jul 27 02:04:04 2009
@@ -0,0 +1,59 @@
+# $Revision$, $Date$
+%define                plugin  check_mailman_qfiles
+%include       /usr/lib/rpm/macros.perl
+Summary:       Nagios plugin to check Mailman qfiles
+Name:          nagios-plugin-%{plugin}
+Version:       0.1
+Release:       0.1
+License:       GPL
+Group:         Networking
+# Source0Download: 
http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=1347&cf_id=24
+Source0:       %{plugin}.pl
+URL:           
http://exchange.nagios.org/directory/Plugins/Email-and-Groupware/Mailman/check_mailman_qfiles/details
+BuildRequires: rpm-perlprov >= 4.1-13
+Requires:      nagios-core
+Requires:      nagios-plugins-libs
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _sysconfdir     /etc/nagios/plugins
+%define                plugindir       %{_prefix}/lib/nagios/plugins
+
+%description
+Checks age and number of mailman qfiles to keep the mailing lists flowing and
+responsive.
+
+Simple Perl script to check the various Mailman qfiles directories for old,
+unprocessed items and report on freshness.
+
+%prep
+%setup -qcT
+cat > nagios.cfg <<'EOF'
+define command {
+       command_name    %{plugin}
+       command_line    %{plugindir}/%{plugin} -H $HOSTADDRESS$ -w 5 -c 20
+}
+EOF
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
+install %{SOURCE0} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
+cp -a nagios.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%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  2009/07/27 00:04:04  glen
+- new
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to