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

Disallow grafana plugin on the cse #277

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/backend/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ export default class RestApiBackend implements Backend {
'The data source specified the Checkmk Raw Edition, but a Checkmk commercial edition was detected. Some functionality may not be available. Choose commercial editions in the data source settings to enable all features.'
);
}
if (result.data.edition === 'cse') {
throw new Error(
'The data source specifed is Checkmk Cloud (Saas). The grafana plugin is currently not supported for that edition.'
);
}
// The REST API would be ok with other users, but the autocompleter are not
if (!(await this.isAutomationUser(this.datasource.getUsername()))) {
throw new Error('This data source must authenticate against Checkmk using an automation user.');
Expand Down
Loading