[racktables-users] Re: Cacti support

  • From: Sander Klein <roedie@xxxxxxxxx>
  • To: <racktables-users@xxxxxxxxxxxxx>
  • Date: Wed, 31 Aug 2011 06:04:19 +0200

On Tue, 30 Aug 2011 23:48:06 +0400, Denis Ovsienko wrote:

There is nothing in the error.log

If I click on the url I get the login screen. Here I give the username and password I also use in my racktables config and after that I get the graph I'm asking for. The racktables user has all rights in cacti. So I
don't think it's a permission issue.

The racktables server is allowed to make connection to the cacti server

So far I have been unable to reproduce. Could you look up in the
RackTables page source, what is used as IMG SRC for the graph? If you
try opening that URL, does it return any text error instead of the
image? Is there anything relevant in the access log of Cacti server?
Could you check with a packet analyzer, that RackTables resolves the
hostname of Cacti server, actually makes connection to it and gets the
right response? Thanks!

The href is correct in the page source. When clicking/entering the URL I get the cacti login page, I then fill in the credentials of the account I created for racktables and then I see the graphs.

The img src tag says: <img src='index.php?module=image&img=cactigraph&object_id=38&graph_id=699' alt='Cacti Graph ID: 699'>

When pasting this in my browser like:
https://racktables.xx.xx/index.php?module=image&img=cactigraph&object_id=38&graph_id=699

I get a page saying:

https://racktables.xx.xx/index.php?module=image&img=cactigraph&object_id=38&graph_id=699

Nothing more... see http://www.roedie.nl/downloads/misc/racktables-3.jpg

When requesting the cacti tab of the object I see the following in the access.log of the cacti server:

2001:67c:xxx:xx::x - - [31/Aug/2011:05:30:46 +0200] "GET /graph_image.php?action=view&local_graph_id=1 HTTP/1.1" 200 4171 "-" "-" 2001:67c:xxx:xx::x - - [31/Aug/2011:05:30:46 +0200] "POST /graph_image.php?action=view&local_graph_id=1 HTTP/1.1" 302 85 "-" "-" 2001:67c:xxx:xx::x - - [31/Aug/2011:05:30:46 +0200] "POST /graph_image.php?action=view&local_graph_id=1 HTTP/1.1" 200 15358 "-" "-" 2001:67c:xxx:xx::x - - [31/Aug/2011:05:30:46 +0200] "GET /graph_image.php?action=view&local_graph_id=599 HTTP/1.1" 200 4171 "-" "-" 2001:67c:xxx:xx::x - - [31/Aug/2011:05:30:46 +0200] "POST /graph_image.php?action=view&local_graph_id=599 HTTP/1.1" 302 101 "-" "-" 2001:67c:xxx:xx::x - - [31/Aug/2011:05:30:46 +0200] "POST /graph_image.php?action=view&local_graph_id=599 HTTP/1.1" 200 106 "-" "-" 2001:67c:xxx:xx::x - - [31/Aug/2011:05:30:46 +0200] "GET /graph_image.php?action=view&local_graph_id=699 HTTP/1.1" 200 4171 "-" "-" 2001:67c:xxx:xx::x - - [31/Aug/2011:05:30:46 +0200] "POST /graph_image.php?action=view&local_graph_id=699 HTTP/1.1" 302 101 "-" "-" 2001:67c:xxx:xx::x - - [31/Aug/2011:05:30:46 +0200] "POST /graph_image.php?action=view&local_graph_id=699 HTTP/1.1" 200 40435 "-" "-"

So it does resolve the host and makes the connection. There's nothing in the cacti error log neither in the racktables error log.

Greets,

Sander

Other related posts: