Skip to content

Location

Ilya Ableev edited this page Jan 14, 2019 · 2 revisions

You can use a location map with messages.

Two methods: address or coordinates.

Address

Add to your action

zbxtg;location:{INVENTORY.LOCATION}

In that case, you should fill the "location" field in the host's inventory. The address should be searchable by Google. Also, you need to get Google API key (https://developers.google.com/maps/documentation/geocoding/intro) and place into zbxtg_settings.py, google_maps_api_key variable.

Coordinates

Add to your action

zbxtg;lat:{INVENTORY.LOCATION.LAT}
zbxtg;lon:{INVENTORY.LOCATION.LON}

In that case, you should fill latitude and longitude fields in the host's inventory. No need to get Google API key.

https://github.com/ableev/Zabbix-in-Telegram/issues/48