Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

role:monitoring_plugins: Make it faster when deploying MP from source #161

Open
markuslf opened this issue Jun 24, 2024 · 0 comments
Open

Comments

@markuslf
Copy link
Member

markuslf commented Jun 24, 2024

Not idempotent, but much faster would be to use a pure shell command on localhost and do something like this (pseudo-code):

rsync --archive --rsync-path='sudo rsync' path/to/lib/*.py $target:/usr/lib64/nagios/plugins/lib/
for plugin in plugins:
    rsync --archive --rsync-path='sudo rsync' path/to/monitoring-plugins/check-plugins/$plugin/$plugin $target:/usr/lib64/nagios/plugins/
}
sudo /usr/sbin/restorecon -r /usr/lib64/nagios/plugins

Would just run a few seconds or so (instead of up to 500 seconds as of now). What do you think?

@markuslf markuslf changed the title role:linuxfabrik.lfops.monitoring_plugins: Make it faster when deploying MP from source role:monitoring_plugins: Make it faster when deploying MP from source Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant