HELP,RRDTool Says:GRAPH ACCESS DENIED

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

Moderators: Developers, Moderators

Post Reply
Snowprint
Posts: 11
Joined: Fri Oct 27, 2006 4:06 am

HELP,RRDTool Says:GRAPH ACCESS DENIED

Post by Snowprint »

When I installed cacti on ubuntu today, I can't get anything from the graphs panel,and also I get some error when I try to get some debug info. The screen shot is enclosed.

Is there any body can help me ?

Many thanks!
Attachments
1.gif
1.gif (15.43 KiB) Viewed 3978 times
2.gif
2.gif (34.4 KiB) Viewed 3978 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please have a look at your web servers error_log. Any access violation there? Does your web server has at least read access to the rra directory?
Reinhard
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

That is due to invalid user permissions.
[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]
Snowprint
Posts: 11
Joined: Fri Oct 27, 2006 4:06 am

Post by Snowprint »

lvm wrote:Please have a look at your web servers error_log. Any access violation there? Does your web server has at least read access to the rra directory?
Reinhard
I have grant the 777 privilege to the rra folder. Is there something else to config?
Snowprint
Posts: 11
Joined: Fri Oct 27, 2006 4:06 am

Post by Snowprint »

rony wrote:That is due to invalid user permissions.
Do you mean I didn't give the right privilege to user in "User management"?

But I am login as admin user, and I have tried to modify the setting, it didn't work either :(
User avatar
N3NCY
Cacti User
Posts: 260
Joined: Thu Sep 22, 2005 7:50 pm
Location: Landenberg, PA
Contact:

Post by N3NCY »

Snowprint: On unbuntu what user does the web server run as?

Here is where I am going with this just for example:
On FreeBSD, Apache runs as user: nobody and group: nobody
So I fix up permissions on my web directory by:
chown -R nobody:nobody /opt/apache/htdocs/

You will need to substitute nobody with the user that your Apache runs as.
And you will need to set the path to your htdocs root.
Maybe /usr/local/apache/htdocs ?
Thank you,

Ernie
http://www.NMSWorld.com
[b]Dual Zeon Dual Core 2.6Ghz / 8GB RAM / 4x15k RPM SATA RAID5[/b]
[b]Cacti Version[/b] - 0.8.7b
[b]Poller Type[/b] - cactid 0.8.7 with Boost v1.7
[b]Server Info[/b] - FreeBSD 7.0-RELEASE
[b]Web Server[/b] - Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 PHP/5.2.5 mod_perl/2.0.3 Perl/v5.8.8
[b]PHP[/b] - 5.2.6
[b]MySQL[/b] - 5.0.51b Mod: poller_output ENGINE = MEMORY
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Host Info (hostinfo - v0.2), Update Checker (update - v0.3), Network Tools (tools - v0.2), FlowView (flowview - v0.3), Read-only Devices Tab (devices - v0.4), Network Discovery (discovery - v0.8.3), Syslog Monitoring (syslog - v0.5.2), Thresholds (thold - v0.3.9), Device Monitoring (monitor - v0.8.2), PHP Network Weathermap (weathermap - v0.941), SuperLinks (superlinks - v0.72), Report Creator (reports - v0.1b)
Snowprint
Posts: 11
Joined: Fri Oct 27, 2006 4:06 am

Post by Snowprint »

Hi N3NCY

I tried this way, but failed either. The apache on ubuntu is run as www-data user.

Thanks for your help
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 refering to Cacti graph permissions. That message is outputted in place of a image when you do not have access to that graph.

Go to user management and edit admin. Then click on the graph permissions tab. If any of the side items say DENY, the items listed in that section are the only ones you have access to. The opposite is true, if it says ALLOW and you have items listed in that section, those items will be denied access.
[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]
kad335
Posts: 1
Joined: Tue Jan 30, 2007 12:53 pm

RRDTOOL Says: GRAPH ACCESS DENIED

Post by kad335 »

I have a similar problem.
The rra/ directory is full rwx access, my cacti graph settings are all default permission: ALLOW (with no entries for exceptions).
rrd's are created in the rra/ directory, rrdtool works just fine from the command line but nothing ever shows up in the graph_view page.
When i turn on graph debug mode it says RRDTOOL says:GRAPH ACCESS DENIED.
As far as i know, SELinux is not running on my machine, however, when i do a "locate selinux" i get:
lib/libselinux.so.1
..etc
but there is no config file for it. running setenforce=0 tells me there is no such command.

I have searched through the forums for help on this but could not find any solution that fits.
Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest