Tree View with hundreds of graphs per host?

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

Moderators: Developers, Moderators

Post Reply
vasil
Posts: 2
Joined: Fri May 27, 2005 9:41 am

Tree View with hundreds of graphs per host?

Post by vasil »

Is there a preferred method for laying out a graph tree when you have hosts with hundreds of graphs being generated for them? I am graphing input/output bytes/errors/discards for routers/switches within my infrastructure and we end up with over 400 graphs for some routers/switches.

Loading 400 graphs at once on a single page (via tree view) is very inefficient. List view/Preview are both nice, however the tree hierarchy given by Tree View is what I am looking for.

Right now, the tree hierarchy I have is as follows:

Code: Select all

+ Network (Header)
 | \ -- + Switches (Header)
 |         \  ---- Switch (Host + Data Query Index)
 \ --  + Routers (Header)
        | \ ---- Router (Host + Data Query Index)
         \ ---- Router (Host + Data Query Index)
This makes it very easy to manage things in the graph tree, but very hard to view things in the tree view. What I would like in Tree View is something like this:

Code: Select all

+ Network (Header)
  \ -- + Switches (Header)
          \  ---- + Switch1 (Header)
               | \ ------ + Port1 (Header)
               |   | \ -------- In/Out bytes + error/discards (Graph Template)
               |   \ ------ + Port 2 (Header)
               |       \ -------- In/Out bytes + error/discards (Graph Template)
               \ ---- + Switch2 (Header)
This would make viewing the graphs very easy to do, but managing this through the web application is a nightmare (both implementation and maintenance). I did a search back through the forums, but did not find much of relevance, I hope I am not the only one who has tried to do this.

Does anyone have any suggestions as to how I can get this type of Tree View in an easy to implement/manage manner? If you need any further information, please feel free to reply. Thanks a ton!
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

No real easy way to manage it...

But, you can try turning on Expand Hosts and see if that helps your situation. It will give you items under the hosts for the graph templates applied to that host.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
vasil
Posts: 2
Joined: Fri May 27, 2005 9:41 am

Post by vasil »

rony,
Thanks, I applied 'Expand Hosts' to some of my smaller fibre channel brocade switches. This is fine for hosts with smaller numbers of graphs generated (my brocade switches only generate 20 graphs). Do you manage hosts with hundreds of graphs? If so, how do you create your graph trees? Do you just bite the bullet and create a host page with a few hundred graphs showing on it? Or do you split the graphs like I described in my second code block. Thanks for any input! Great product.

edit: was extremely incoherent
FPL_NMS
Posts: 37
Joined: Sun Aug 21, 2005 1:17 am

Maybe this will help

Post by FPL_NMS »

Hey you know what, I too have the same question about the tree capabilities. I ran into a similar scenario with an actual tree on a web page that I had copied from a web site that used DHTML and Java Script. I know it is not PHP, or Perl and no I am by no means a programmer, but I used this and modified it as I went along and it really worked well, maybe someone with the right skills could port it over to Cacti. Attached is the script in zip format and also an idea of what it does on a web site. You can change the arrows that are provided with any image you feel comfortable with in the script, and it allows you to add on leafs within reasonable depths
Attachments
tree.GIF
tree.GIF (82.39 KiB) Viewed 5240 times
tree.GIF
tree.GIF (82.39 KiB) Viewed 5241 times
script25_zip.zip
(5.15 KiB) Downloaded 214 times
moonman
Cacti User
Posts: 101
Joined: Sat Sep 06, 2003 10:25 am

Post by moonman »

I dont see anything new for cacti in your zip file.
cacti work with dhtml tree a lot of time.
try using "group by query index" it will group each interface in its on leaf
if you want you can try my patch for it (search for tree grouping)
it will allow you to automatically add more levels to the tree and order to the graph in the leaf

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

Post by TheWitness »

There is actually a patch out on the web site for this type of functionality, just haven't had the time to ROLL IT.

Larry
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?
FPL_NMS
Posts: 37
Joined: Sun Aug 21, 2005 1:17 am

Post by FPL_NMS »

Larry thanks for the info, I will look for it and plug it in, as for the script I uploaded, it was more from an informational perspective for ideas than an actual plug in or patch. :lol:
User avatar
Frodoger
Cacti User
Posts: 94
Joined: Wed Jun 30, 2004 9:28 am
Location: Germany, Frankfurt am Main
Contact:

Post by Frodoger »

is this patch the feature number 5 in cacti 0.8.6g ???


Frodoger
FPL_NMS
Posts: 37
Joined: Sun Aug 21, 2005 1:17 am

Post by FPL_NMS »

I am using 0.8.6.f and have found the solution to my questions and posting. Observe the Tree management page posted, right now I have 4 deep and it works pretty slick.
Attachments
tree.PNG
tree.PNG (132.45 KiB) Viewed 5179 times
FPL_NMS
Posts: 37
Joined: Sun Aug 21, 2005 1:17 am

Post by FPL_NMS »

(cont'd) example of next page.
Attachments
tree1.PNG
tree1.PNG (91.07 KiB) Viewed 5178 times
FPL_NMS
Posts: 37
Joined: Sun Aug 21, 2005 1:17 am

Post by FPL_NMS »

My only thought now is that I have so many added to each tree in the management window, is it possible to add a + - sign to collapse the tree in management view, this would top the cake.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Look at Tree View single pane view. However, it needs both "Collapse All" and "Expand All" buttons.

TheWitness
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests