Cacti 0.8.7 and weathermap 0.93 Undefined index?

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

dave99 wrote:There are only 2 cacti users in my setup, admin & guest. It appears that guest can only view graphs and nothing more. When adding a plugin, I add the permissions to the admin user. With cacti auth off, it appears the concept of users disappears, the sess_user_id variable just doesn't get set anymore. The authentication I use with groundwork is really secondary to this, it doesn't affect cacti at all, it's tied into apache. As far as cacti knows, it is just sitting there by itself with it's built-in authentication off.

What seems to be a cleaner fix is to put your original file back, and in auth.php add a section that checks if the authentication method is 0, if so then go ahead and set the sess_user_id=1.
Yep, that's what I've just done.

However, what I see now is a series of errors about $current_user not being defined in top_graph_header.php. Since that's a standard cacti thing, I assume at the moment that that's not my problem, but a cacti issue - I get it on the Graphs tab too. Do you see this error message?
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
dave99
Posts: 26
Joined: Fri Mar 17, 2006 11:12 pm

Post by dave99 »

Yes, and the solution was essentially the same, if the auth method=0, then tell it to query based on the admin user id and set the current_user variable. This applied to top_header & top_graph_header. On the graph pages it shows the 'logged in as admin', but that doesn't bother me too much.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests