monitoring-plugins-rsync/monitoring-plugins-rsync-timeout.patch
Lars Vogdt cabf39cf52 - renamed the package to monitoring-plugins-rsync
- added monitoring-plugins-rsync-hidden_modules.patch to allow hidden
  rsync modules to be tested
- use nagios-rpm-macros in specfile
- Fix license: it's GPL 2 or newer

- add a patch to use the timeouts present in rsync itself
  ( monitoring-plugins-rsync-timeout.patch ) 

- licenses package is no more and upstream wants GPLv3, so adding
  COPYING

- require licenses package (solves bnc #449756)

- update to 1.02:
  + Kill rsync process on ALRM timeouts 
    (Avoids leaving stale rsync processes behind) 
  + More verbose Rsync errors 
  + Commas in the password field should work 

- initial version 1.01

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins-rsync?expand=0&rev=2
2014-07-30 10:16:37 +00:00

12 lines
473 B
Diff

--- 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: $!");