Monitor Plugin Randomizing Order of Branches

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
eweintra
Posts: 16
Joined: Tue Oct 12, 2010 3:57 pm

Monitor Plugin Randomizing Order of Branches

Post by eweintra »

Hi all-
I'm using the Monitor plugin (2.7) and Cacti version (1.2.27), and I'm running into an issue with the ordering of things on the Monitor tab.

When I view all Trees, with grouping see to Tree, it completely randomizes the branches inside the tree and changes every time, making it very cumbersome to look at. Is there a way to force it to match the branches to how I have my whole tree structure?

For reference, my tree structure is similar to this:

Group
-Project1
--Production
---ProdServer1
---ProdServer2
--Stage
---StageServer1
--Test
---TestServer1
--Dev
---DevServer1
-Project2
--Production
---ProdServer3
---ProdServer4
--Stage
---StageServer2
--Test
---TestServer2
--Dev
---DevServer2
Group2
-Project3
--Production
---ProdServer5
---ProdServer6
--Stage
---StageServer3
--Test
---TestServer3
--Dev
---DevServer3
-Project4
--Production
---ProdServer7
---ProdServer8
--Stage
---StageServer4
--Test
---TestServer4
--Dev
---DevServer4

Monitor winds up doing the trees in the proper order (Group1 and all its branches, then Group2 and all of its branches), but it randomizes the order of the branches within the groups, even though the devices within each branch are properly ordered.

Any ideas?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Monitor Plugin Randomizing Order of Branches

Post by TheWitness »

Send an image to thewitness@cacti.net describing the defect.
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?
eweintra
Posts: 16
Joined: Tue Oct 12, 2010 3:57 pm

Re: Monitor Plugin Randomizing Order of Branches

Post by eweintra »

Email sent.
eweintra
Posts: 16
Joined: Tue Oct 12, 2010 3:57 pm

Re: Monitor Plugin Randomizing Order of Branches

Post by eweintra »

@TheWitness - did you get the email? Any ideas on the issue?
eweintra
Posts: 16
Joined: Tue Oct 12, 2010 3:57 pm

Re: Monitor Plugin Randomizing Order of Branches

Post by eweintra »

Anyone have any ideas? I've been looking through the code and can't even find a spot where it would be randomizing the order as all the queries seem to be ordered....
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Monitor Plugin Randomizing Order of Branches

Post by macan »

send email to me, I will look at it.
pm@kostax.cz
Let the Cacti grow!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests