Attention: It is not finished yet, please add if something new is added or something is wrong.
This is a short howto with which i was able to ditch Nagvis for Grafana Geomap
Requirements
-
Grafana, the Checkmk Datasource is not needed here (for now)
-
Checkmk with a working automation user, in the instructions I use the existing user “automation”
-
Hosts must have latitude and longitude defined as host labels
- A cloned “allhosts” view that is set to “public” and displays the above labels, preferably immediately after the host name. Reason: if you take this as the last column, Grafana does not manage to import it (apparently it is simply cut off after column 8 or i misconfigured something)
=>
installation
Log in to Grafana and install the Infinity Datasource:
-
Log in to the Grafana server
-
grafana-cli plugins install yesoreyeram-infinity-datasource
-
systemctl restart grafana-server.service
-
-
Sources:
Add datasource in Grafana:
Nothing else needs to be configured here (for now)
Add new dashboard
Name: Geomap (as you like)
Add visualization
It’s best to limit the map a little right away, otherwise it will be too large:
Configure datasource for visualization:
Type: CSV // Method: GET // Advanced Options: Delimiter: ; // Skip Empty Lines
URL according to the following model: http://check_mk/view.py?&output_format=csv_export&site=home&view_name=allhosts&_username=automation&_secret=********
In the table view it should now look something like this (provider only exists here because cme):
Add transformations
=>
Now you can select the coordinates on the right-hand side under “Map Layers”
Profit:
Add host status
- Add new transformation:
-
Add new layer on the right:
-
Scroll all the way down