Giter Site home page Giter Site logo

map's Introduction

/*******************************************************************************

    Author ......... Arno Streuli
    Contact ........ [email protected]
    Home Site ...... http://cactiusers.org
    Program ........ Map for Cacti
    Purpose ........ Display all device on a Google Map

*******************************************************************************/

----[ Purpose

	This plugin Display all device in a Google map.

----[ Installation

	It use the site table from cacti.
	If your table is empty, it will be 'geocoded' from the device.
	In this case each device need to have the following snmp setting:
	snmp-server location Country;City;Street_Building;Floor;Room;Rack;RU;Lat;Long
	
	Lat; long is used if you don't have the street correct, like an equipment in middle of nowhere. but you still need to have all the filed, at least the ;
	
	On the Cacti Configuration page, under misc, you have a few line:
	choose if you want to use google map or openstreet map.
	if google map is coosen, you have to install the key
	then you have to enter the center location of the map with a field with this format:
	Country;City;Street_Building
	
	To create your site database, you can go under utilities -> System utilities and then 'Rebuild sites table'
	It will parse every device on your DB and look for snmp location information, then go to either googlemap or openstreet map to have all information to create the site table
	
	When you click on the tab MAP, it's can look empty depending of the browser, just click refresh, and you should see the map with the device on it.
	
	if not activate the debug and give me the output or any error message

----[ Possible Bugs?
   

----[ Future Changes

	Got any ideas or complaints, please e-mail me!


----[ Changelog

1.0.2 The snmp location format change to include GPS value in the following format: Country;City;Street_Building;Floor;Room;Rack;RU;Lat;Long
1.0.3 check if the device is snmp enable otherwise do not try to find the location
1.1.0 use cacti site database for location taken from snmp location in format: country;city;address;floor;room;rack;RU or ;;;floor;room;rack;RU;lat;long the 7 and 8 argument are lat/log
1.2.0 added support of openstreetmap
1.2.1 added the usage of extenddb to not display phone on the map
1.2.2 changed the format of the map center under settings, to be the same as location on a device !
1.2.3 Added the option to geocode only selected device under Management -> devices list
1.2.4 Added the type on the notes on the site liste, and some correction with openstreet map geocoding
1.2.5 fully working with OpenStreetmap and leaflet
1.2.6 Fix some problem with escape string on location detection and geocoding with openstreetmap
1.2.7 Used Spider function on GoogleMap, thanks to OverlappingMarkerSpiderfier
1.2.8 Add a flag to let the user disable the geolocation on saved device, it take way to mutch Internet time during discovery
1.2.9 Upgrade to Leafleet 1.7.1
1.2.10 Some correction with extenddb plugin, and the way Leaflet and google API are used
1.3.0 Upgrade to mapbox GL instead of base mapbox JS
1.3.1 add header hook
1.3.2 add filter on view to remove isPhone

map's People

Contributors

arno-st avatar

Stargazers

AK avatar

Watchers

James Cloos avatar Mark Brugnoli-Vinten avatar  avatar

Forkers

smiles1969

map's Issues

minor case issue

The folder that gets created on a git clone of this is creating "Map" instead of "map", so all of the references to the path do not match.

I've forked this and made the changes on my fork, but a pull request attempt finds no changes across forks.

I just renamed the repo under settings and it fixes the issue.

Map not displayed

Hi,
don't know if this is still mantained and supposed to be working, I have installed this together with the extenddb plugin, but when I click on the Map Tab I get only a blank window:
image

This is my cacti installation:

Cacti Version | 1.2.5
-- | --
Cacti OS | unix
NET-SNMP Version | NET-SNMP version: 5.7.3
RRDtool Version Configured | 1.5.0+
RRDtool Version Found | 1.5.5
Devices | 3530

Any idea?
You need further technical details?

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.