<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><div id="yiv2119037701">Sorry for just sending you an email. I want to setup mirmon for our
sanesecurity mirrors which use rsync. Found your script with google and used it as probe for mirmon-1.38.<br><br>I using the script for probe:<br><br><pre>#!/usr/bin/env perl<br># $Id: probe-mirmon,v 1.3 2009/07/05 22:39:33 karl Exp $<br># public domain.<br># probe rsync url's for mirmon; use wget for anything else.<br># from description at http://people.cs.uu.nl/henkp/mirmon.<br><br>exit (&amp;main ());<br><br>sub main<br>{<br>  my ($timeout,$url) = @ARGV;<br>  my $ret;<br><br>  if ($url =~ m,^rsync://,) {<br>    $ret = &amp;handle_rsync ($timeout, $url);<br>  } else {<br>    $ret = system qq(wget -q -O - -t 1 -T $timeout $url);<br>  }<br>  return $ret;<br>}<br><br><br>sub handle_rsync<br>{<br>  my ($timeout,$url) = @_;<br>  <br>  my $tmpdir = "rsync-tmp";<br>  -d $tmpdir || mkdir ($tmpdir, 0700);<br>  <br>  (my $file = $url) =~ s/\W/_/g;  # translate<br> all non-letters to _<br>  my $local = "$tmpdir/$file";<br>  my $ret = system<br>            
 qq(/usr/local/bin/rsync --no-motd --timeout $timeout $url $local);<br><br>  @ARGV = ($local);  # don't care about our args any more.<br>  print &lt;&gt;;          # let perl autoprint<br><br>  return $ret;<br>}<br></pre>This works very well if i start it with command line like probe-mirmon 300 rsync://odin.kozstyle.org/sanesecurity/TIMESTAMP.<br><br>I use the following (ver basic for testing) mirmon.conf<br><br>project_name SS<br>project_url http://www.sanesecurity.com<br>list_style plain<br>mirror_list mirror_list<br>web_page ss.html<br>icons icons<br>state mirmonstate<br>countries countries.list<br>probe /root/mirmon-1.38/probe-mirmon %TIMEOUT% %URL%TIMESTAMP<br><br>mirrorlist<br><br>de rsync://odin.kozstyle.org/sanesecurity/<br><br>Using mirmon -v -get all, i encounter the following error<br><br>*** strange url :
 'rsync://odin.kozstyle.org/sanesecurity/'<br>mirmon: wrote empty state file; keeping previous version<br>Use of uninitialized value in printf at ./mirmon line 909, &lt;LST&gt; line 2.<br><br>I
am not able to see any connection in odins rsync log! When i use the
probe-mirmon (replacing the variables) directly it will download the
TIMESTAMP<br><br>Do you have an idea? Did you got the same error?<br><br>I have double checked permissions and path names.<br><br>BR<br><br>Roland<br></div></td></tr></table><br>