Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info

This article overviews on how to add Geo coordinates from Checkmk into Nagvis maps.

Status
colourGreen
titleLAST TESTED ON CHECKMK 2.2.0P1


Panel
borderColorblack
bgColor#f8f8f8
titleTable of Contents

Table of Contents

Getting Started

Background information regarding this subject is available in our Official documentation

Problem

You want to have geographical information in Checkmk, and based on that information, you want to have NagVis geomaps , that automatically get populated with this information.

Solution

Copy the treasure file to your site:

Panel
bgColor#fff
Code Block
languagebash
themeRDark
cp ~/share/doc/check_mk/treasures/wato_geo_fields.py ~/local/share/check_mk/web/plugins/wato
Now you can start Warning

This solution works only on a per-site basis. If the hosts you want to show in NagVis are located at several sites, you need maps with the appropriate backends.


Follow these steps to enable the automatic placement of hosts based on their geolocation:

  1. Create two custom host attributes like described here: How-to configure custom notification attributes#CustomHostattributes

    one attribute will be named "lat" and the other one "long."

    Screenshot of edit host attributes. Add to monitoring configuration. Make this custom attribute available to check commands.Image Added

    Screenshot of edit host attributes. Add to monitoring configuration. Make this custom attribute available to check commands.Image Added


    Note

    You need to select the Checkbox "Add to monitoring configuration" to make both attributes available for NagVis.

    .

  2. Start adding the information to your hosts; you need at least one with coordinates configured.

  3. Navigate to

...

  1. NagVis and create a new map of the type 'Geographical map (non-interactive).'

  2. Go to

...

  1. Edit Map

...

...

  1. Map Options

...



  1. On the rider 'Geomap,' change the source type to 'NagVis Backend'

...

  1. and save the settings.


...

Filter by label (Content by label)
showLabelsfalse
max5
spacesCONKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "activate_changes" in ( "checkmk" , "nagvis" , "maps" ) and type = "page" and space = "CONKB"
labelsactivate_changesnagvis maps checkmk

Page Properties
hiddentrue


Related issues


...