Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Jun 29, 2017 2:32 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 291 posts ]  Go to page Previous  1 ... 16, 17, 18, 19, 20
Author Message
 Post subject: Re: GPS Maps for Cacti
PostPosted: Tue Apr 28, 2015 9:32 pm 
Offline

Joined: Mon Jul 09, 2012 2:48 pm
Posts: 4
Im pretty much lost in the updated code and javascript. I added kmz overlays in the early code of this but I'm lost on how to do it with the latest. Anyone have any pointers?


Top
 Profile  
 
 Post subject: Re: GPS Maps for Cacti
PostPosted: Thu Apr 30, 2015 9:05 pm 
Offline

Joined: Mon Jul 09, 2012 2:48 pm
Posts: 4
if you downloaded my update please download again. the first was broken


Top
 Profile  
 
 Post subject: Re: GPS Maps for Cacti
PostPosted: Wed May 06, 2015 5:22 pm 
Offline

Joined: Mon Jul 09, 2012 2:48 pm
Posts: 4
Anyone good with google map api v3?

I have tried like hell to get click able overlays working with the new code and can not.
I had it working with the v2 api. google is all it brains completely rewrote everything is seems.


Top
 Profile  
 
 Post subject: Re: GPS Maps for Cacti
PostPosted: Fri May 22, 2015 2:05 pm 
Offline

Joined: Fri May 22, 2015 1:50 pm
Posts: 1
Attachment:
gpsmap.jpg
gpsmap.jpg [ 152.93 KiB | Viewed 3487 times ]


Hey guys... I am fairly new to Cacti & GPSMap... I have most of it working as needed.. only I dont know how to get rid of this gray overlay that displays IP information and is basically taking over almost 50% of my map view...


Can anyone point me in the correct direction.. so I can get my Map view without the gray overlay


Thank you


Top
 Profile  
 
 Post subject: Re: GPS Maps for Cacti
PostPosted: Tue May 02, 2017 6:42 am 
Offline
Cacti User

Joined: Wed Dec 07, 2011 9:19 am
Posts: 191
I wrote a simple plugin who display a Google map with all device on it.
The coordinate are taken from snmp location, and the format is:
either
latitude , longitude, <empty>
or
country , city, street

I take only the first three parameters, for now it only work with google map, the key is optional, and has to be entered under setting -> misc

If you hold the mouse on a pin, it will display the device name and the address as returned by Google.
When you import it for the first time, you have to click on the 'system utility' section, on 'Rebuild mapping table' that will populated the address table, taken from you device snmp location field.
Beware that google only allow 2500 queries a day, so that mean 2500 devices max allowed, since each device has to be geocoded to find the address on the same format.

So far only working and tested on 0x8.8h, I will write it to match 1.x soon. Also check that you php config allow the server to queries outside URL:allow_url_fopen = On


You can find it here:
https://github.com/arno-st/Map/tree/cacti-0.8x


Open to any question or remark, and I will try to make more versatile if I can.

_________________
CentOS
Cacti 0.8.8h
Spine 0.8.8h
PIA 3.1
Aggregate 0.75
Monitor 1.3
Settings 0.71
Weathermap 0.98
Thold 0.5
rrdclean 0.41

Own plugin: LinkDiscovery 0.3


Top
 Profile  
 
 Post subject: Re: GPS Maps for Cacti
PostPosted: Tue May 02, 2017 8:18 am 
Offline
Cacti User

Joined: Wed Dec 07, 2011 9:19 am
Posts: 191
snmp location can be also a latitude longitude value like that:
<lat>;<long>

and the address will be geocoded from Google

_________________
CentOS
Cacti 0.8.8h
Spine 0.8.8h
PIA 3.1
Aggregate 0.75
Monitor 1.3
Settings 0.71
Weathermap 0.98
Thold 0.5
rrdclean 0.41

Own plugin: LinkDiscovery 0.3


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 291 posts ]  Go to page Previous  1 ... 16, 17, 18, 19, 20

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group