Monitor Sorting issue

General discussion about Plugins for Cacti

Moderators: Moderators, Developers

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

Monitor Sorting issue

#1 Post by darkhsu » Thu May 17, 2018 11:10 pm

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.jpg
Monitor View
Monitor.jpg (73.73 KiB) Viewed 1060 times
Tree.jpg
Tree Setting
Tree.jpg (35.89 KiB) Viewed 1060 times
CentOS 7
Cacti 1.1.38
Monitor 2.3.4
php 7.1

netniV
Cacti Guru User
Posts: 2686
Joined: Sun Aug 27, 2017 12:05 am

Re: Monitor Sorting issue

#2 Post by netniV » Fri May 18, 2018 4:41 pm

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/

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

Re: Monitor Sorting issue

#3 Post by darkhsu » Tue May 22, 2018 9:19 pm

Greetings,

Please see attached files, they're all set to Manual.
Attachments
4.jpg
4.jpg (55.95 KiB) Viewed 1019 times
3.jpg
3.jpg (57.74 KiB) Viewed 1019 times
2.jpg
2.jpg (53.99 KiB) Viewed 1019 times
1.jpg
1.jpg (43.86 KiB) Viewed 1019 times
CentOS 7
Cacti 1.1.38
Monitor 2.3.4
php 7.1

netniV
Cacti Guru User
Posts: 2686
Joined: Sun Aug 27, 2017 12:05 am

Re: Monitor Sorting issue

#4 Post by netniV » Thu May 31, 2018 9:14 am

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.

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

Re: Monitor Sorting issue

#5 Post by darkhsu » Fri Jun 01, 2018 1:25 am

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

#6 Post by darkhsu » Wed Jun 20, 2018 2:54 am

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: 2686
Joined: Sun Aug 27, 2017 12:05 am

Re: Monitor Sorting issue

#7 Post by netniV » Thu Jun 21, 2018 5:41 pm

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.

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

Re: Monitor Sorting issue

#8 Post by darkhsu » Fri Jun 22, 2018 2:28 am

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: 2686
Joined: Sun Aug 27, 2017 12:05 am

Re: Monitor Sorting issue

#9 Post by netniV » Fri Jun 22, 2018 2:52 am

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.

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

Re: Monitor Sorting issue

#10 Post by darkhsu » Fri Jun 22, 2018 3:46 am

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: 2686
Joined: Sun Aug 27, 2017 12:05 am

Re: Monitor Sorting issue

#11 Post by netniV » Fri Jun 22, 2018 5:01 am

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

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

Re: Monitor Sorting issue

#12 Post by darkhsu » Sun Jun 24, 2018 9:59 pm

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: 2686
Joined: Sun Aug 27, 2017 12:05 am

Re: Monitor Sorting issue

#13 Post by netniV » Mon Jun 25, 2018 4:32 am

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.

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

Re: Monitor Sorting issue

#14 Post by darkhsu » Wed Jun 27, 2018 1:28 am

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