All users can list all hosts and templates

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

Moderators: Developers, Moderators

matty123
Posts: 13
Joined: Tue Oct 30, 2007 10:06 am

All users can list all hosts and templates

Post by matty123 »

Hi,

Im not sure if this is the Plugin Architecture 1.2 or Cacti 0.8.7 but now when all my users log in they are normally restricted to see only their host and graphs.

Now if a user logs in they can click preview mode then where at the top you can select Host and/or Graph Template they can see all the hosts listed or Graph Templates.

However you can select a host from that list and the graph isnt displayed which is a good thing

Is this a bug with either Cacti or the PA?

Many thanks

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

Post by TheWitness »

Please verify that you have the correct authentication method selected and post your results.

TheWitness
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?
matty123
Posts: 13
Joined: Tue Oct 30, 2007 10:06 am

Post by matty123 »

Hi,

Yup using builtin authentication. Authing is ok for all users.

Forgot to say all was ok before I upgraded to the latest version.

Cheers

Matt
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

I'm currently looking into this issue.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
matty123
Posts: 13
Joined: Tue Oct 30, 2007 10:06 am

Post by matty123 »

Hi,

Thanks, I completed the Cacti upgrade on Thursday. A customer pointed out to me today that the list was available along with a list of our customers that he was reading off down the phone to me :(

Cheers

Matt
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

May I ask for a dump of you database? Can you email it to me?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Please confirm you authentication setting.

I have checked permission functionality and can't find any issues.
Attachments
auth_settings.png
auth_settings.png (125.92 KiB) Viewed 4505 times
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
matty123
Posts: 13
Joined: Tue Oct 30, 2007 10:06 am

Post by matty123 »

Hi,

Yup thats exactly what it says. Hmm really odd then, im not sure what to do about it.

Cheers

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

Post by TheWitness »

List, not view right?

TheWitness
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?
matty123
Posts: 13
Joined: Tue Oct 30, 2007 10:06 am

Post by matty123 »

Hi,

Yeah. They can still view the graphs they are allowed access to which is correct but they shouldnt be able to drop down the list of all the hosts and client templates that Cacti is monitoring.

When they do select a host from the drop down they cant see the graph for it which is correct but in seeing the list they now get a list of all our hosts and a couple of our customers.

I can email you some screen shots? I dont want to publicly post them :)

Cheers

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

Post by TheWitness »

Ok, here are three modified files. They do not include the PIA. So, if you are running it, you may have more work. Did not check.

They are:

<path_cacti>/include/html/inc_graph_view_filter_table.php
<path_cacti>/include/html/inc_graph_filter_table.php
<path_cacti>/graph_view.php

Let me know if this get's it.

TheWitness
Attachments
graph_view.zip
(6.02 KiB) Downloaded 145 times
inc_graph_filter_table.zip
(1.16 KiB) Downloaded 177 times
inc_graph_view_filter_table.zip
(1.16 KiB) Downloaded 142 times
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?
matty123
Posts: 13
Joined: Tue Oct 30, 2007 10:06 am

Post by matty123 »

Hi,

thats done the trick for the Host drop down :)

However you can still see the custom templates in the Graph Template drop down but its alot less than it was and that doesnt really cause any issues.

Yup I have got the PIA installed.

Cheers

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

Post by TheWitness »

Thought about that after I had left for the day. Maybe later today.

TheWitness
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?
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

The PA does not use those files, so it is not affected.
matty123
Posts: 13
Joined: Tue Oct 30, 2007 10:06 am

Post by matty123 »

Hi,

Excellent :)

What about the custom templates that are on display, not worry about that?

Many thanks

Matt
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests