Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Tue Sep 25, 2018 8:07 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: Monitor Sorting issue
PostPosted: Thu May 17, 2018 11:10 pm 
Offline

Joined: Fri Oct 28, 2016 12:43 am
Posts: 26
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:
File comment: Monitor View
Monitor.jpg
Monitor.jpg [ 73.73 KiB | Viewed 526 times ]
File comment: Tree Setting
Tree.jpg
Tree.jpg [ 35.89 KiB | Viewed 526 times ]

_________________
CentOS 7
Cacti 1.1.38
Monitor 2.3.4
php 7.1
Top
 Profile  
 
 Post subject: Re: Monitor Sorting issue
PostPosted: Fri May 18, 2018 4:41 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1442
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 Resources:
Cacti Website
Cacti Issues
Cacti Releases

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Monitor Sorting issue
PostPosted: Tue May 22, 2018 9:19 pm 
Offline

Joined: Fri Oct 28, 2016 12:43 am
Posts: 26
Greetings,

Please see attached files, they're all set to Manual.


Attachments:
4.jpg
4.jpg [ 55.95 KiB | Viewed 485 times ]
3.jpg
3.jpg [ 57.74 KiB | Viewed 485 times ]
2.jpg
2.jpg [ 53.99 KiB | Viewed 485 times ]
1.jpg
1.jpg [ 43.86 KiB | Viewed 485 times ]

_________________
CentOS 7
Cacti 1.1.38
Monitor 2.3.4
php 7.1
Top
 Profile  
 
 Post subject: Re: Monitor Sorting issue
PostPosted: Thu May 31, 2018 9:14 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1442
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 Resources:
Cacti Website
Cacti Issues
Cacti Releases

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Monitor Sorting issue
PostPosted: Fri Jun 01, 2018 1:25 am 
Offline

Joined: Fri Oct 28, 2016 12:43 am
Posts: 26
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


Top
 Profile  
 
 Post subject: Re: Monitor Sorting issue
PostPosted: Wed Jun 20, 2018 2:54 am 
Offline

Joined: Fri Oct 28, 2016 12:43 am
Posts: 26
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


Top
 Profile  
 
 Post subject: Re: Monitor Sorting issue
PostPosted: Thu Jun 21, 2018 5:41 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1442
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 Resources:
Cacti Website
Cacti Issues
Cacti Releases

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Monitor Sorting issue
PostPosted: Fri Jun 22, 2018 2:28 am 
Offline

Joined: Fri Oct 28, 2016 12:43 am
Posts: 26
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


Top
 Profile  
 
 Post subject: Re: Monitor Sorting issue
PostPosted: Fri Jun 22, 2018 2:52 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1442
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 Resources:
Cacti Website
Cacti Issues
Cacti Releases

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Monitor Sorting issue
PostPosted: Fri Jun 22, 2018 3:46 am 
Offline

Joined: Fri Oct 28, 2016 12:43 am
Posts: 26
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


Top
 Profile  
 
 Post subject: Re: Monitor Sorting issue
PostPosted: Fri Jun 22, 2018 5:01 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1442
For the plugins, you can grab them from the GitHub releases part. Unarchive them and copy into place.

Code:
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 Resources:
Cacti Website
Cacti Issues
Cacti Releases

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Monitor Sorting issue
PostPosted: Sun Jun 24, 2018 9:59 pm 
Offline

Joined: Fri Oct 28, 2016 12:43 am
Posts: 26
Greetings,

So just overwrite the old files?
Got it, Thanks~~ :wink:

_________________
CentOS 7
Cacti 1.1.38
Monitor 2.3.4
php 7.1


Top
 Profile  
 
 Post subject: Re: Monitor Sorting issue
PostPosted: Mon Jun 25, 2018 4:32 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1442
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 Resources:
Cacti Website
Cacti Issues
Cacti Releases

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Monitor Sorting issue
PostPosted: Wed Jun 27, 2018 1:28 am 
Offline

Joined: Fri Oct 28, 2016 12:43 am
Posts: 26
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group