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

Add parameter sensuclassic::check::check_name #16

Merged
merged 1 commit into from
Aug 19, 2019

Conversation

jovrum
Copy link

@jovrum jovrum commented Aug 15, 2019

Enables definition of multiple checks with the same name; currently the check name is always derived from the check resource name, but this precludes defining multiple checks with the same name on the same host. This is useful when organizing checks into proxy clients, and is maybe useful for general server-side checks as well, where different clients could get a different check configuration based on the subscription, but with the same name. What do you think?

When the new check_name parameter is omitted, it defaults to the same behavior as before.

I am currently using this patch in production on my Sensu deployment, but I haven't added any automated tests to the codebase - please advise if/where it would be sensible.

Enables definition of multiple checks with the same name, useful when
checks are organized under proxy clients.
@treydock
Copy link
Collaborator

Opened #19 that is this PR plus also making sensuclassic_check also have check_name for sake of consistency.

@jovrum
Copy link
Author

jovrum commented Aug 19, 2019

@treydock ah, I missed that completely, and I see you also added tests. Thanks a lot! Should we just close this one in favor of #19?

@ghoneycutt ghoneycutt merged commit 57ecfcf into sensu:master Aug 19, 2019
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

Successfully merging this pull request may close these issues.

3 participants