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.
default_statusmap_layout not working
Re: default_statusmap_layout not working
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.
# 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?
Code: Select all
sestatusRe: default_statusmap_layout not working
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
I opened a github bug report here:
https://github.com/NagiosEnterprises/na ... /issues/37
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: default_statusmap_layout not working
Thanks abrist.
Re: default_statusmap_layout not working
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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: default_statusmap_layout not working
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.
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.
Former Nagios employee
Re: default_statusmap_layout not working
Perfect! That worked for me. Thank you.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.
Re: default_statusmap_layout not working
Great to hear! I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee