Hide access to legacy map

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
DanielB
Posts: 77
Joined: Sun Aug 17, 2014 2:17 pm

Hide access to legacy map

Post by DanielB »

Hi! I hope you are doing well!

I wonder if there is any way to hide the legacy map.

I seem to remember I read about the idea of to keep the map for some time because some unresolved issues such as the case of hosts with multiple parents (or some other mysterious issues mentioned by John :-D).

My idea is to let only available the new version of the map in those clients where there is not problems with the visualization, since the new map has a better visual appearance for cases where we use users with restrictions for to display the hosts (please see this thread).

Thanks in advance for your reply.

Best regards,
Daniel
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Hide access to legacy map

Post by rkennedy »

Are you looking to take out the links for the Map / Legacy link?

Open side.php and remove these 4 lines -

Code: Select all

                        <li>
                                <a href="map.html?host=all" target="<?php echo $link_target;?>">Map</a>
                                <a href="<?php echo $cfg["cgi_base_url"];?>/statusmap.cgi?host=all" target="<?php echo $link_target;?>">(Legacy)</a>
                        </li>
If this isn't what you'd like to do, can you please provide a bit of clarification?
Former Nagios Employee
DanielB
Posts: 77
Joined: Sun Aug 17, 2014 2:17 pm

Re: Hide access to legacy map

Post by DanielB »

Hi, rkennedy.
rkennedy wrote:Are you looking to take out the links for the Map / Legacy link?

Open side.php and remove these 4 lines -

Code: Select all

                        <li>
                                <a href="map.html?host=all" target="<?php echo $link_target;?>">Map</a>
                                <a href="<?php echo $cfg["cgi_base_url"];?>/statusmap.cgi?host=all" target="<?php echo $link_target;?>">(Legacy)</a>
                        </li>
If this isn't what you'd like to do, can you please provide a bit of clarification?
Yes, but only for the legacy map. so I think I just have to comment the second reference (href).

Is there any prevision (according to the road map) about when you think the new network map will be mature enough to remove definitively the legacy map? And, in the same vein, is there some prevision about when you going to publish Nagios Core 4.1.2 with bugs that are now fixed for the new network map?

Thanks for your reply.

Best regards,
Daniel
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Hide access to legacy map

Post by rkennedy »

I'm not sure what the developers have planned with the legacy link. For your environment, remove this line to hide the link.

Code: Select all

<a href="<?php echo $cfg["cgi_base_url"];?>/statusmap.cgi?host=all" target="<?php echo $link_target;?>">(Legacy)</a>
I see in the link that you posted that John was able to fix it. As for a release date, I do not have one available at this point.
Former Nagios Employee
DanielB
Posts: 77
Joined: Sun Aug 17, 2014 2:17 pm

Re: Hide access to legacy map

Post by DanielB »

Hi, rkennedy.
rkennedy wrote:I'm not sure what the developers have planned with the legacy link. For your environment, remove this line to hide the link.

Code: Select all

<a href="<?php echo $cfg["cgi_base_url"];?>/statusmap.cgi?host=all" target="<?php echo $link_target;?>">(Legacy)</a>
I see in the link that you posted that John was able to fix it. As for a release date, I do not have one available at this point.
Thank you for confirming the line corresponding to the legacy map. For now I will only consider comment it.

If you have any news about the publication date of the next release of Nagios Core or the legacy link, please let me know.

Thanks for your reply.

Best regards,
Daniel
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Hide access to legacy map

Post by rkennedy »

At this time I do not have any information available.

As this is resolved, I'm going to close this thread out. Feel free to open a new one if you ever need assistance in the future.
Former Nagios Employee
Locked