Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Cacti 0.8.7 and weathermap 0.93 Undefined index?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 1958
Location: United Kingdom

PostPosted: Mon Mar 17, 2008 10:43 am    Post subject: Reply with quote

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?
Back to top
dave99



Joined: 17 Mar 2006
Posts: 16

PostPosted: Mon Mar 17, 2008 11:33 am    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group