Cacti / cacti

Cacti ™
http://www.cacti.net
GNU General Public License v2.0
1.63k stars 403 forks source link

"Management -> Graphs -> Device" drop-down items #1525

Closed okeozkilic closed 6 years ago

okeozkilic commented 6 years ago

Management -> Graphs Device drop-down box shows only limited number of items (30) when using a web theme other than "Classic".

I can confirm that this situation exists in v1.1.36 and v1.1.37. Tried on Linux and Windows using browsers Vivaldi, Chrome and Firefox.

netniV commented 6 years ago

This is by design.

okeozkilic commented 6 years ago

Please correct me if I am wrong. If I have 100 monitored devices, I will never be able to see all 100 of my devices in the drop-down in question, unless I pick "Classic" web theme.

netniV commented 6 years ago

In themes other than Classic, the drop down is an autocomplete drop down so as you type the list automatically filters. This keeps the UI responsive especially if you have over a thousand devices.

okeozkilic commented 6 years ago

Before going any further, I just want to make some things clear on my side. I am using Cacti for more than 8 years and I like the software and totally appreciate the effort. I am not trying to point my finger at a feature and tell something like "hey guys I found a bug in your nice software please fix it".

I always used Cacti with the "Classic" interface and I see nothing wrong with it. I decided the change my theme to something else and ended up with this issue. This issue of mine is totally easy to fix. I go back to my good old "Classic" view and everything's going to be fine.

This is the first time that I posted an issue on this site and the answers that I got made me feel like I am pointing at something totally unimportant. I really want to improve this software with this tiny discussion of mine and I personally think that the devil is in the details.

If this really is a feature, I believe that it should also be valid for the the "Classic" view. Furthermore, I will not have more that 1000 devices but I will have about 150 and 30 list limit seems to be a little bit less than Cacti can handle.

I am not trying to be arrogant and I apologize if I offended anyone.

netniV commented 6 years ago

Sorry, was in a rush last night as normally I give far more 'fluffy' answers. So, you will be pleased to know I'm going to write this with a bit more time to spare this time 👍


There are differences between the "Classic" and more modern themes. The classic theme maintains the way that Cacti has always been. As such, it doesn't always have some of the more dynamic elements in the same way (user settings via the top right, dynamic filtering on drop downs, etc).

On the point about the number of devices, I agree you may only have a handful but the interface needs to be written with large installations in mind. I am currently monitoring only 132 devices with 1800+ graphs and around the same in datasources. That number is growing and will continue to grow. However, I am also aware that there are datacentre's that have many more than that. If I have 10 graphs per device, imagine what a large datacenter installation would have as they would be graphing UPS Power / Load, Device Power, CPU, Network, Disk, Memory, Temperature, etc.


Like yourself, when I first started using the modern themes, it bugged me. I didn't see all the rows for all devices so I increased the defaults within the default settings and my user settings to be 1000 instead of 30. Unfortunately, I then found that the site was a lot less responsive (might have even timed out at times) so quickly dialled that back to a level I found acceptable. Additionally, I then found out, that if you started typing in the combo boxes, you can see the devices filtering in the drop down but again I didn't like the defaults so I adjusted this and never looked back.

The settings you can adjusts are under Console -> Settings -> Visuals. My current settings are for 100 rows per page and 1000 autocomplete rows. As the autocomplete is only returning a small value (id,name), then it's not a massive hit. However, when things start scaling up I'd definitely have to reduce that because of the database queries involved.

Oh and whilst you are in there tweaking your settings, you will notice that there is an option to completely enable or disable autocomplete. I've never noticed that before as I always have it on but you will see there is explicit text stating that autocomplete is not used in the classic theme.

Finally, if you feel that I've managed to address your questions/issue, feel free to close this. If you find as you are using cacti you have additional issues unless it's directly related, open them as separate issues.


If sometimes myself or one of the other group members seem short in our reply, it's not because we are trying to dismiss you, rather that we do this in our spare time so sometimes we answer quickly as that usually helps point someone in the right direction. To give you two examples:

Hopefully after reading my long waffle you'll be feeling a bit better about your experience with Cacti as we aim to try and have a positive user experience with it. It's one of the main reasons I became a massive contributor to the project because I had mostly great experience (just got to stop finding those pesky bugs). If you are happy with it, you are more likely to mention it to someone else.

Like me, if you feel that some feature or UX (UI experience) isn't quite right, you are encouraged to raise it as an issue/question. Some will be shot down in flames using our spare rocket launchers (not really they just are closed with a reason as to why it wouldn't work), others may float around a while, the good ones get taken on board and applied.

My view is that Themes are like football teams. Everyone favours a different one for different reasons, but i'll not hide that I'm not a massive fan of the classic theme as it reminds me of things I left behind 15 years ago 🏇 👍 😸

cigamit commented 6 years ago

Well that was fast ;) I have a few things to say. I'll chime in in just a few minutes.

cigamit commented 6 years ago

@netniV, is correct that there are some very big Cacti sites, in excess of 25k devices and 1M+ data sources. None of the traditional dropdowns work well at that scale. So, this is what the modern theme started to address, and then contributors (mainly @browniebraun), brought additional themes into the fore.

We refer to the Cacti 'Classic' theme as the tombstone theme, as those blue and red tabs resemble them. We took great care, at least as must as an open source project can, in ensuring that Classic still works like it did, with a few tweaks like locking graphs in order to avoid those nasty dropdowns.

It would be much easier for the project to dump the Classic theme, and maybe one day we will. I know that if @ronytomen had his way, it would be gone already. But for now, we keep it, and since most of the work has already been done, removing it is not a high priority.

That being said, glad to see an old time Cacti user still hanging on. Open Source projects like ours generally don't last more than a decade. We've been at this, most of the Cacti devs now for 16+ years. We try to be respectful to the long time users while we attempt to make the interface a better one for newer users. GitHub has been a breath of fresh air for sure. We now have Cacti in several languages, or at least parts of it. Looks like the Chinese are going to win the battle of the most translated language though. Good for them.

As you can see by the level of activity in the issues list, we have a long way to go on the development map. We have been trying our best to blend in new features while keeping the core of the project stable. So far, there have been some small to medium issues, but nothing catastrophic yet. That is why it took almost two years to go from 0.8.8h to 1.0.0. Now, over 1500 issues later, we think we are on target to keeping Cacti in the network operators toolbox moving forward. It may not be pretty in some areas, but it mainly works.

cigamit commented 6 years ago

I should have also mentioned that @netniV has been a life saver on both the plugin and core front, as have been others too numerous to list here. We appreciate all who contribute to this open source project.

Can you imagine, the core of Cacti with now 20 plugins added, and still over 15 additional to maintain. @netniV, his help has been enormous, even with a new issue from time to time creeping in.

okeozkilic commented 6 years ago

Thank you for the answers/clarifications guys.