GPSMAP for Cacti Plugin
Moderators: Developers, Moderators
-
- Posts: 20
- Joined: Sun Apr 17, 2022 8:50 am
GPSMAP for Cacti Plugin
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
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
Re: GPSMAP for Cacti Plugin
You can try mine:
https://github.com/arno-st/map
https://github.com/arno-st/map
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
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
-
- Posts: 20
- Joined: Sun Apr 17, 2022 8:50 am
Re: GPSMAP for Cacti Plugin
Okay, the plugin is installed, but no documentation on how to set it up or use it?
Any cheat sheet?
Any cheat sheet?
Re: GPSMAP for Cacti Plugin
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
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
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
-
- Posts: 20
- Joined: Sun Apr 17, 2022 8:50 am
Re: GPSMAP for Cacti Plugin
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.
I don't see any entry for REBUILD SITE TABLES?
I do see REBUILD RESOURCE TABLE
I'm running the latest CACTI release.
-
- Posts: 20
- Joined: Sun Apr 17, 2022 8:50 am
Re: GPSMAP for Cacti Plugin
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.
I'm using google maps, I put in KEY and all.
It shows the plugin ACTIVE, and all.
Re: GPSMAP for Cacti Plugin
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
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
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
-
- Posts: 20
- Joined: Sun Apr 17, 2022 8:50 am
Re: GPSMAP for Cacti Plugin
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
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
-
- Posts: 20
- Joined: Sun Apr 17, 2022 8:50 am
Re: GPSMAP for Cacti Plugin
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
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
-
- Posts: 20
- Joined: Sun Apr 17, 2022 8:50 am
Re: GPSMAP for Cacti Plugin
I checked FOLDER PERMISSIONS : Same as others, same as default installs
Tried FireFOX
Tried FireFOX
-
- Posts: 20
- Joined: Sun Apr 17, 2022 8:50 am
Re: GPSMAP for Cacti Plugin
Do you need any special setting in PHP ?
Any settings in MariaDB ?
Any settings in MariaDB ?
Re: GPSMAP for Cacti Plugin
No, no special configuration.
anything in the cacti log ?
did you see the setting for it ?
Can you allow debug ?
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
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
-
- Posts: 20
- Joined: Sun Apr 17, 2022 8:50 am
Re: GPSMAP for Cacti Plugin
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.
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.
-
- Posts: 20
- Joined: Sun Apr 17, 2022 8:50 am
Re: GPSMAP for Cacti Plugin
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.
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.
-
- Posts: 20
- Joined: Sun Apr 17, 2022 8:50 am
Re: GPSMAP for Cacti Plugin
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
(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
Who is online
Users browsing this forum: No registered users and 1 guest