Cause: Enhanced Security
On Opsview version 6.7.5 we have added a security feature where it has to work in an entirely new way, but slower, rsync has been removed as it needs NOPASSWD sudo access, whereas now it uses built-in ansible functionality, which takes longer to complete, therefore if you need to copy over just a specific folder you can use the below command
If you need to rsync a folder when you create/modify your plugin, simply use the below command:
rsync -avzh /opt/opsview/monitoringscripts/plugins root@<x.x.x.x>:/opt/opsview/monitoringscripts/plugins
x.x.x.x will need to be replaced with your opsview IP address as per your host respectively.
-h is outputs numbers in a human-readable format
-v is verbose
-z is to enable compression
-a indicates archive mode. -a option does the following,
- Recursive mode
- Preserves symbolic links
- Preserves permissions
- Preserves timestamp
- Preserves owner and group
we require this, as opsview needs to identify them.