CMK2.2 - Show Host Groups in Multiple Columns?

If I go to Monitor → All Hosts, all my hosts are listed in three columns (which works nicely on a wide monitor - they’re all in the top half of the screen, no scrolling required).

If I go to Monitor → Host Groups → (some group), all my hosts are listed in a single column, even if I go to Display → Modify Display options (which defaults to 2 columns, but doesn’t seem to use the second one, let alone a 3rd). Therefore, everything is on the left hand side of the screen, and needs a scroll bar to be able to see all of it.

How can I modify the Host Groups screens to show hosts in multiple columns (to avoid scrolling)?

I had a look in Customize → Views → hostgroups, but have the same problem there - it doesn’t honour the 2 column Display Option. I couldn’t figure out if there were other ways to customise the view to do this - all my google hits seem to find older versions of CMK, so I’m quite probably missing some documentation on this.

Hi,
the same here. It works if you add Grouping …

Karl

Thanks for the suggestion, @kdeutsch - I’m not sure what you mean though. Can you give me some clues how to do what you suggest?

For what it’s worth, I have a series of hosts (during initial installation, they register themselves with the server using the Ansible collection - essentially using cmk-agent-ctl). When they get added, they are given labels. I then have a rule for every group which looks for specific labels and assigns the host to the corresponding group.

Having got this much done, I can now choose to view selections of the whole estate by asking for Monitoring → Host Groups → (which ever group). What else do I need to do?

Hi @coofercat,

  • just open the host group view: Monitor > Host groups
  • Display > Clone builtin view
  • Scroll down to the Grouping section and add “Host groups”

Karl

Thanks for the tips - that got me on the right path. My actual solution was:

  1. Monitor → Host Groups → (pick any group)
  2. Display → Clone builtin view
  3. In “View Properties” change the “Basic Layout” to be “Table” instead of “Balanced Boxes”. The number of columns doesn’t seem to matter -
    image
  4. As I wanted my view to be the ‘default’, I also checked “Make this view available for other users” in the “General Properties” section.
  5. Click “Save and go to view”

This seemed to work nicely for me, but the other users were seeing a table that was about twice as wide as the screen (with a side scroll bar). This looks like a bug, but was solved by going to Display → Modify display options (as them) and changing the number of columns from 2 to 3 (or possibly just to submit “2” again). My guess is that the columns number isn’t properly set until you submit that setting.

I’m sure this is all harder than it needs to be, but I got there in the end - thanks very much for the help!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.