How to Hide Devices in the Monitor Tab for a user.

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
ftorres
Posts: 10
Joined: Fri Jan 28, 2011 3:39 pm

How to Hide Devices in the Monitor Tab for a user.

Post by ftorres »

I have around 550 devices and I need to hide some devices in the Monitor Tab for some users.
This user is a client and like to see when the devices are up or down and he also want to have access to the graph in his devices.
I know I can show him the graphs in some devices and hide the rest but I don't want that he look the other devices of my other clients.

Is this possible?

thanks in advance.!
ftorres
Posts: 10
Joined: Fri Jan 28, 2011 3:39 pm

Re: How to Hide Devices in the Monitor Tab for a user.

Post by ftorres »

...
Last edited by ftorres on Mon Jun 13, 2011 12:57 pm, edited 2 times in total.
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: How to Hide Devices in the Monitor Tab for a user.

Post by noname »

If you already restrict users so they can view graphs permitted,
simply select "Default with permissions" for grouping.
Image

For example...
When admin logged in, total graph tree looks like this:
Image

I want to permit user to view under "Test Tree" but not to see Switch-2.
I set graph permissions for user as follows:
Image

When user logged in, the result is:
Image

And when user clicked 'monitor' tab:
Image

NOTICE:
I tested the above at Cacti 0.8.7g + PA 2.9 + monitor 1.2-1.
If it doesn't work properly (e.g. All hosts are displayed in monitor tab),
modify "plugins/monitor/monitor.php" as follows:
if (read_config_option("global_auth") == "on") {
(at line 817, 880, 935) to
if (read_config_option("global_auth") == "on" || read_config_option("auth_method") != 0) {
It seems that "global_auth" is not exist in latest Cacti.
ftorres
Posts: 10
Joined: Fri Jan 28, 2011 3:39 pm

Re: How to Hide Devices in the Monitor Tab for a user.

Post by ftorres »

noname Thanks for the response...
I will update the Monitor Plugin and try your solutions...
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests