4.2.0 statusmap question

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
thale13
Posts: 5
Joined: Tue Aug 02, 2016 1:46 pm

4.2.0 statusmap question

Post 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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: 4.2.0 statusmap question

Post 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.
Former Nagios employee
https://www.mcapra.com/
thale13
Posts: 5
Joined: Tue Aug 02, 2016 1:46 pm

Re: 4.2.0 statusmap question

Post 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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: 4.2.0 statusmap question

Post 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.
Former Nagios employee
https://www.mcapra.com/
thale13
Posts: 5
Joined: Tue Aug 02, 2016 1:46 pm

Re: 4.2.0 statusmap question

Post by thale13 »

kk, thanks for the input. I'll send a feature request soon.

T.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: 4.2.0 statusmap question

Post by mcapra »

Is it alright if we close this thread?
Former Nagios employee
https://www.mcapra.com/
thale13
Posts: 5
Joined: Tue Aug 02, 2016 1:46 pm

Re: 4.2.0 statusmap question

Post by thale13 »

Absolutely.

T
Locked