Changing the Web Interface Layout

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Changing the Web Interface Layout

Post by neworderfac33 »

Good afternoon,

I have noticed that within the Nagios Core web interface, in (for example) the Host Group summary, the HostGroups into which I have grouped my hosts are laid out in alphabetical order, left to right, top to bottom.

I have been asked if there are any options to change this. Is it even possible?

Thanks in advance

Pete
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Changing the Web Interface Layout

Post by ssax »

Can you be more specific on how you would like it changed?
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Re: Changing the Web Interface Layout

Post by neworderfac33 »

Good afternoon,

My boss doesn't like the way in which groups of hosts containing different numbers of hosts are laid out on the screen. So, for example, it might look like this:

Code: Select all

 _______________________ __________________________________
|                                       |                                                           |
|                                       |                                                           |
|    Hostgroup A                 |                       Hostgroup B                   |
|                                       |                                                           |
|______________________ |                                                          |
|                                        |                                                          |
|                                        |_________________________________|
|     Hostgroup C                 |                                                          |
|                                        |                                                          |
|_______________________|                                                          |
|                                        |                                                          |
|    Hostgroup D                  |                  HostGroup E                      |
|_______________________|                                                          |
                                         |                                                          |
                                          |_________________________________|
He wants to see Hostgroup C vertically positioned at the same point as Hostgroup E, Hostgroup D vertically positioned after Hostgroup, and so on.

In other words, the host groups won't be tiled, but will be displayed in rows, with white space where hostgroups are longer or shorter than than the one to their left or right.

Does that make sense?

Thanks and have a good weekend.

Pete
Last edited by tmcdonald on Fri Sep 11, 2015 10:42 am, edited 1 time in total.
Reason: Use [code][/code] tags to preserve whitespace!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Changing the Web Interface Layout

Post by tmcdonald »

It's certainly possible, but it would require re-writing the part of Core that builds the page. How big or small of a change this would be, I can't say.
Former Nagios employee
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Re: Changing the Web Interface Layout

Post by neworderfac33 »

That's all I needed to know - thanks very much! :-)

This thread can now be closed.

Pete
Locked