https://github.com/josef-friedrich/rsync-watch
A Python script to monitor the execution of a rsync task
https://github.com/josef-friedrich/rsync-watch
nsca python rsync
Last synced: 2 months ago
JSON representation
A Python script to monitor the execution of a rsync task
- Host: GitHub
- URL: https://github.com/josef-friedrich/rsync-watch
- Owner: Josef-Friedrich
- License: gpl-3.0
- Created: 2019-03-17T08:25:39.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-04-20T13:08:56.000Z (3 months ago)
- Last Synced: 2025-05-13T00:50:01.193Z (2 months ago)
- Topics: nsca, python, rsync
- Language: Python
- Homepage: https://pypi.org/project/rsync-watch
- Size: 486 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
.. image:: http://img.shields.io/pypi/v/rsync-watch.svg
:target: https://pypi.org/project/rsync-watch
:alt: This package on the Python Package Index.. image:: https://github.com/Josef-Friedrich/rsync-watch/actions/workflows/tests.yml/badge.svg
:target: https://github.com/Josef-Friedrich/rsync-watch/actions/workflows/tests.yml
:alt: Tests.. image:: https://readthedocs.org/projects/rsync-watch/badge/?version=latest
:target: https://rsync-watch.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Statusrsync-watch.py
==============A Python script to monitor the execution of a rsync task.
Features
--------- The script ``rsync-watch.py`` parses the ``rsync --stats`` output and
sends this statistics to a monitoring system like Nagios or Icinga
using the NSCA protocol.- The script ``rsync-watch.py`` can be configured to perform various
checks before starting the rsync process.::
usage: rsync-watch.py [-h] [--host-name HOST_NAME] [--dest-user-group USER_GROUP_NAME] [--exclude EXCLUDE]
[--ignore-exceptions IGNORE_EXCEPTIONS] [--rsync-args RSYNC_ARGS] [--action-check-failed {exception,skip}]
[--check-file FILE_PATH] [--check-ping DESTINATION] [--check-ssh-login SSH_LOGIN] [-v]
src destA Python script to monitor the execution of a rsync task.
positional arguments:
src The source ([[USER@]HOST:]SRC)
dest The destination ([[USER@]HOST:]DEST)options:
-h, --help show this help message and exit
--host-name HOST_NAME
The hostname to submit over NSCA to the monitoring.
--dest-user-group USER_GROUP_NAME
Both the user name and the group name of the destination will be set to this name.
--exclude EXCLUDE See the documention of --exclude in the rsync manual.
--ignore-exceptions IGNORE_EXCEPTIONS
A comma-separated list of exit codes that are not null and should be ignored. 24 is ignored by default.
--rsync-args RSYNC_ARGS
Rsync CLI arguments. Insert some rsync command line arguments. Wrap all arguments in one string, for example: --rsync-
args '--exclude "this folder"'
-v, --version show program's version number and exitchecks:
Perform different checks before running the rsync task.--action-check-failed {exception,skip}
Select action what to do when a check failed.
--check-file FILE_PATH
Check if a file exists on the local machine.
--check-ping DESTINATION
Check if a remote host is reachable by pinging. DESTINATION can a IP address or a host name or a full qualified host
name.
--check-ssh-login SSH_LOGIN
Check if a remote host is reachable over the network by SSHing into it. SSH_LOGIN: “[email protected]” or
“[email protected]” or “example.com”.