GPS Maps for Cacti

Announcements concerning Plugins for Cacti

Moderators: Moderators, Developers

Post Reply
Author
Message
routeip
Posts: 4
Joined: Mon Jul 09, 2012 2:48 pm

Re: GPS Maps for Cacti

#286 Post by routeip » Tue Apr 28, 2015 9:32 pm

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?

routeip
Posts: 4
Joined: Mon Jul 09, 2012 2:48 pm

Re: GPS Maps for Cacti

#287 Post by routeip » Thu Apr 30, 2015 9:05 pm

if you downloaded my update please download again. the first was broken

routeip
Posts: 4
Joined: Mon Jul 09, 2012 2:48 pm

Re: GPS Maps for Cacti

#288 Post by routeip » Wed May 06, 2015 5:22 pm

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.

xbatmanx
Posts: 1
Joined: Fri May 22, 2015 1:50 pm

Re: GPS Maps for Cacti

#289 Post by xbatmanx » Fri May 22, 2015 2:05 pm

gpsmap.jpg
gpsmap.jpg (152.93 KiB) Viewed 4953 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

Rno
Cacti User
Posts: 325
Joined: Wed Dec 07, 2011 9:19 am

Re: GPS Maps for Cacti

#290 Post by Rno » Tue May 02, 2017 6:42 am

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
Production
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, Map 0.4

Test
Cacti 1.2.1
Spine 1.2.1
thold 1.0.6
monitor 2.3.5
php 7.2.11
mariadb 5.5.56
Own plugin:
ExtendDB 1.1.2
LinkDiscovery 1.2.4
Map 1.2.5

Rno
Cacti User
Posts: 325
Joined: Wed Dec 07, 2011 9:19 am

Re: GPS Maps for Cacti

#291 Post by Rno » Tue May 02, 2017 8:18 am

snmp location can be also a latitude longitude value like that:
<lat>;<long>

and the address will be geocoded from Google
CentOS
Production
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, Map 0.4

Test
Cacti 1.2.1
Spine 1.2.1
thold 1.0.6
monitor 2.3.5
php 7.2.11
mariadb 5.5.56
Own plugin:
ExtendDB 1.1.2
LinkDiscovery 1.2.4
Map 1.2.5

anmomin1
Posts: 41
Joined: Mon May 29, 2017 4:14 pm

Re: GPS Maps for Cacti

#292 Post by anmomin1 » Mon Jul 22, 2019 1:29 pm

@Rno,,,
I am trying to install plugin on 0.8.8h.
I have copied paste folder in /var/www/cacti/plugins and check chmod and chown... same as other plugins
I can't see plugin under Configuration -> Plugin Management.

Thanks.

anmomin1
Posts: 41
Joined: Mon May 29, 2017 4:14 pm

Re: GPS Maps for Cacti

#293 Post by anmomin1 » Mon Jul 22, 2019 1:43 pm

I am running into issue trying to get GPS MAPS on cacti 0.8.8h with no luck,,
I copied folder to /var/www/cacti/plugins that I downloaded from https://github.com/wixiweb/cacti-gpsmaps
Even chmod 777 to that folder..
Still don't see that plugin under configuration -> Plugin Management

Thanks.
spiffydudex wrote:GPS MAPS

This plugin provides an integration of Google maps with cacti in order to visually map out hosts using previously recorded Latitude and Longitude coordinates. Tracking of IP ranges and addresses and displaying them on the map. Information about each point is displayed when clicked on, with a direct link to the hosts graphs. Additionally there is a function that will allow for overlay mapping of IP ranges to get a coverage map.

***UPDATE ASAP to 1.63***
Google removed certain critical icon files from their servers. In order to continue usage please update!
Remember: DO NOT UNINSTALL THE PLUGIN unless you have backed up your host database! GPS Coordinates will be DELETEDwhen uninstalled.

Version 1.63
-Emergency update.
-Fixed relying on Google for icon files.
-All icons are contained within the images\icons folder
-Made coverage overlays the last part to be rendered.
-Fixed bug where coverage overlays would eat up RAM by causing a invalid for loop.

Newest Version info is on page 12
Download is here http://spiffdev.com/

If you are in need of a good Geocoder:
Zorrosam wrote:coordinates taken from this website http://www.gpsvisualizer.com/geocoder/ seems to be correct.

Please let me know if you come across any bugs. I only have a single development environment so please report any mishaps and I'll do what I can to sort them out.

Enjoy,
Andy

Rno
Cacti User
Posts: 325
Joined: Wed Dec 07, 2011 9:19 am

Re: GPS Maps for Cacti

#294 Post by Rno » Thu Jul 25, 2019 9:26 am

anmomin1 wrote:@Rno,,,
I am trying to install plugin on 0.8.8h.
I have copied paste folder in /var/www/cacti/plugins and check chmod and chown... same as other plugins
I can't see plugin under Configuration -> Plugin Management.

Thanks.
What version did you download ?
wha is the righ of the folder ?
Can you sena print screen of ls -l of the plugins directory ?
CentOS
Production
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, Map 0.4

Test
Cacti 1.2.1
Spine 1.2.1
thold 1.0.6
monitor 2.3.5
php 7.2.11
mariadb 5.5.56
Own plugin:
ExtendDB 1.1.2
LinkDiscovery 1.2.4
Map 1.2.5

netniV
Cacti Guru User
Posts: 2673
Joined: Sun Aug 27, 2017 12:05 am

Re: GPS Maps for Cacti

#295 Post by netniV » Fri Jul 26, 2019 3:17 pm

If you downloaded the cacti gpsmaps from github, that would have been for Cacti 1.1.x or 1.2.x (I haven't checked the INFO requirement).

anmomin1
Posts: 41
Joined: Mon May 29, 2017 4:14 pm

Re: GPS Maps for Cacti

#296 Post by anmomin1 » Mon Jul 29, 2019 1:29 pm

Thanks netniV for reponse.. Yes I did download from github... that's the only one I found. is there gpsmaps for 0.8.8h, Plugin Architecture Version: 3.1.

If there is can you please point me to right direction.

Thanks.

netniV wrote:If you downloaded the cacti gpsmaps from github, that would have been for Cacti 1.1.x or 1.2.x (I haven't checked the INFO requirement).

anmomin1
Posts: 41
Joined: Mon May 29, 2017 4:14 pm

Re: GPS Maps for Cacti

#297 Post by anmomin1 » Mon Jul 29, 2019 1:47 pm

Hi Rno,
Thanks for response.. I have downloaded from below link:
https://github.com/arno-st/Map/tree/cacti-0.8x

It does mentioned cacti-0.8x
I am running Cacti Version: 0.8.8h, Plugin Architecture Version: 3.1

please find below folder permission: (Same as others working one)

Rno wrote:
anmomin1 wrote:@Rno,,,
I am trying to install plugin on 0.8.8h.
I have copied paste folder in /var/www/cacti/plugins and check chmod and chown... same as other plugins
I can't see plugin under Configuration -> Plugin Management.

Thanks.
What version did you download ?
wha is the righ of the folder ?
Can you sena print screen of ls -l of the plugins directory ?
Attachments
gpsmaps.png
gpsmaps.png (19.77 KiB) Viewed 504 times

Rno
Cacti User
Posts: 325
Joined: Wed Dec 07, 2011 9:19 am

Re: GPS Maps for Cacti

#298 Post by Rno » Mon Aug 05, 2019 6:03 am

This download is my own gps map tools, and the folder should be named map

gpsmaps is another one you have to download it from here: https://github.com/wixiweb/cacti-gpsmaps
CentOS
Production
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, Map 0.4

Test
Cacti 1.2.1
Spine 1.2.1
thold 1.0.6
monitor 2.3.5
php 7.2.11
mariadb 5.5.56
Own plugin:
ExtendDB 1.1.2
LinkDiscovery 1.2.4
Map 1.2.5

Post Reply