nmidDynTree

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: nmidDynTree

Post by phalek »

Need to work on this. But I'd like to get nmidDynTree and nmidWeb2 combined, as they both use jquery and also interfere with each other

I'll have a solution for this hopefully end of this week.
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
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Re: nmidDynTree

Post by zoemu »

phalek wrote:It's an ajax call to the server, so it's actually calling the following URL to get the tree:

http://<server>/cacti/plugins/nmidDynTree/getTree.php
or
http://<server>/plugins/nmidDynTree/getTree.php

try these and check if you do get any data back.
Phalek:

I get the following error when trying to run it!

Code: Select all

Fatal error: Call to undefined function tree_tier() in /usr/share/cacti/site/lib/html_tree.php on line 617 
Thanks
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: nmidDynTree

Post by phalek »

Use the attached file
Attachments
html_tree.zip
(12.68 KiB) Downloaded 260 times
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
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Re: nmidDynTree

Post by zoemu »

Sorry I should have read the post from the beginning

I have added

Code: Select all

global $colors, $config;
include_once($config["library_path"] . "/tree.php");
to the Create_dhtm_tree function and it is working great now.....

Thanks

LA
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: nmidDynTree

Post by phalek »

Now, if you have any issues, please add them to the following page.

http://urbansoftware.kayako.com

That way I can keep track on all the issues with the different NMID plugins in one place
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
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Re: nmidDynTree

Post by zoemu »

I have a problem, it runs ok in Firefox blank column on IE...... Anyone has encountered this problem before ?/?
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Re: nmidDynTree

Post by zoemu »

zoemu wrote:I have a problem, it runs ok in Firefox blank column on IE...... Anyone has encountered this problem before ?/?
to add furthermore to this... the above problem seems to be very wierd. Here at the Office we use ISA Proxy Server (no my choice). When the proxy setting are on, the nmidtree does not load and a blank page is displayed. but, When the proxy setting are not on the Menu loads with no problems.

I know this is a very specific error, but I was wondering if anyone has exporienced this problem.

This proxy issue seems to affect only IE, Firefox works ok with either proxy setting on or off

thanks

LA
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: nmidDynTree

Post by TheWitness »

Likely missing a quote around an HTML tag property somewhere.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: nmidDynTree

Post by phalek »

Going to check this.

Zoemu, can you send me the output of the getTree.php file ? You need to manually call it in your IE browser.
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
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Re: nmidDynTree

Post by zoemu »

Notice: Undefined offset: 19 in /usr/share/cacti/site/lib/html_tree.php on line 726 Notice: Undefined offset: 70 in /usr/share/cacti/site/lib/html_tree.php on line 726 Notice: Undefined offset: 90 in /usr/share/cacti/site/lib/html_tree.php on line 726 Notice: Undefined offset: 98 in /usr/share/cacti/site/lib/html_tree.php on line 726 Notice: Undefined offset: 209 in /usr/share/cacti/site/lib/html_tree.php on line 726 Notice: Undefined offset: 216 in /usr/share/cacti/site/lib/html_tree.php on line 726
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: nmidDynTree

Post by phalek »

Hm, you should at least get back some sort of tree.

I assume you're tree may be a bit "differen" ...

Can you send me a screenshot of the tree and the output of the getTree.php file (using FF) via mail to support @ nmid-plugins.de ?
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
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Re: nmidDynTree

Post by zoemu »

sent!
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: nmidDynTree

Post by phalek »

Ok, found and fixed the issues and also made the tree truely dynamical.

Tested on Cacti 0.8.7i, but should work in g and h too.

Step 1: Edit include/top_graph_header.php and comment out the treeview javascript:

Code: Select all

        <script type="text/javascript" src="<?php echo $config['url_path']; ?>include/layout.js"></script>
<!--
        <script type="text/javascript" src="<?php echo $config['url_path']; ?>include/treeview/ua.js"></script>
        <script type="text/javascript" src="<?php echo $config['url_path']; ?>include/treeview/ftiens4.js"></script>
-->
        <script type="text/javascript" src="<?php echo $config['url_path']; ?>include/jscalendar/calendar.js"></script>

Step 2: Edit lib/html_tree.php and change/replace the grow_dhtml_trees() function with the attached one.
grow_dhtml_trees.txt
(3.21 KiB) Downloaded 228 times
Step 3: Install version 1.01 of the nmidDynTree plugin
http://redmine.nmid-plugins.de/attachme ... _v1.01.tgz
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
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Re: nmidDynTree

Post by zoemu »

Thanks those changes fixed it....it's working like a charm now
:D :D :D
LA
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Re: nmidDynTree

Post by zoemu »

Hi

all of the suddden i started getting this error

on nmidDynTree

NoticeG:\cacti\plugins\nmidDynTree\getTree.php236

NoticeG:\cacti\plugins\nmidDynTree\getTree.php236

NoticeG:\cacti\plugins\nmidDynTree\getTree.php236

NoticeG:\cacti\plugins\nmidDynTree\getTree.php236

NoticeG:\cacti\plugins\nmidDynTree\getTree.php236

NoticeG:\cacti\plugins\nmidDynTree\getTree.php236

NoticeG:\cacti\plugins\nmidDynTree\getTree.php236


remeber that I'm on windows
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests