default_statusmap_layout not working

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
naguser
Posts: 4
Joined: Tue Jul 30, 2013 6:47 am

default_statusmap_layout not working

Post 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.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: default_statusmap_layout not working

Post 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?

Code: Select all

sestatus
Please note that I tested with 4.0.8. I did not test with your version.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: default_statusmap_layout not working

Post 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
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.
naguser
Posts: 4
Joined: Tue Jul 30, 2013 6:47 am

Re: default_statusmap_layout not working

Post by naguser »

Thanks abrist.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: default_statusmap_layout not working

Post 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.
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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: default_statusmap_layout not working

Post 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.
Former Nagios employee
naguser
Posts: 4
Joined: Tue Jul 30, 2013 6:47 am

Re: default_statusmap_layout not working

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: default_statusmap_layout not working

Post 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!
Former Nagios employee
Locked