Admin gets 401 error accessing plugin page

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
RAFChum
Posts: 7
Joined: Tue Mar 23, 2021 5:07 pm

Admin gets 401 error accessing plugin page

Post by RAFChum »

Hello,

I am trying to get the Weathermap plugin to work properly but it seems to not install correctly? History is I built this system in 2021 and it has slowly been breaking down it seems. I find that the Weathermap plugin is the thing I need Cacti for most, it is what makes it 'at a glance' for me. It has been slowly breaking down with maps not rendering, info not being updated, and such. So earlier this week I went after updating it completely.

Date Tue, 14 Nov 2023 11:04:58 -0500
Cacti Version 1.2.25
Cacti OS unix (CentOS)
RSA Fingerprint 32:42:06:5d:58:2a:9d:58:e6:38:2d:ba:7b:de:74:d3
NET-SNMP Version NET-SNMP version: 5.8
RRDtool Version Configured 1.7.0+
RRDtool Version Found 1.7.0

I upgraded Cacti to 1.2.25 and that seemingly went very well. I downloaded the Weathermap from GitHub (plugin_weathermap_develop) and copied over my old 0.98 install of it. Now I have an issue and, hopefully, a clue:

Issue is the "401 you don't have access" when I click on the Weathermap. Reviewing the Permissions tab for Admin shows 'all green'.

Logs fill with this error:

PLUGIN WARNING: Plugin 'weathermap' is attempting to call 'api_plugin_register_realm' improperly in function 'weathermap_config_arrays

This occurs now on either version of the plugin, the orig Howard Jones branded 0.98 or the software-de branded version from GitHub. I cannot find anywhere to set a permission for this and thinking that realm-related error is the reason.

Open to any and all advice!

RAFChum
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Admin gets 401 error accessing plugin page

Post by TheWitness »

Well that's odd. I would keep your WeatherMap at the Cacti develop level. The old versions will simply break. That Register Realm issue was supposed to have been corrected in 1.2.25. I'm acutally suprised that it's still triggering that error.

When you revert to the develop version of plugin_weathermap, if you get that error again, open a ticket on GitHub:

https://github.com/cacit/plugin_weathermap
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest