The solution to no "tree mode" menu

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

Moderators: Developers, Moderators

Post Reply
greggy
Posts: 1
Joined: Mon Feb 01, 2016 8:37 pm

The solution to no "tree mode" menu

Post by greggy »

Cacti Version: 0.8.8f
OS Version: Deb 8.2
Problem: The "tree mode" is blank ie. no menu shows (see exhibit 1)
Reason: The tree mode view is loaded by a javascript, if it does not load then your problem is related to javascript -- not Cacti.
Approach: The thing to use for troubleshooting javascript is a web browser. Here the browser of choice is firefox because it has an addon tool called "firebug" that will show us what is going on with javascript.

1) Install the addon firebug; then launch it - click on the bug icon in the top right hand corner of browser. (see exhibit 2)
2) When firebug is launched click on Net menu and javascript submenu. (see exhibit 3)
3) In the javascript submenu focus on items in "red" and look at the status column - it will give you what needs to be fixed. (see exibit 4)
4) Click one of the items in red (the plus sign under URL column to expand) then navigate to the html column. (see exhibit 5)

Conclusion
Here you see that (in this case) the root cause of the problem is that the javascript jquery is unable to execute against cacti because javascript is not running as a web site.

The fix
Find your javascript installation and add it to apache.
1) For debian: enter at the shell#whereis javascript -- it should answer that it is at /usr/share/javascript
2) For debian: edit /etc/apache2/apache2.conf and add the lines in exhibit 6 and restart apache (service apache2 restart for debian).

Now you should see your tree mode menu. (exhibit 7)
Attachments
Ex 1-3.PNG
Ex 1-3.PNG (51.72 KiB) Viewed 742 times
Exhibit 4<br />What is the status of our javascript?
Exhibit 4
What is the status of our javascript?
Exhibit 4 - focus on status column.PNG (20.93 KiB) Viewed 742 times
Exhibit 5<br />Lets look at the HTML result of our jquery,<br />this points to why the menu is not there
Exhibit 5
Lets look at the HTML result of our jquery,
this points to why the menu is not there
Exhibit 5 - expand query to HTML navigation.PNG (21.29 KiB) Viewed 742 times
Exhibit 6<br />Just represent your javascript installation root as an apache virtual directory
Exhibit 6
Just represent your javascript installation root as an apache virtual directory
Exhibit 6 - add javascript to apache.PNG (3.86 KiB) Viewed 742 times
Exhibit 7 <br />Here our &quot;tree view&quot; now appears - note that there is nothing in red for firebug
Exhibit 7
Here our "tree view" now appears - note that there is nothing in red for firebug
Exhibit 7 - resolved.PNG (61.79 KiB) Viewed 742 times
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests