View Issue Details

IDProjectCategoryView StatusLast Update
1353RackTablesdefaultpublic2014-11-04 03:56
Reporterjoeywas Assigned To 
PrioritylowSeveritytrivialReproducibilityalways
Status closedResolutionno change required 
Product Version0.20.8 
Summary1353: Cacti graph img src url is not correct, causing images to not show up in cacti tab
DescriptionThe URL for cacti images in the interface.php file is not correct for cacti version 0.8.8b. To get the graph images to display on the cacti tab, I had to change the img src URL for cacti images from:

'index.php?module=image&img=cactigraph&object_id=${object_id}&server_id=${graph['server_id']}&graph_id=${graph_id}'

to the following:

'${cacti_url}/graph_image.php?action=view&local_graph_id=${graph_id}'
Additional InformationThanks for all the work you guys put into racktables!
TagsNo tags attached.

Activities

infrastation

infrastation

2014-11-03 19:13

administrator   ~0002543

The current URL is correct, in that the current design is that Cacti URL and credentials are configured in RackTables, then RackTables retrieves the graphs from Cacti and serves them to the users. This frees the administrator from creating a Cacti username for each RackTables user.

If the original URL does not work, could you check that the URL, username and password in Configuration->Cacti are correct, that PHP cURL extension is available and that the RackTables server can connect to the Cacti server?
joeywas

joeywas

2014-11-04 03:18

reporter   ~0002545

Last edited: 2014-11-04 03:55

Thanks for the quick reply infrastation!

The URL is correct (click through link works fine)
Username/password is correct (i've tried a couple of different cacti user accounts)
php cURL extension is available
Cacti is hosted on the same server as RackTables -- I'm not sure how to otherwise test that RackTables can connect to Cacti. :X

Don't see any errors in apache2/error.log

I'm playing around with proxyCactiRequest() in solutions.php to see if I can get things working.

[edit] Looks like it might have something to do with the fact that curl requires a ca-bundle to work properly with https sites -- continuing to investigate.

[edit2] the cacti site is https, but does not have a valid certificate, so curl errs out. Not a problem with racktables!

joeywas

joeywas

2014-11-04 03:56

reporter   ~0002547

this was not an issue with racktables but with the configuration of the server

Issue History

Date Modified Username Field Change
2014-11-03 04:52 joeywas New Issue
2014-11-03 19:13 infrastation Note Added: 0002543
2014-11-04 03:18 joeywas Note Added: 0002545
2014-11-04 03:36 joeywas Note Edited: 0002545
2014-11-04 03:55 joeywas Note Edited: 0002545
2014-11-04 03:56 joeywas Note Added: 0002547
2014-11-04 03:56 joeywas Status new => closed
2014-11-04 03:56 joeywas Resolution open => no change required