Page 1 of 1
Hide access to legacy map
Posted: Tue Dec 15, 2015 4:24 pm
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

).
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
Re: Hide access to legacy map
Posted: Tue Dec 15, 2015 5:23 pm
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?
Re: Hide access to legacy map
Posted: Wed Dec 16, 2015 9:38 am
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
Re: Hide access to legacy map
Posted: Wed Dec 16, 2015 11:05 am
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.
Re: Hide access to legacy map
Posted: Wed Dec 23, 2015 8:15 am
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
Re: Hide access to legacy map
Posted: Wed Dec 23, 2015 10:43 am
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.