Graphs display "internally" but not "externally"

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

Moderators: Developers, Moderators

Post Reply
stormonts
Cacti User
Posts: 349
Joined: Tue Mar 31, 2009 10:05 am

Graphs display "internally" but not "externally"

Post by stormonts »

There are a number of remote sites that we monitor and have created a Cacti instance for each of them. We then modify the Cacti config so that users will only see graphs related to their site. This had been working perfectly fine until we just went to create a new instance (the first instance since we upgraded to .8.7e).

You can see from the images below that when a user goes to the site using the name of the server where the graphs are, the graphs will load fine. But when you try to connect to the graphs using an address that has been aliased, the images fail to load.

Works:

Code: Select all

http://tool.box.com/cacti_ut/graph_view.php?action=tree&tree_id=32&leaf_id=7733&select_first=true
Busted:

Code: Select all

https://ut.test.gov/seerdms/cacti_ut/graph_view.php?action=tree&tree_id=32&leaf_id=7733&select_first=true
httpd.conf.local file on the server with the relevant section:

Code: Select all

Alias /cacti_ut/ /usr/local/dms_cacti/cacti-0.8.7e_ut/
Alias /cacti_ut /usr/local/dms_cacti/cacti-0.8.7e_ut/
<Directory "/usr/local/dms_cacti/cacti-0.8.7e_ut">
     Options None
     AllowOverride AuthConfig Options
     Order allow,deny
     Allow from all
</Directory>
Relevant section of web server alias:

Code: Select all

<Proxy http://tool.box.com/cacti_ut>
  Order allow,deny
  Allow from all
  AuthName "UT Cacti Graphs"
  AuthType Basic
  AuthUserFile /prj/.htpasswd
   Require user cacti
</Proxy>
Is it a permission issue on the server? What specifically should I check? I know that we did have to modify global.php in this new instance and add the line that says:

Code: Select all

$config['url_path'] = '/cacti_ut/';
Which wasn't required in previous versions that we had setup.
Attachments
Working images:<br /><br />http://tool.box.com/cacti_ut/graph_view.php?action=tree&amp;tree_id=32&amp;leaf_id=7733&amp;select_first=true
Working images:

http://tool.box.com/cacti_ut/graph_view.php?action=tree&tree_id=32&leaf_id=7733&select_first=true
working.jpg (250.72 KiB) Viewed 601 times
Busted images:<br /><br />https://ut.test.gov/seerdms/cacti_ut/graph_view.php?action=tree&amp;tree_id=32&amp;leaf_id=7733&amp;select_first=true
Busted images:

https://ut.test.gov/seerdms/cacti_ut/graph_view.php?action=tree&tree_id=32&leaf_id=7733&select_first=true
busted.jpg (191.54 KiB) Viewed 601 times
Slarti
Posts: 1
Joined: Tue Feb 01, 2011 3:08 pm

Re: Graphs display "internally" but not "externally"

Post by Slarti »

I have excactly the same problem. I have installed the program today with all dependencies (Debian server) and I have read this:
"Initial Graph does not appear
When viewing in tree mode, the initial graph does not show up. When you click on it, the graphs appear fine.
This may be an RRDTool version conflict. Go to Console/Configuration/Settings/General and ensure that RRDTool Utility Version is set to the correct version under Required Tool Versions
— Linegod 2009/10/01 08:09"
My version meets the requirements:

Code: Select all

 # /usr/bin/rrdtool info
RRDtool 1.3.1  Copyright 1997-2008 by Tobias Oetiker <tobi@oetiker.ch>
               Compiled Sep 26 2008 22:25:10
The paths shows to the right and only version on my server.

The rights are correctly set for www-data and the files are existing:

Code: Select all

-rw-r--r-- 1 www-data www-data  47840 2011-02-01 21:00 localhost_mem_buffers_3.rrd
-rw-r--r-- 1 www-data www-data  47840 2011-02-01 21:00 localhost_mem_swap_4.rrd
-rw-r--r-- 1 www-data www-data  47840 2011-02-01 21:00 localhost_proc_7.rrd
-rw-r--r-- 1 www-data www-data  47840 2011-02-01 21:00 localhost_users_6.rrd
I am admin and have all the rights.

I would appreciate some input please. What have I missed?

Thanks.

Slarti
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests