grafana-checkmk-datasource icon indicating copy to clipboard operation
grafana-checkmk-datasource copied to clipboard

Datasource not offering any Site/Hosts/Services

Open Blogshot opened this issue 4 years ago • 4 comments

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?

Blogshot avatar Nov 04 '20 10:11 Blogshot

Administrator permissions are needed to read all hosts from WATO.

gurubert avatar Nov 27 '20 15:11 gurubert

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!

lucianpatian avatar Feb 22 '21 16:02 lucianpatian

@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.

Blogshot avatar Feb 22 '21 16:02 Blogshot

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!

lucianpatian avatar Feb 23 '21 06:02 lucianpatian

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.

BenediktSeidl avatar May 30 '23 12:05 BenediktSeidl