add rsync monitor code