Page 1 of 1

4.2.0 statusmap question

Posted: Tue Aug 16, 2016 6:14 am
by thale13
I don't know if this has been answered before because I don't exactly know how to ask it but....

Is there a way to set the default expansion of the circular balloon status map? We have a number of parent-child relationships setup and I love the circular balloon map, but I would like to have all the children collapsed by default except "Nagios Processes" and the first level of the ring. It makes it easier to find things on it, in my opinion.

If not, no biggie but I had to ask.

T.

Re: 4.2.0 statusmap question

Posted: Tue Aug 16, 2016 2:55 pm
by mcapra
Under /usr/local/nagios/etc/cgi.cfg:

Code: Select all

# DEFAULT STATUSMAP LAYOUT METHOD
# This option allows you to specify the default layout method
# the statusmap CGI should use for drawing hosts.  If you do
# not use this option, the default is to use user-defined
# coordinates.  Valid options are as follows:
#       0 = User-defined coordinates
#       1 = Depth layers
#       2 = Collapsed tree
#       3 = Balanced tree
#       4 = Circular
#       5 = Circular (Marked Up)

default_statusmap_layout=5



# DEFAULT STATUSWRL LAYOUT METHOD
# This option allows you to specify the default layout method
# the statuswrl (VRML) CGI should use for drawing hosts.  If you
# do not use this option, the default is to use user-defined
# coordinates.  Valid options are as follows:
#       0 = User-defined coordinates
#       2 = Collapsed tree
#       3 = Balanced tree
#       4 = Circular

default_statuswrl_layout=4
See if altering those values (then restarting the nagios service) gives you the desired effect.

Re: 4.2.0 statusmap question

Posted: Tue Aug 16, 2016 6:04 pm
by thale13
I will look at that tomorrow, but from what I have read, that is for the old map method, not the new one.

Also, I am fine with the default layout, just wondering if I can have it start collapsed somewhat, that's all.

T.

Re: 4.2.0 statusmap question

Posted: Wed Aug 17, 2016 11:13 am
by mcapra
Ah, I misunderstood the original problem. My mistake :)

There isn't much on the GUI/Configuration end of things that allows you to alter the default state of the map. The best way to get things implemented in nagios core is to raise an issue on the github page:
https://github.com/NagiosEnterprises/nagioscore

I'm not an expert on d3.js, but that seems like an easy enough feature to implement.

Re: 4.2.0 statusmap question

Posted: Thu Aug 18, 2016 7:29 am
by thale13
kk, thanks for the input. I'll send a feature request soon.

T.

Re: 4.2.0 statusmap question

Posted: Thu Aug 18, 2016 9:00 am
by mcapra
Is it alright if we close this thread?

Re: 4.2.0 statusmap question

Posted: Fri Aug 19, 2016 7:36 am
by thale13
Absolutely.

T