treeview Problem

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

Moderators: Developers, Moderators

Post Reply
robertocaramia
Posts: 4
Joined: Wed Aug 14, 2013 4:08 am

treeview Problem

Post by robertocaramia »

hi i'm experiencies problem with treeview it is flat and it do not load the folder icon.
in attach the screenshot of the problem.
I work with cacti 0.8.8a on a Debian 7 server with this plugin:

Monitor 1.3 Device Monitoring General Active Jimmy Conner
Remote 0.1 Host Remote Console Utility General Active The Cacti Group
Ipsubnet .4f IP subnet Calculator IPv4 IPv6 General Active Jean-Michel Pepin
Domains 0.1 Multiple User Domains for Cacti General Active The Cacti Group
Ugroup 0.2 Multiple User Groups for Cacti General Active The Cacti Group
Discovery 1.5 Network Discovery General Active Jimmy Conner
NmidPhpip 0.3.9a NMID phpIP Plugin Old PIA Active Thomas Urban
NmidSmokeping 1.12 NMID SmokePing Plugin General Active Thomas Urban
NmidWeb2 0.4 NMID Web2 Plugin General Active Thomas Urban
Weathermap 0.97b PHP Network Weathermap Old PIA Active Howard Jones
Realtime 0.5 Realtime Graph Viewer General Active Mathieu Virbel
Superlinks 1.4 SuperLinks General Awaiting Configuration Howard Jones
Telnet 0.5 Telnet and ssh http and htts Plugin Old PIA Active Jack Hack

any idea?
Attachments
treeview problem.png
treeview problem.png (207.93 KiB) Viewed 2351 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: treeview Problem

Post by phalek »

Hi

It could be related to nmidWeb2 as it's not tested with 0.8.8a. Please de-install it.

Other than that: Did you do any cacti source file patches ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
robertocaramia
Posts: 4
Joined: Wed Aug 14, 2013 4:08 am

Re: treeview Problem

Post by robertocaramia »

Hi Phalek,
I have removed the nmidWeb2 plugin but it doesn't fix the problem,
I have patched the file html.php to make it work with the nmidphpip plugin (the problem was that the sub menu of the plugin doesn't work now it work but i have the same problem of the treeview except for the first row on attach screenshot.) on attach the patched file.
Thanks a lot.
Attachments
Nmidphpip.png
Nmidphpip.png (130.05 KiB) Viewed 2328 times
html.php.rar
(7.75 KiB) Downloaded 75 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: treeview Problem

Post by phalek »

Now we're talking about two separate things.

Your first screenshot refers to the normal Cacti tree, while the last one is showing the nmidphpip tree.

It looks like your Cacti tree has this format:

Code: Select all

root 
   - Sub Tree

root2
   - Sub Tree

Unfortunately, nmidphpip only supports this:

Code: Select all

root
   - Sub Tree1
      - Device1
      - Device2
   - Sub Tree2
      - Device3
      - Device4
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
robertocaramia
Posts: 4
Joined: Wed Aug 14, 2013 4:08 am

Re: treeview Problem

Post by robertocaramia »

Thanks Phalek I have considered the two problem separately and in this way i can fix both.

For the first problem (the treeview of the nmidphpip plugin) there was some error in two different file

1. in /usr/share/cacti/site/plugins/nmidPhpip/display.php at the line 1362

original code: </style

fixed code: </style>

2. in /usr/share/cacti/site/plugins/nmidPhpip/get_data.php at the line 88

original code: $text .= '</ul>'."\n";

fixed code: // $text .= '</ul>'."\n";

i add a comment because there was a wrong </ul>

For the second problem (the treeview of the Graphs tab) i have edited the /usr/share/cacti/site/graph_view.php to add the style like the nmidphpip plugin (on attach the edited code FYC).

The graphical result on attach.
Attachments
graph_view.rar
(7.02 KiB) Downloaded 96 times
graphs.png
graphs.png (145.04 KiB) Viewed 2309 times
nmidphpip.png
nmidphpip.png (131.8 KiB) Viewed 2309 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: treeview Problem

Post by phalek »

Oh cool. Great thank for that !

Going to implement that fix in the code. Haven't looked into that code for about 2 years ... :-)
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
dwilliam123
Posts: 2
Joined: Tue Aug 27, 2013 2:30 pm

Re: treeview Problem

Post by dwilliam123 »

Hi.

I am using Ubuntu 12.04 and recently upgraded from 8.8a to 8.8b using Paul Gevers PPA and the treeview stopped working for me as well as you described in your first post. I do not use the "nmidWeb2" plugin so this was not the issue for me.

I found in the forums another post ( http://forums.cacti.net/viewtopic.php?f=21&t=49630 ) regarding the new treeview changes that there is a dependency for "libjs-jquery" and "libjs-jquery-cookie". I installed them and this has resolved the issue. It appears that these two dependencies should be added to the PPA and they will get installed. As a side note, I have not added the PPA to my system, I install it manually by downloading the deb file.

sudo apt-get install libjs-jquery (this one was on my system)
sudo apt-get install libjs-jquery-cookie (this one was missing and once installed resolved the treeview issue.

Take care.

Dan
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: treeview Problem

Post by paulgevers »

dwilliam123 wrote:It appears that these two dependencies should be added to the PPA and they will get installed.
They are part of the recommends.
dwilliam123 wrote:As a side note, I have not added the PPA to my system, I install it manually by downloading the deb file.
This makes all the difference. If you had, the recommends would have been installed automatically.
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
dwilliam123
Posts: 2
Joined: Tue Aug 27, 2013 2:30 pm

Re: treeview Problem

Post by dwilliam123 »

paulgevers wrote:
dwilliam123 wrote:It appears that these two dependencies should be added to the PPA and they will get installed.
They are part of the recommends.
dwilliam123 wrote:As a side note, I have not added the PPA to my system, I install it manually by downloading the deb file.
This makes all the difference. If you had, the recommends would have been installed automatically.
This makes sense, thanks for clearing this up for me.

Dan
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests