GPSMAP for Cacti Plugin

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

uclabsllc2018
Posts: 20
Joined: Sun Apr 17, 2022 8:50 am

GPSMAP for Cacti Plugin

Post by uclabsllc2018 »

Does anyone know if the GPSMAP Plugin is still working for the latest version of Cacti?

I did download it and install. All went well until after it was competly instlled and the Google API Key was added. Once I put in LAT - LON and went back to the MAP TAB it gives a:

Sorry we could not process your last action.

ERROR: 500 Internal Server Error

Reason: The response to the last action was unexpected.


The folder is under the plugins, has the same permissions as all the others.

Its the only one giving this error.

Are there any required packages to be installed? It didn't state any.

Thanks
Rno
Cacti Pro User
Posts: 658
Joined: Wed Dec 07, 2011 9:19 am

Re: GPSMAP for Cacti Plugin

Post by Rno »

Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
uclabsllc2018
Posts: 20
Joined: Sun Apr 17, 2022 8:50 am

Re: GPSMAP for Cacti Plugin

Post by uclabsllc2018 »

Okay, the plugin is installed, but no documentation on how to set it up or use it?

Any cheat sheet?
Rno
Cacti Pro User
Posts: 658
Joined: Wed Dec 07, 2011 9:19 am

Re: GPSMAP for Cacti Plugin

Post by Rno »

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
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
uclabsllc2018
Posts: 20
Joined: Sun Apr 17, 2022 8:50 am

Re: GPSMAP for Cacti Plugin

Post by uclabsllc2018 »

Thanks for the info.

I don't see any entry for REBUILD SITE TABLES?

I do see REBUILD RESOURCE TABLE

I'm running the latest CACTI release.
uclabsllc2018
Posts: 20
Joined: Sun Apr 17, 2022 8:50 am

Re: GPSMAP for Cacti Plugin

Post by uclabsllc2018 »

I did do the REBUILD RESOURCE REBUILD, did a refresh, still no MAP TAB.

I'm using google maps, I put in KEY and all.

It shows the plugin ACTIVE, and all.
Rno
Cacti Pro User
Posts: 658
Joined: Wed Dec 07, 2011 9:19 am

Re: GPSMAP for Cacti Plugin

Post by Rno »

Is your user has he right to use the plugin ?
Under 'Configuration' -> user or User Group
Any information inside the log ?

I don't see any Rebuild Resource table on my utilities menu,
can you send me some log, and a print screen where you have this rebuild resource table
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
uclabsllc2018
Posts: 20
Joined: Sun Apr 17, 2022 8:50 am

Re: GPSMAP for Cacti Plugin

Post by uclabsllc2018 »

I don't understand it either:

My OS : Centos 8 (stream)

Database: MariaDB

System completely up to date

Install as ROOT

Login to Cacti as ADMIN

Cacti Version : 1.2.20

Under USER SETTINGS PERMISSIONS: Allowed everything
uclabsllc2018
Posts: 20
Joined: Sun Apr 17, 2022 8:50 am

Re: GPSMAP for Cacti Plugin

Post by uclabsllc2018 »

Also have a Google Maps Key

I use Google Maps Key with many other pages, such as overlaying weather, Leaflets, etc.

All work just fine.

I have many PHP applications, WEB Pages using PHP

I have many Python scripts inside Cacti to GRAPH such things as WEATHER, SNMP, ROUTERS, etc..

Using Google Chrome
uclabsllc2018
Posts: 20
Joined: Sun Apr 17, 2022 8:50 am

Re: GPSMAP for Cacti Plugin

Post by uclabsllc2018 »

I checked FOLDER PERMISSIONS : Same as others, same as default installs

Tried FireFOX
uclabsllc2018
Posts: 20
Joined: Sun Apr 17, 2022 8:50 am

Re: GPSMAP for Cacti Plugin

Post by uclabsllc2018 »

Do you need any special setting in PHP ?

Any settings in MariaDB ?
Rno
Cacti Pro User
Posts: 658
Joined: Wed Dec 07, 2011 9:19 am

Re: GPSMAP for Cacti Plugin

Post by Rno »

No, no special configuration.
anything in the cacti log ?
did you see the setting for it ?
Can you allow debug ?
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
uclabsllc2018
Posts: 20
Joined: Sun Apr 17, 2022 8:50 am

Re: GPSMAP for Cacti Plugin

Post by uclabsllc2018 »

Nothing

Everything installed properly, unzip the file, copy directory to cacti - check permissions , shows as map, click on install, green check mark appears, go to settings, map tab shows, put in key and location, turn on debug and everything, check user admin has permissions for everything.

It's like it's all working, but I don't have any MAP TAB on the main page, nothing shows anywhere ??????????

I've about given up as to be honest Cacti just doesn't seem Enterprise or Production ready. Most plugins I have found don't work, need to modified to work with the latest, no version control, limited info, FREE FOR ALL type system .

I do want to THANK YOU for trying.

I have other Google Maps showing info using LeaftLets and PopUps.

Have a great day, be safe.

One last note, the last GPSMAP Plugin I installed , installed the same way, all went good, the MAP TAB even showed, but when you clicked on it you got an ERROR 500.
uclabsllc2018
Posts: 20
Joined: Sun Apr 17, 2022 8:50 am

Re: GPSMAP for Cacti Plugin

Post by uclabsllc2018 »

Quick question,

Is there anyway to test the files directly in a browser? I did try map.php and setup.php, On map.php I get an ERROR 500.

Just thought I would ask.
uclabsllc2018
Posts: 20
Joined: Sun Apr 17, 2022 8:50 am

Re: GPSMAP for Cacti Plugin

Post by uclabsllc2018 »

Do you require any special version of PHP?

(base) [root@localhost php-fpm.d]# php -v
PHP 7.2.24 (cli) (built: Oct 22 2019 08:28:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests