Hello community,
here is the log from the commit of package nagios-plugins-rsync for
openSUSE:Factory
checked in at Mon Sep 26 17:06:40 CEST 2011.
--------
--- nagios-plugins-rsync/nagios-plugins-rsync.changes 2011-04-01
07:25:22.000000000 +0200
+++
/mounts/work_src_done/STABLE/nagios-plugins-rsync/nagios-plugins-rsync.changes
2011-05-03 12:45:43.000000000 +0200
@@ -1,0 +2,6 @@
+Tue May 3 10:44:06 UTC 2011 - [email protected]
+
+- add a patch to use the timeouts present in rsync itself
+ ( nagios-plugins-rsync-timeout.patch )
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
New:
----
nagios-plugins-rsync-timeout.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ nagios-plugins-rsync.spec ++++++
--- /var/tmp/diff_new_pack.fWhGsY/_old 2011-09-26 17:06:10.000000000 +0200
+++ /var/tmp/diff_new_pack.fWhGsY/_new 2011-09-26 17:06:10.000000000 +0200
@@ -21,12 +21,13 @@
Name: nagios-plugins-rsync
Summary: Nagios plugin for checking rsync servers availability
Version: 1.02
-Release: 12
-Url:
http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2094.html;d=1
+Release: 14
+Url: https://www.monitoringexchange.org/p/817
License: GPLv3
Group: System/Monitoring
Source0: check_rsync
Source1: COPYING
+Patch1: nagios-plugins-rsync-timeout.patch
%if 0%{?suse_version} > 1010
# nagios can execute the script with embedded perl
Recommends: perl
@@ -52,12 +53,15 @@
Thomas Guyot-Sionnest <[email protected]>
%prep
+%setup -q -T -c %name
+install -m644 %{SOURCE0} .
+%patch1 -p0
%build
%install
mkdir -p %buildroot/%{libexecdir}
-sed -e "s|/usr/local/nagios/libexec|%{libexecdir}|g" %{SOURCE0} >
%buildroot/%{libexecdir}/check_rsync
+sed -e "s|/usr/local/nagios/libexec|%{libexecdir}|g" check_rsync >
%buildroot/%{libexecdir}/check_rsync
chmod +x %buildroot/%{libexecdir}/check_rsync
%clean
++++++ nagios-plugins-rsync-timeout.patch ++++++
--- check_rsync.orig 2011-05-03 12:15:11.465040210 +0200
+++ check_rsync 2011-05-03 12:15:46.924579509 +0200
@@ -101,7 +101,7 @@
alarm($TIMEOUT);
# Get a list of modules to see if rsync is up
-my $command = "/usr/bin/rsync --port=$port $source";
+my $command = "/usr/bin/rsync --timeout=$TIMEOUT --contimeout=$TIMEOUT
--port=$port $source";
# Workaround to kill stale rsync processes
$cpid = open(RSYNC, "$command|") or report_error("Unable to execute rsync:
$!");
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]