Tree Mode
Moderators: Developers, Moderators
-
- Posts: 13
- Joined: Fri Dec 05, 2008 4:06 pm
- Location: Santa Clara CA
- Contact:
Tree Mode
I'm having an issue with my graphs view. I'm only seeing about half of what is configured on my console, graph tree. Notice it matches down to Santa Clara, but the rest is missing on the Graph view
I was creating new tree branches when they quit appearing.
When the graph view loads there is an error message at the bottom of IE; Done, but with errors on page. This may not be relevant, but worth mentioning.
I have attached a screen shot of my Cacti Console and graph views.
I was creating new tree branches when they quit appearing.
When the graph view loads there is an error message at the bottom of IE; Done, but with errors on page. This may not be relevant, but worth mentioning.
I have attached a screen shot of my Cacti Console and graph views.
- Attachments
-
- Doc2.pdf
- New attachment
- (203.83 KiB) Downloaded 103 times
Last edited by sjturner66 on Mon Dec 08, 2008 4:21 pm, edited 2 times in total.
-
- Posts: 13
- Joined: Fri Dec 05, 2008 4:06 pm
- Location: Santa Clara CA
- Contact:
-
- Posts: 13
- Joined: Fri Dec 05, 2008 4:06 pm
- Location: Santa Clara CA
- Contact:
-
- Posts: 13
- Joined: Fri Dec 05, 2008 4:06 pm
- Location: Santa Clara CA
- Contact:
I understand what you are saying but I think I'm looking one step back then you are. Notice on the right side of the PDF my console view shows 17 trees. Then on the left of the PDF my graph view only shows 11 trees. Both views are identical until you reach Santa Clara tree, then the graph view does not show the rest.
On the console view the tree for sc-core-left has 1 heading and many graphs assigned, however it does not show up on the graph view
On the console view the tree for sc-core-left has 1 heading and many graphs assigned, however it does not show up on the graph view
-
- Posts: 13
- Joined: Fri Dec 05, 2008 4:06 pm
- Location: Santa Clara CA
- Contact:
-
- Posts: 13
- Joined: Fri Dec 05, 2008 4:06 pm
- Location: Santa Clara CA
- Contact:
So....when in console view click on Graph Trees, this should pull up a list of all trees configured to display in graph view. From here I cannot create a tree under an existing one named Santa Clara. I can however create one above. The trees are in alphabetical order and if you go below Santa Clara it will not display. There are several already configured and any new one I create, I get the same results.
What the?
What the?
-
- Posts: 9
- Joined: Wed Sep 19, 2007 12:06 pm
Problem looks like nesting in the left menu rendering
if you know the tree ID (obtainable by selecting from the DB), you can always call up the correct tree, even though it does not display on the menu to the left simply by changing the tree ID in the URL (see pic attached).
mysql> select * from graph_tree;
+----+-----------+-------------------+
| id | sort_type | name |
+----+-----------+-------------------+
| 1 | 1 | Default Tree |
| 2 | 1 | sc-core-left |
| 3 | 1 | 3420r3c11 |
| 4 | 1 | sc-core-right |
| 20 | 1 | United Kingdom |
| 19 | 1 | NetApp Traffic |
| 9 | 1 | Singapore |
| 10 | 1 | Shanghai |
| 11 | 1 | Japan |
| 15 | 1 | Santa Clara |
| 14 | 1 | NetAppFilers |
| 16 | 1 | JDE |
| 18 | 1 | Emeryville |
| 21 | 1 | MPLS WAN Links |
| 22 | 1 | Internet Gateways |
| 23 | 1 | Historical |
| 27 | 1 | Sacramento |
| 33 | 1 | Santa Cla |
| 37 | 1 | Santa Clara Z |
+----+-----------+-------------------+
19 rows in set (0.00 sec)
So the problem isn’t with the trees themselves, or the database, both are correct and accurate. The problem is with the rendering of the menu on the left, and has nothing to do with the tree structure.
So the next question is – how is that menu generated, and why is it cut off after a certain point? I am in way over my head here, but let’s look at the page source, where this gets even stranger:
ou0 = insFld(foldersTree, gFld("3420r3c11", "graph_view.php?action=tree&tree_id=3"))
ou0 = insFld(foldersTree, gFld("Default Tree", "graph_view.php?action=tree&tree_id=1"))
ou0 = insFld(foldersTree, gFld("Emeryville", "graph_view.php?action=tree&tree_id=18"))
ou0 = insFld(foldersTree, gFld("Historical", "graph_view.php?action=tree&tree_id=23"))
ou0 = insFld(foldersTree, gFld("Internet Gateways", "graph_view.php?action=tree&tree_id=22"))
ou0 = insFld(foldersTree, gFld("Japan", "graph_view.php?action=tree&tree_id=11"))
ou0 = insFld(foldersTree, gFld("JDE", "graph_view.php?action=tree&tree_id=16"))
ou0 = insFld(foldersTree, gFld("MPLS WAN Links", "graph_view.php?action=tree&tree_id=21"))
ou0 = insFld(foldersTree, gFld("NetApp Traffic", "graph_view.php?action=tree&tree_id=19"))
ou1 = insFld(ou0, gFld("Santa Clara", "graph_view.php?action=tree&tree_id=19&leaf_id=211"))
ou0 = insFld(foldersTree, gFld("NetAppFilers", "graph_view.php?action=tree&tree_id=14"))
ou1 = insFld(ou0, gFld("Nafs17", "graph_view.php?action=tree&tree_id=14&leaf_id=140"))
ou1 = insFld(ou0, gFld("Nafs18", "graph_view.php?action=tree&tree_id=14&leaf_id=146"))
ou0 = insFld(foldersTree, gFld("Sacramento", "graph_view.php?action=tree&tree_id=27"))
ou0 = insFld(foldersTree, gFld("Santa Cla", "graph_view.php?action=tree&tree_id=33"))
ou0 = insFld(foldersTree, gFld("Santa Clara", "graph_view.php?action=tree&tree_id=15"))
ou1 = insFld(ou0, gFld("sc-core-left", "graph_view.php?action=tree&tree_id=15&leaf_id=814"))
ou2 = insFld(ou1, gFld("NFS Vlan 40", "graph_view.php?action=tree&tree_id=15&leaf_id=840"))
ou6 = insFld(ou5, gFld("sc-core-left", "graph_view.php?action=tree&tree_id=15&leaf_id=804"))
ou15 = insFld(ou14, gFld("<strong>Host:</strong> 3450s3b11", "graph_view.php?action=tree&tree_id=15&leaf_id=794"))
ou15 = insFld(ou14, gFld("<strong>Host:</strong> 3450s3b12", "graph_view.php?action=tree&tree_id=15&leaf_id=795"))
ou15 = insFld(ou14, gFld("<strong>Host:</strong> 3450s3b13", "graph_view.php?action=tree&tree_id=15&leaf_id=797"))
ou13 = insFld(ou12, gFld("3380", "graph_view.php?action=tree&tree_id=15&leaf_id=204"))
ou14 = insFld(ou13, gFld("test", "graph_view.php?action=tree&tree_id=15&leaf_id=825"))
ou13 = insFld(ou12, gFld("3420", "graph_view.php?action=tree&tree_id=15&leaf_id=203"))
ou14 = insFld(ou13, gFld("Upstairs exec IDF", "graph_view.php?action=tree&tree_id=15&leaf_id=213"))
ou14 = insFld(ou13, gFld("Upstairs non-exec IDF", "graph_view.php?action=tree&tree_id=15&leaf_id=214"))
ou13 = insFld(ou12, gFld("3450", "graph_view.php?action=tree&tree_id=15&leaf_id=798"))
ou14 = insFld(ou13, gFld("<strong>Host:</strong> 3450s3b11", "graph_view.php?action=tree&tree_id=15&leaf_id=799"))
ou14 = insFld(ou13, gFld("<strong>Host:</strong> 3450s3b12", "graph_view.php?action=tree&tree_id=15&leaf_id=800"))
ou14 = insFld(ou13, gFld("<strong>Host:</strong> 3450s3b13", "graph_view.php?action=tree&tree_id=15&leaf_id=801"))
ou13 = insFld(ou12, gFld("SC-Core-Right", "graph_view.php?action=tree&tree_id=15&leaf_id=803"))
ou13 = insFld(ou12, gFld("428 Oakmead", "graph_view.php?action=tree&tree_id=15&leaf_id=205"))
ou14 = insFld(ou13, gFld("<strong>Host:</strong> 3380s3b21", "graph_view.php?action=tree&tree_id=15&leaf_id=789"))
ou14 = insFld(ou13, gFld("<strong>Host:</strong> 3380s3b22", "graph_view.php?action=tree&tree_id=15&leaf_id=796"))
ou0 = insFld(foldersTree, gFld("Santa Clara Z", "graph_view.php?action=tree&tree_id=37"))
ou0 = insFld(foldersTree, gFld("sc-core-left", "graph_view.php?action=tree&tree_id=2"))
ou1 = insFld(ou0, gFld("NFS - VLAN 40", "graph_view.php?action=tree&tree_id=2&leaf_id=548"))
ou0 = insFld(foldersTree, gFld("sc-core-right", "graph_view.php?action=tree&tree_id=4"))
ou0 = insFld(foldersTree, gFld("Shanghai", "graph_view.php?action=tree&tree_id=10"))
ou0 = insFld(foldersTree, gFld("Singapore", "graph_view.php?action=tree&tree_id=9"))
ou0 = insFld(foldersTree, gFld("United Kingdom", "graph_view.php?action=tree&tree_id=20"))
foldersTree.treeID = "t2";
Note that at the point the visual menu cuts off (NFS VLAN 40), the actual page contains code for further trees – but nested down at ou6, then ou15, etc., so I presume this is why they are not visible – they are nest too deep, and no immediate parent trees.
So the question is, how are those values generated, and how do we fix it?
mysql> select * from graph_tree;
+----+-----------+-------------------+
| id | sort_type | name |
+----+-----------+-------------------+
| 1 | 1 | Default Tree |
| 2 | 1 | sc-core-left |
| 3 | 1 | 3420r3c11 |
| 4 | 1 | sc-core-right |
| 20 | 1 | United Kingdom |
| 19 | 1 | NetApp Traffic |
| 9 | 1 | Singapore |
| 10 | 1 | Shanghai |
| 11 | 1 | Japan |
| 15 | 1 | Santa Clara |
| 14 | 1 | NetAppFilers |
| 16 | 1 | JDE |
| 18 | 1 | Emeryville |
| 21 | 1 | MPLS WAN Links |
| 22 | 1 | Internet Gateways |
| 23 | 1 | Historical |
| 27 | 1 | Sacramento |
| 33 | 1 | Santa Cla |
| 37 | 1 | Santa Clara Z |
+----+-----------+-------------------+
19 rows in set (0.00 sec)
So the problem isn’t with the trees themselves, or the database, both are correct and accurate. The problem is with the rendering of the menu on the left, and has nothing to do with the tree structure.
So the next question is – how is that menu generated, and why is it cut off after a certain point? I am in way over my head here, but let’s look at the page source, where this gets even stranger:
ou0 = insFld(foldersTree, gFld("3420r3c11", "graph_view.php?action=tree&tree_id=3"))
ou0 = insFld(foldersTree, gFld("Default Tree", "graph_view.php?action=tree&tree_id=1"))
ou0 = insFld(foldersTree, gFld("Emeryville", "graph_view.php?action=tree&tree_id=18"))
ou0 = insFld(foldersTree, gFld("Historical", "graph_view.php?action=tree&tree_id=23"))
ou0 = insFld(foldersTree, gFld("Internet Gateways", "graph_view.php?action=tree&tree_id=22"))
ou0 = insFld(foldersTree, gFld("Japan", "graph_view.php?action=tree&tree_id=11"))
ou0 = insFld(foldersTree, gFld("JDE", "graph_view.php?action=tree&tree_id=16"))
ou0 = insFld(foldersTree, gFld("MPLS WAN Links", "graph_view.php?action=tree&tree_id=21"))
ou0 = insFld(foldersTree, gFld("NetApp Traffic", "graph_view.php?action=tree&tree_id=19"))
ou1 = insFld(ou0, gFld("Santa Clara", "graph_view.php?action=tree&tree_id=19&leaf_id=211"))
ou0 = insFld(foldersTree, gFld("NetAppFilers", "graph_view.php?action=tree&tree_id=14"))
ou1 = insFld(ou0, gFld("Nafs17", "graph_view.php?action=tree&tree_id=14&leaf_id=140"))
ou1 = insFld(ou0, gFld("Nafs18", "graph_view.php?action=tree&tree_id=14&leaf_id=146"))
ou0 = insFld(foldersTree, gFld("Sacramento", "graph_view.php?action=tree&tree_id=27"))
ou0 = insFld(foldersTree, gFld("Santa Cla", "graph_view.php?action=tree&tree_id=33"))
ou0 = insFld(foldersTree, gFld("Santa Clara", "graph_view.php?action=tree&tree_id=15"))
ou1 = insFld(ou0, gFld("sc-core-left", "graph_view.php?action=tree&tree_id=15&leaf_id=814"))
ou2 = insFld(ou1, gFld("NFS Vlan 40", "graph_view.php?action=tree&tree_id=15&leaf_id=840"))
ou6 = insFld(ou5, gFld("sc-core-left", "graph_view.php?action=tree&tree_id=15&leaf_id=804"))
ou15 = insFld(ou14, gFld("<strong>Host:</strong> 3450s3b11", "graph_view.php?action=tree&tree_id=15&leaf_id=794"))
ou15 = insFld(ou14, gFld("<strong>Host:</strong> 3450s3b12", "graph_view.php?action=tree&tree_id=15&leaf_id=795"))
ou15 = insFld(ou14, gFld("<strong>Host:</strong> 3450s3b13", "graph_view.php?action=tree&tree_id=15&leaf_id=797"))
ou13 = insFld(ou12, gFld("3380", "graph_view.php?action=tree&tree_id=15&leaf_id=204"))
ou14 = insFld(ou13, gFld("test", "graph_view.php?action=tree&tree_id=15&leaf_id=825"))
ou13 = insFld(ou12, gFld("3420", "graph_view.php?action=tree&tree_id=15&leaf_id=203"))
ou14 = insFld(ou13, gFld("Upstairs exec IDF", "graph_view.php?action=tree&tree_id=15&leaf_id=213"))
ou14 = insFld(ou13, gFld("Upstairs non-exec IDF", "graph_view.php?action=tree&tree_id=15&leaf_id=214"))
ou13 = insFld(ou12, gFld("3450", "graph_view.php?action=tree&tree_id=15&leaf_id=798"))
ou14 = insFld(ou13, gFld("<strong>Host:</strong> 3450s3b11", "graph_view.php?action=tree&tree_id=15&leaf_id=799"))
ou14 = insFld(ou13, gFld("<strong>Host:</strong> 3450s3b12", "graph_view.php?action=tree&tree_id=15&leaf_id=800"))
ou14 = insFld(ou13, gFld("<strong>Host:</strong> 3450s3b13", "graph_view.php?action=tree&tree_id=15&leaf_id=801"))
ou13 = insFld(ou12, gFld("SC-Core-Right", "graph_view.php?action=tree&tree_id=15&leaf_id=803"))
ou13 = insFld(ou12, gFld("428 Oakmead", "graph_view.php?action=tree&tree_id=15&leaf_id=205"))
ou14 = insFld(ou13, gFld("<strong>Host:</strong> 3380s3b21", "graph_view.php?action=tree&tree_id=15&leaf_id=789"))
ou14 = insFld(ou13, gFld("<strong>Host:</strong> 3380s3b22", "graph_view.php?action=tree&tree_id=15&leaf_id=796"))
ou0 = insFld(foldersTree, gFld("Santa Clara Z", "graph_view.php?action=tree&tree_id=37"))
ou0 = insFld(foldersTree, gFld("sc-core-left", "graph_view.php?action=tree&tree_id=2"))
ou1 = insFld(ou0, gFld("NFS - VLAN 40", "graph_view.php?action=tree&tree_id=2&leaf_id=548"))
ou0 = insFld(foldersTree, gFld("sc-core-right", "graph_view.php?action=tree&tree_id=4"))
ou0 = insFld(foldersTree, gFld("Shanghai", "graph_view.php?action=tree&tree_id=10"))
ou0 = insFld(foldersTree, gFld("Singapore", "graph_view.php?action=tree&tree_id=9"))
ou0 = insFld(foldersTree, gFld("United Kingdom", "graph_view.php?action=tree&tree_id=20"))
foldersTree.treeID = "t2";
Note that at the point the visual menu cuts off (NFS VLAN 40), the actual page contains code for further trees – but nested down at ou6, then ou15, etc., so I presume this is why they are not visible – they are nest too deep, and no immediate parent trees.
So the question is, how are those values generated, and how do we fix it?
- Attachments
-
- forcedview.jpg (101.18 KiB) Viewed 2839 times
-
- Posts: 9
- Joined: Wed Sep 19, 2007 12:06 pm
I just have this problem
I just have this problem, but I don't know what I must do.
Who is online
Users browsing this forum: No registered users and 0 guests