Ordering Tree Alphabetically

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

Moderators: Developers, Moderators

Post Reply
buppys25
Posts: 8
Joined: Mon Jan 08, 2018 1:18 am

Ordering Tree Alphabetically

Post by buppys25 »

Hello,

I am using cacti Version 1.1.28, having difficulties to order tree by alphabetically.

Please have the current attached.

Thanks in advance.
Attachments
Capture-1.JPG
Capture-1.JPG (25.94 KiB) Viewed 1238 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Ordering Tree Alphabetically

Post by netniV »

Have you set the default sort to Natural or Alphabetical ? Also each branch then needs to be either set to either inherit or one of those.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
buppys25
Posts: 8
Joined: Mon Jan 08, 2018 1:18 am

Re: Ordering Tree Alphabetically

Post by buppys25 »

netniV wrote:Have you set the default sort to Natural or Alphabetical ? Also each branch then needs to be either set to either inherit or one of those.
How can I set default sort, guidance accepted.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Ordering Tree Alphabetically

Post by netniV »

Assuming you are running 1.x, the option is Sorting Type when editing the tree. You also have the same thing if you edit the tree and right click a branch. Make sure all branches are set to inherit and your default option will be used.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
kmayhue
Posts: 10
Joined: Mon Apr 09, 2012 10:20 am
Location: Burlington, VT

Re: Ordering Tree Alphabetically

Post by kmayhue »

I'm having the same issue. When I click on the "Move Up" or "Move Down" buttons it randomly moves the tree. Also, the trees are set to sort "Alphabetically", but that is for listing the individual graphs, not sorting the tree.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Ordering Tree Alphabetically

Post by netniV »

Can you tell me where you are seeing the move up/move down buttons? When I edit a tree, and then click edit to lock it, there are no options for move up/down.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
buppys25
Posts: 8
Joined: Mon Jan 08, 2018 1:18 am

Re: Ordering Tree Alphabetically

Post by buppys25 »

netniV wrote:Can you tell me where you are seeing the move up/move down buttons? When I edit a tree, and then click edit to lock it, there are no options for move up/down.
Console>Tree

There is a Tab for ordering, but it is working as random nature.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Ordering Tree Alphabetically

Post by netniV »

Well, that's interesting because on my installation with no plugins, there is no tab under Console->Tree. Can you post a screenshot?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
buppys25
Posts: 8
Joined: Mon Jan 08, 2018 1:18 am

Re: Ordering Tree Alphabetically

Post by buppys25 »

Sorry, it should be Console>Management>Tree.
Attachments
Capture.JPG
Capture.JPG (26.69 KiB) Viewed 1178 times
kmayhue
Posts: 10
Joined: Mon Apr 09, 2012 10:20 am
Location: Burlington, VT

Re: Ordering Tree Alphabetically

Post by kmayhue »

You may need to click on the "order" column to see the up/down arrows.
Attachments
You may need to click on the "order" column to see the up/down arrows.
You may need to click on the "order" column to see the up/down arrows.
tree.jpg (90.99 KiB) Viewed 1173 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Ordering Tree Alphabetically

Post by netniV »

Ah sorry, I understand now. I thought you meant the sorting within a tree, not the actually tree listing. I'll re-read everything again now :)
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Ordering Tree Alphabetically

Post by netniV »

I've raised this as an issue
https://github.com/Cacti/cacti/issues/1191
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
kmayhue
Posts: 10
Joined: Mon Apr 09, 2012 10:20 am
Location: Burlington, VT

Re: Ordering Tree Alphabetically

Post by kmayhue »

Thanks!
In the meantime I've updated mySQL entries to sort correctly.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Ordering Tree Alphabetically

Post by netniV »

I have created a pull request which combines a fix for the sequence problem and also creates the ability to sort by name ascending/descending.
https://github.com/Cacti/cacti/pull/1192
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest