Page 1 of 1
default_statusmap_layout not working
Posted: Fri Apr 10, 2015 6:38 am
by naguser
Hello,
I'm new to Nagios and loving it. The one thing I can't get is the map view to default to Balanced Tree Horizontal.
I found default_statusmap_layout in cgi.cfg but any setting is ignored and it defaults to circular. I restart nagios after changing.
Using Nagios Core 4.1.0rc1 on CentOS 7.1.1503
Thanks.
Re: default_statusmap_layout not working
Posted: Fri Apr 10, 2015 3:03 pm
by jolson
The following worked for me:
# 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 (commented out)
default_statusmap_layout=3
The map displayed properly after adjusting the above setting - no restart required. I am wondering if CentOS 7 has something to do with it. Do you have selinux enabled?
Please note that I tested with 4.0.8. I did not test with your version.
Re: default_statusmap_layout not working
Posted: Fri Apr 10, 2015 3:17 pm
by abrist
I just tested this with 4.1. It is indeed not working. I doubt the new map respects any of the cgi layout settings.
I opened a github bug report here:
https://github.com/NagiosEnterprises/na ... /issues/37
Re: default_statusmap_layout not working
Posted: Mon Apr 13, 2015 2:39 pm
by naguser
Thanks abrist.
Re: default_statusmap_layout not working
Posted: Mon Apr 13, 2015 3:08 pm
by abrist
No problem. You may want to watch the github thread as that is where this issue will most likely get updated by Eric[0] or one of the other core devs.
Re: default_statusmap_layout not working
Posted: Sun May 10, 2015 3:55 am
by tmcdonald
For what it's worth, I looked into this issue and made some comments on the GitHub page:
https://github.com/NagiosEnterprises/na ... -100601221
Basically, the core cgi files still respect the setting, but for some reason the new maps in 4.1 do not. I documented how to set the defaults in my comments there.
Re: default_statusmap_layout not working
Posted: Sun May 10, 2015 6:17 am
by naguser
tmcdonald wrote:For what it's worth, I looked into this issue and made some comments on the GitHub page:
https://github.com/NagiosEnterprises/na ... -100601221
Basically, the core cgi files still respect the setting, but for some reason the new maps in 4.1 do not. I documented how to set the defaults in my comments there.
Perfect! That worked for me. Thank you.
Re: default_statusmap_layout not working
Posted: Mon May 11, 2015 9:32 am
by tmcdonald
Great to hear! I'll be closing this thread now, but feel free to open another if you need anything in the future!