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

Checking multiple URIs #184

Open
tvdstaaij opened this issue Jul 17, 2020 · 0 comments
Open

Checking multiple URIs #184

tvdstaaij opened this issue Jul 17, 2020 · 0 comments

Comments

@tvdstaaij
Copy link

I have a use case for this plugin where I need each agent to check multiple unique vhosts depending on their configuration. For example, server A needs an http check for https://foo.org and https://bar.com, and server B for https://orange.fruit, https://banana.fruit and https://mango.fruit. In the output I want to see which vhosts pass and fail.

Currently I have the hosts templated as {{ .annotations.check_http_uris }} and wrapped the check in a parallel invocation, which is fairly straightfoward and generally works, but it tends to break with system updates because of the LD_LIBRARY_PATH Sensu passes for Ruby.

Of course it could be done with a custom script, but this has the disadvantage of either (a) having to cram much more in a single command than what's comfortable or (b) having to install a script file on all client systems, which is horrible if the systems can't be updated at the same time.

Could multiple URI support be a good feature for this plugin? Or is there a better way to approach this situation?

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