[EMAIL PROTECTED] wrote on 06/09/2006 13:29:06: > I only ever use rsync in conjunction with sshd. > > short of generating errors with the check_tcp you could nmap the port > (might that generate more/less noise). > > or you could have a test that retreives a file from rsync, thereby > creating an access entry in the log, but no error. > > A more advanced solution would be to run lsof on the monitored host, and > see if rsync is running, is not zombie, and is listening on TCP 873. > > > On Wed, 6 Sep 2006, Hari Sekhon wrote: > > > Date: Wed, 06 Sep 2006 13:19:02 +0100 > > From: Hari Sekhon <[EMAIL PROTECTED]> > > To: [email protected] > > Subject: [Nagios-users] Rsync server test > > > > I am testing an Rsync server by doing > > > > ./check_tcp -H $HOSTADDRESS$ -p 873 > > > > > > but I have noticed that this causes the Rsync server to spew the > > following into the logs: > > > > rsyncd[10422]: rsync: writefd_unbuffered failed to write 74 bytes > > [receiver]: Broken pipe (32) > > rsyncd[10422]: rsync error: error in rsync protocol data stream (code > > 12) at io.c(1121) [receiver=2.6.8] > > > > > > every single time a check is performed. This is obviously because of the > > tcp connection and then abrupt disconnection. I'd really like to get rid > > of all this noise from the logs. > > > > Is there a better way of doing this? Does anybody else monitor a Rsync > > server with nagios and if so how?
The problem is coming from misusing the rsync protocol and the rsync daemon complaining about receiving garbage. You could for example rsync a working file, thus running an end to end test, or find the RFC for rsync and send it some kind of "quit and leave cleanly" command which will stop it from complaining. This message and any attachments (the "message") is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified. ********************************************************************************************** BNP Paribas Private Bank London Branch is authorised by CECEI & AMF and is regulated by the Financial Services Authority for the conduct of its investment business in the United Kingdom. BNP Paribas Securities Services London Branch is authorised by CECEI & AMF and is regulated by the Financial Services Authority for the conduct of its investment business in the United Kingdom. BNP Paribas Fund Services UK Limited is authorised and regulated by the Financial Services Authority ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
