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

Datasource not offering any Site/Hosts/Services #36

Closed
Blogshot opened this issue Nov 4, 2020 · 5 comments
Closed

Datasource not offering any Site/Hosts/Services #36

Blogshot opened this issue Nov 4, 2020 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@Blogshot
Copy link

Blogshot commented Nov 4, 2020

Our installation:

  • CheckMK Enterprise in Version 1.6.0p11
  • Grafana v7.3.1
  • CheckMK Plugin v1.1.0

Grafana is running via docker:

docker run \
 -d \
 -p 8443:3000 \
 --name grafana \
 --restart always \
 --env "GF_AUTH_ANONYMOUS_ENABLED=true" \
 --env "GF_INSTALL_PLUGINS=https://github.com/tribe29/grafana-checkmk-datasource/archive/1.1.0.zip;checkmk-datasource" \
 --env "GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=checkmk-datasource" \
 -v /opt/grafana_data:/var/lib/grafana \
 grafana/grafana

When configuring the plugin, it is shown with a red "unsigned"-badge. Aside from that it accepts my credentials for CheckMK and shows Datasource is working when saving.

However, when creating a new panel there are no sites, hosts or services being offered after selecting "CheckMK" as datasource. The CheckMK user for the login had access to around 8-9 machines before switching to an automation password.

Update: This is a permission issue. When using an administrator account, the Hosts become selectable. There is no mention of any required permissions as far as I can see. What permissions are needed?

@gurubert
Copy link

gurubert commented Nov 27, 2020

Administrator permissions are needed to read all hosts from WATO.

@lucianpatian
Copy link

how do you send the URL and USER/PASS values as env_vars? I'm trying to add these using helm deployment, the installation of the plugin works but i'm having trouble in assigning the 3 needed values as env_vars.

thanks!

@Blogshot
Copy link
Author

@lucianpatian I feel like your question should be in an issue on its own.

Personally, I didn't give USER/PASS via env, but configured them once. The volume takes ensures my configuration stays persistent.

@lucianpatian
Copy link

i actually didn't open an issue because i was just asking for an advice and found this as closest to it. basically i'm trying to automate the entire plugin installation via helm charts, i was able to install it but i'm having trouble in sending the URL and API credentials as env_vars.

cheers!

@godspeed-you godspeed-you added the help wanted Extra attention is needed label Apr 13, 2022
@BenediktSeidl
Copy link
Contributor

We no longer support using Checkmk 1.6.0 with this plugin.

We still have some troubles regarding permissions, and we use #100 to track them, we will probably update the documentation to mention which permissions are required for the Grafana user in Checkmk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants