GPSMAP for Cacti Plugin

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

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

Re: GPSMAP for Cacti Plugin

Post by Rno »

No, no special version of PHP requested.
You said on first line:
map tab shows
and then
It's like it's all working, but I don't have any MAP TAB on the main page, nothing shows anywhere ??????????
So did you have a MAP tab or not ?

Did you have the directory 'images' under plugin->map directory ?
if you don't have it will cause some trouble since you won't have the icon nor the map tab image.


I know I still have 1 problem, when you click on the tab MAP the map won't show up the first time, and it's look blank. you have to click F5 (refresh the page) to show up.
I still didn't figure out why it's reacting like that, and that piss me off. But it's the only thing not working.
Otherwise you should have everything.

No you can't access it directly outside cacti, since it use the cacti config to get all the information (DB most of it).

And I can assure you cacti is using in entrepise wide and production all over the world.
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 »

Just to clarify my response:

1. Its not working

2. The MAP TAB is only displayed under Configuration Setting, there is has the MAP TAB

3. When I said its like its working I mean, it downloaded properly, extracted properly, directory permissions were correct, install Plugin worked perfectly, under Configuration setting Map TB the options were showing for setup such as API KEY, GoogleMaps or OpenstreetMaps, etc.

4. NO MAP TAB on main console screen.

5. NO MAPS showing.

Pretty much sums it up.

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

Re: GPSMAP for Cacti Plugin

Post by Rno »

no error what so ever in cacti log ?
nor int cacti_stderr.log ?

And if you activate the map debug log ?
Nothing at all ?
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 activated the map dbug on install.

Nothing in the logs at all anywhere.

I uninstalled the plugin

I cleared the cacti logs

I reinstalled the plugin, set it up.

No errors in the log
uclabsllc2018
Posts: 20
Joined: Sun Apr 17, 2022 8:50 am

Re: GPSMAP for Cacti Plugin

Post by uclabsllc2018 »

Honestly, I'M STUMMPED!!!!!!!!!!!!!!!!!
I see no errors on anything I have installed and running.

From Centos 8

DNF Updates
Cacti
PHP
Nagios
NTOP
goAccess
Apache AB
MIB Browser
and on and on and on.
I run Python3 Scripts
I run Perl Scrips
I run Javascrips
I run Node
I run Eclipse IDE
........ Just CRAZY !!!!!
uclabsllc2018
Posts: 20
Joined: Sun Apr 17, 2022 8:50 am

Re: GPSMAP for Cacti Plugin

Post by uclabsllc2018 »

I'm sure it's simple, but what ?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: GPSMAP for Cacti Plugin

Post by TheWitness »

Likely need to make sure you enable Unsafe Javascript eval() use in Cacti. Console > Configuration > Settings > General > Site Security.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: GPSMAP for Cacti Plugin

Post by TheWitness »

Error 500 means that there is a php error that you are encountering before the script is actually even rendered. So, the downside of that, is that there is no backtrace in the Cacti.log. One way you can get around this is to edit the php.ini file for Apache and then set the following variable:

Code: Select all

display_errors = on
Then restart Apache and php-fpm (if using it). After that, when you goto that page, you should see some text echoed to the browser to give you a clue. This is what a web developer will do when in the development stages of a website or for Cacti a plugin.

If the page is failing due to an Ajax callback, you might need to bring up the browsers debug window and goto the Network tab and view the error message in the Response section of the network tab.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: GPSMAP for Cacti Plugin

Post by Osiris »

That sounds like a JavaScript error you should go into the JavaScript console and then post the error messages you are receiving on that page to the GitHub page.
Before history, there was a paradise, now dust.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest