How to disable the Graph / Source Properties

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

Moderators: Developers, Moderators

Post Reply
tullio
Posts: 1
Joined: Mon Mar 20, 2006 8:43 am

How to disable the Graph / Source Properties

Post by tullio »

Hi All...

I'm using Cacti to provide bandwitdh usage for my customers. It's realy a grate software.

I want to disable the link to Graph / Source Properties.

How ?

Regards

Tullio
Attachments
cacti.jpg
cacti.jpg (4.48 KiB) Viewed 2117 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Currently, you will have to modify code for this. Is this an option?
Reinhard
maninho
Posts: 1
Joined: Fri Aug 12, 2011 1:25 am

Re: How to disable the Graph / Source Properties

Post by maninho »

:roll: Hope the following answer can help you:

-Change the directory path to cacti directory, normally at /var/www/cacti/:

Code: Select all

cd /var/www/cacti/
[/b]
then vim following files:
graph.php
graph.php.rej


find and delete all the following lines of those files:

Code: Select all

<a href='<?php print htmlspecialchars($config['url_path'] . "graph.php?action=properties&local_graph_id=" . $graph["local_graph_id"] . "&rra_id=0&" . $extra_url_args);?>'><img src='<?php print $config['url_path'];?>images/graph_properties.gif' border='0' alt='Graph Source/Properties' title='Graph Source/Properties' style='padding: 3px;'></a><br>
-Then Change the directory path to:

Code: Select all

cd /var/www/cacti/lib/
[/b]
then vim following files:
html.php
html.php.rej


find and delete all the following lines of those files:

Code: Select all

<a href='<?php print htmlspecialchars($config['url_path'] . "graph.php?action=properties&local_graph_id=" . $graph["local_graph_id"] . "&rra_id=0&" . $extra_url_args);?>'><img src='<?php print $config['url_path'];?>images/graph_properties.gif' border='0' alt='Graph Source/Properties' title='Graph Source/Properties' style='padding: 3px;'></a><br>
then restart httpd service

Code: Select all

service httpd restart
:) cheers... !!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: How to disable the Graph / Source Properties

Post by gandalf »

The *.rej files are of no use. They are a result of a failing patch command.
R.
abouabed
Posts: 2
Joined: Tue Feb 07, 2012 7:37 am

Re: How to disable the Graph / Source Properties

Post by abouabed »

Hello

Is there any other way to do it from the user privileges?
yousillygoose
Cacti User
Posts: 62
Joined: Fri Sep 23, 2011 2:48 pm

Re: How to disable the Graph / Source Properties

Post by yousillygoose »

abouabed wrote:Hello

Is there any other way to do it from the user privileges?
I don't believe there is.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: How to disable the Graph / Source Properties

Post by gandalf »

abouabed wrote:Hello

Is there any other way to do it from the user privileges?
No. This would be a new feature request
R.
regdone
Posts: 6
Joined: Thu Jan 06, 2011 1:51 am

Re: How to disable the Graph / Source Properties

Post by regdone »

Hi all,
Remove that lines in graph.php and html.php would disable the link to Graph Source/Properties in Tree mode.
How to disable that link in Preview mode?
Thanks,
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests