Graph Tree Corruption

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
OnTheRock
Posts: 2
Joined: Wed Mar 09, 2011 2:01 pm

Graph Tree Corruption

Post by OnTheRock »

With version cacti.0.8.7e, I was updating the graph trees. I had an experience similar to the user in the entry at http://forums.cacti.net/post-175821.html.

Is there a way to fix this? Basic info appears to be there, but may not be correctly linked. The issue appeared to start after a series of branch deletions and creations and moves. I don't know what specifically started the issue.

The source on the web site has the following script excerpt (folder names changed for privacy).

<script type="text/javascript">
<!--
USETEXTLINKS = 1
STARTALLOPEN = 0
USEFRAMES = 0
USEICONS = 0
WRAPTEXT = 1
PERSERVESTATE = 1
HIGHLIGHT = 1
foldersTree = gFld("", "")
foldersTree.xID = "root"
ou0 = insFld(foldersTree, gFld("Aggregate Inbound", "graph_view.php?action=tree&tree_id=6"))
ou0.xID = "tree_6"
ou0 = insFld(foldersTree, gFld("Clients", "graph_view.php?action=tree&tree_id=3"))
ou0.xID = "tree_3"
ou2 = insFld(ou1, gFld("Company 1", "graph_view.php?action=tree&tree_id=3&leaf_id=155"))
ou2.xID = "tree_3_leaf_155"
ou2 = insFld(ou1, gFld("Company 2", "graph_view.php?action=tree&tree_id=3&leaf_id=149"))
ou2.xID = "tree_3_leaf_149"
ou2 = insFld(ou1, gFld("Company 3", "graph_view.php?action=tree&tree_id=3&leaf_id=147"))
ou2.xID = "tree_3_leaf_147"
ou2 = insFld(ou1, gFld("Company 4", "graph_view.php?action=tree&tree_id=3&leaf_id=252"))
ou2.xID = "tree_3_leaf_252"
ou3 = insFld(ou2, gFld("Old", "graph_view.php?action=tree&tree_id=3&leaf_id=272"))
ou3.xID = "tree_3_leaf_272"
ou2 = insFld(ou1, gFld("Company 5", "graph_view.php?action=tree&tree_id=3&leaf_id=297"))
ou2.xID = "tree_3_leaf_297"

.. lots more lines ...

//-->
</script>
Attachments
Picture of menu with out expected submenus.
Picture of menu with out expected submenus.
cacti.png (7.45 KiB) Viewed 746 times
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Graph Tree Corruption

Post by noname »

Please show results of this query:
(Of course hide privacy info)
% mysql -uUSER -pPASS cacti -t -e 'select * from graph_tree_items where graph_tree_id=3 order by order_key;'
'3' is ID for your tree.

But even if I look that, I might not solve your problem. Just to reveal what exists in database.
Sorry in advance.
OnTheRock
Posts: 2
Joined: Wed Mar 09, 2011 2:01 pm

Re: Graph Tree Corruption

Post by OnTheRock »

Results of query as requested is attached.
Attachments
cacti problem.txt
(26.81 KiB) Downloaded 79 times
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests