Monitor Sorting issue

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
darkhsu
Posts: 29
Joined: Fri Oct 28, 2016 12:43 am

Monitor Sorting issue

Post by darkhsu »

Greetings,

I have a sorting issue on plugin: monitor.
I set the sorting Type to Manual Ordering, and make sure the Tree is also set to Manual.
But the Monitor tab shows that they're not following what I set.

The folder "BQ" should be the first in Monitor (and hosts at same level should be placed before other sub-folder in Tree Setting, like old version)
The correct order in Monitor should be "BQ", "Net-2" , "MS", "KH"

Is there anything I did wrong? or do I misunderstanding something?

Thank you.

CentOS 7
Cacti 1.1.38
Monitor 2.3.4
php 7.1
Attachments
Monitor View
Monitor View
Monitor.jpg (73.73 KiB) Viewed 2564 times
Tree Setting
Tree Setting
Tree.jpg (35.89 KiB) Viewed 2564 times
CentOS 7
Cacti 1.1.38
Monitor 2.3.4
php 7.1
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Monitor Sorting issue

Post by netniV »

It may not be taking all sorting options into account. Can you show the settings that you are using for the tree and also those for the folders (eg, are they set to inherit etc). If we determine it to be an actual bug, I'll probably ask you to open issue at https://github.com/cacti/plugin_monitor/
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
darkhsu
Posts: 29
Joined: Fri Oct 28, 2016 12:43 am

Re: Monitor Sorting issue

Post by darkhsu »

Greetings,

Please see attached files, they're all set to Manual.
Attachments
4.jpg
4.jpg (55.95 KiB) Viewed 2523 times
3.jpg
3.jpg (57.74 KiB) Viewed 2523 times
2.jpg
2.jpg (53.99 KiB) Viewed 2523 times
1.jpg
1.jpg (43.86 KiB) Viewed 2523 times
CentOS 7
Cacti 1.1.38
Monitor 2.3.4
php 7.1
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Monitor Sorting issue

Post by netniV »

OK, so the issue here is that the monitor plugin is putting the parent AFTER the children? We could probably set an option for that. Can you open an issue tracker on https://github.com/cacti/plugin_monitor/issues and I should be able to look at it over the next week.
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
darkhsu
Posts: 29
Joined: Fri Oct 28, 2016 12:43 am

Re: Monitor Sorting issue

Post by darkhsu »

Greetings,

Done, the link is
https://github.com/Cacti/plugin_monitor/issues/67

Thanks!! :D
CentOS 7
Cacti 1.1.38
Monitor 2.3.4
php 7.1
darkhsu
Posts: 29
Joined: Fri Oct 28, 2016 12:43 am

Re: Monitor Sorting issue

Post by darkhsu »

Greetings,

I just find out that in [Management]-[Tree]
The Available Devices can't not show all devices.
It only show top 20 devices.
Not sure is it with monitor plugin?
CentOS 7
Cacti 1.1.38
Monitor 2.3.4
php 7.1
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Monitor Sorting issue

Post by netniV »

In cacti 1.x, all device drop downs show only the first x devices (configurable in settings). To see others, you start typing and it limits the list to the first x matches.
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
darkhsu
Posts: 29
Joined: Fri Oct 28, 2016 12:43 am

Re: Monitor Sorting issue

Post by darkhsu »

Greetings,

Thanks, I find the setting at [Settings] - [Visual]
I turn off [Autocomplete Enabled] and the drop down list with all devices is back! :lol:
I like old style~ :oops:

But still, at [Management]-[Tree], the [Available Devices] is still at max of 20 devices
Did I missing something?

BTW, how to upgrade this plugin?
CentOS 7
Cacti 1.1.38
Monitor 2.3.4
php 7.1
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Monitor Sorting issue

Post by netniV »

Autocomplete is not a plugin. It's built into the core product. IF you are talking about the area when you editing a tree, that doesn't follow the autocomplete drop down as it's not an autocomplete drop down. It also displays any graphs as well as devices and you really would have to much information if they were all displayed slowing the entire page 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
darkhsu
Posts: 29
Joined: Fri Oct 28, 2016 12:43 am

Re: Monitor Sorting issue

Post by darkhsu »

Greetings,

Got it. Then I'll try to get used to it. :roll:

Sorry, I mean the Monitor plugin, how to upgrade it?
Didn't find out how to at there either at GitHub.
CentOS 7
Cacti 1.1.38
Monitor 2.3.4
php 7.1
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Monitor Sorting issue

Post by netniV »

For the plugins, you can grab them from the GitHub releases part. Unarchive them and copy into place.

Code: Select all

cd <cacti>/plugins
wget https://github.com/Cacti/plugin_monitor/archive/v2.3.4.tar.gz -O plugin_monitor-2.3.4.tar.gz
tar zxvf plugin_monitor-2.3.4.tar.gz
cp -Rv plugin_monitor-2.3.4/* monitor/
rm -rf plugin_monitor-2.3.4 plugin_monitor-2.3.4.tar.gz
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
darkhsu
Posts: 29
Joined: Fri Oct 28, 2016 12:43 am

Re: Monitor Sorting issue

Post by darkhsu »

Greetings,

So just overwrite the old files?
Got it, Thanks~~ :wink:
CentOS 7
Cacti 1.1.38
Monitor 2.3.4
php 7.1
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Monitor Sorting issue

Post by netniV »

Pretty much. Though sometimes a plugin may remove a file from use so it's always worth checking if a file has been removed and then remove it from your live directory manually.
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
darkhsu
Posts: 29
Joined: Fri Oct 28, 2016 12:43 am

Re: Monitor Sorting issue

Post by darkhsu »

netniV wrote:Pretty much. Though sometimes a plugin may remove a file from use so it's always worth checking if a file has been removed and then remove it from your live directory manually.
Understood, Thanks~ :wink:
CentOS 7
Cacti 1.1.38
Monitor 2.3.4
php 7.1
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests