Hi all,
Im using cacti for my company, however while exploring the export functions (multiple trees)
I realised that sometimes the index.html for individual trees were not created but were instead overwritten as index.html in the "EXPORT PATH"
in lib/graph_export.php
look for these lines :
build_html_file($tree["id"], "index"); // This is the part used to build "index.html", however a value is used in the parameter.
$leaf["tree_id"] = $tree["id"];
$leaf["title"] = "";
$leaf["name"] = $tree["name"];
/* TESTING ------------------------*/
build_html_file($leaf, "index"); // i removed the line on top and added this instead , passing the array instead of a integer value.
/*-------------------------------------*/
build_html_file($leaf, "tree"); // this creates tree htmls, an ARRAY $leaf is passed in
After i changed this , it appears to work well. However i have googled "cacti export graph missing index.html" many times but could not find more information.
If this is the wrong place to post, please help to put in the right forums. I would like to let other people who faced the same problems to investigate as well. Thanks !
//english not my main lang. pardon for the broken english
newbie reporting a bug in cacti 8.0.7e
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
If this is against 087e, please consider a bug report as given by http://www.cacti.net/bugs.php
Reinhard
Reinhard
Who is online
Users browsing this forum: No registered users and 0 guests