Code Monkey home page Code Monkey logo

icingaweb2-module-mapdatatype's Introduction

Location datatype module for Icinga Director

Table of Contents

  1. About
  2. License
  3. Support
  4. Requirements
  5. Installation
  6. Configuration
  7. FAQ
  8. Thanks
  9. Contributing

About

This module allows you to easily add and change coordinates with the Icinga Director on openstreetmap using leaflet.js.

Adding coordinates to a host

License

Icinga Web 2 and this Icinga Web 2 module are licensed under the terms of the GNU General Public License Version 2, you will find a copy of this license in the LICENSE file included in the source package.

This module uses Leaflet:

  • Leaflet - BSD 2-clause "Simplified" License

Support

Join the Icinga community channels for questions.

Requirements

Installation

Extract this module to your Icinga Web 2 modules directory as mapDatatype directory.

Git clone:

cd /usr/share/icingaweb2/modules
git clone https://github.com/nbuchwitz/icingaweb2-module-mapDatatype.git mapDatatype

Tarball download (latest release):

cd /usr/share/icingaweb2/modules
wget https://github.com/nbuchwitz/icingaweb2-module-mapDatatype/archive/v0.1.0.zip
unzip v0.1.0.zip
mv icingaweb2-module-mapDatatype-0.1.0 mapDatatype

Enable Icinga Web 2 module

Enable the module in the Icinga Web 2 frontend in Configuration -> Modules -> mapDatatype -> enable. You can also enable the module by using the icingacli command:

icingacli module enable mapDatatype

Define Data Field

Create a new Data Field, enter a Field name and select Location (MapDatatype) in the Data type field.

Icinga Director

Contributing

There are many ways to contribute to the Icinga Web module for Maps -- whether it be sending patches, testing, reporting bugs, or reviewing and updating the documentation. Every contribution is appreciated!

Please continue reading in the contributing chapter.

icingaweb2-module-mapdatatype's People

Contributors

dheule avatar gianlucapiccolo avatar nbuchwitz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

icingaweb2-module-mapdatatype's Issues

Map DataType fields are not populated with inherited values

Inherited coordinates are not shown in hosts and templates form geolocation fields.

Expected Behavior

If I have a host or a host template that inherits another template with coordinates value, in the form I would like to see the inherited value.

Current Behavior

The inherited value for the coordinates field (geolocation) is not shown.

Possible Solution

Set the placeholder of the element as the other element of the director host objects forms (I think this means also make some changes in the director code) or set a custom placeholder attribute to the map datatype element and add it to the element view (location.phtml).

Steps to Reproduce (for bugs)

  1. Create a custom Location (MapDatatype) field.
  2. Create a template.
  3. Assign to it the Location custom field (custom var).
  4. Select a location for the template.
  5. Add a new host that inherits the template with location field.
  6. Take a look at the location field in the host object form. It will be empty also if in the resolved object preview the location field is not (inherited from template).

Your Environment

  • Icinga Web 2 MapDatatype version (System - About): 0.0.1
  • Icinga Web 2 Map version (System - About): We don't use Icinga Web 2 Map module
  • Icinga Web 2 Director version (System - About): 1.5.1
  • Icinga Web 2 version and modules (System - About): 2.6.1
  • Version used (icinga2 --version): 2.8.4
  • Operating System and version: CentOS 7
  • Enabled features (icinga2 feature list): api checker ido-mysql influxdb livestatus mainlog
  • Config validation (icinga2 daemon -C): OK

Load the bundled leaflet stylesheets, instead using the CDN ones

Due to some issues with using stylesheets from other modules while redering components inside Icinga Director, the needed stylesheets for leaflet are hard coded to a CDN provider.

Expected Behavior

The module should you the shipped stylesheets of the map module.

Current Behavior

The module uses the stylesheets of a CDN provider.

Possible Solution

Switch to the shipped stylesheets. Evaluate a possible solution, maybe @lippserd or @Thomas-Gelf can point me into the right direction.

Datatype not working anymore with Icinga Web 2 2.9 and Director 1.8.1

Expected Behavior

I can pick the geolocation from the mini map.

Current Behavior

I see the mini map, but can not select geolocations.

Steps to Reproduce (for bugs)

  1. Installed Icinga Web 2 2.9.3, Director 1.8.1, Map 1.1.0 and MapDatatype master
  2. Configured SSL to satisfy the leaflet requirement of a secure connection
  3. I see the map like this, but can not click on it:
    image
  4. Looking at the debug console I see a 404 for https://icinga.example.com/icingaweb2/map/config/fetch?type=director

Your Environment

  • Icinga Web 2 MapDatatype version (System - About): master
  • Icinga Web 2 Map version (System - About): 1.1.0
  • Icinga Web 2 Director version (System - About): 1.8.1
  • Icinga Web 2 version and modules (System - About): 2.9.3
  • Version used (icinga2 --version): 2.13.3
  • Operating System and version: CentOS 8

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.