How to remove footer

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

How to remove footer

Post by rajasegar »

Please advice how to remove the following Check for Updates line at the bottom of every page.
It is just wasting the limited screen area and never used.
footer.png
What is the use of the empty space here? I have never seen anything shown on this line.
empty_space.png
Thanks.
You do not have the required permissions to view the files attached to this post.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to remove footer

Post by tmcdonald »

Not seeing that empty space on my screen, but to remove the check:

Comment out (HTML comment) the update line in /usr/local/nagiosxi/html/includes/footer.inc.php like so:

Code: Select all

<!--<a href="<?php echo get_update_check_url();?>" target="_blank"><?php echo gettext("Check for Updates"); ?> <i class="icon-share"></i></a>-->
Former Nagios employee
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: How to remove footer

Post by BanditBBS »

That dead space is shown on my screen as well using Chrome and IE.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to remove footer

Post by tmcdonald »

You guys might have those fancy 1900x1200 monitors. We are working on 800x600 CRTs still. (Not really).

Could just be screen resolution, number of toolbars on the browser, etc. I have the whitespace but it is only about 20 pixels or so (half the width of the copyright bar).
Former Nagios employee
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: How to remove footer

Post by Box293 »

I've noticed this too using the Classic XI theme.

With the XI 2014 theme it is aligned with the copyright notice.

Perhaps the Classic theme could be updated to have the "Check for Updates" aligned the same way.

I've also noticed the deadspace, there is more deadspace with the Classic theme, the 2014 theme has deadspace but not as much.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: How to remove footer

Post by rajasegar »

tmcdonald wrote:Not seeing that empty space on my screen, but to remove the check:

Comment out (HTML comment) the update line in /usr/local/nagiosxi/html/includes/footer.inc.php like so:

Code: Select all

<!--<a href="<?php echo get_update_check_url();?>" target="_blank"><?php echo gettext("Check for Updates"); ?> <i class="icon-share"></i></a>-->
I am using Firefox latest version on notebook 1366 x 768 and also 1284 x 1024 screen. Both show same empty space.

There were 2 location in the file with the same code. Remarked both.
However more empty space is what I got.
checkpdates1.png
Here is my firefox top view, not statusbar and no toolbars on top except for the standard address bar.
firefox1.png
You do not have the required permissions to view the files attached to this post.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to remove footer

Post by tmcdonald »

This is why I am not a developer :)

This seems to have been fixed in 2014 since I am not seeing it on mine. Checked one of lmiltchev's 2012R2.9 boxes (unmodified) and nothing is there either.

You might have some remaining HTML divs sticking around. There are two sections in that file, one for 2014 style and one for Classic. For the Classic I did the following:

Code: Select all

    <?php //if (is_admin()) { // Only display update link for admin users ?>
    <!--<div id="checkforupdates">
        <a href="<?php //echo get_update_check_url();?>" target="_blank"><img src="<?php //echo get_base_url();?>images/checkforupdates.png" alt="Check for updates" title="Check for updates" border="0"></a>
    </div>-->
    <?php //} ?>
and this is what I have:

Image

Maybe not the "best" fix but it seemed to work for me. The code should be the same in 2012R2.9.
Former Nagios employee
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: How to remove footer

Post by rajasegar »

tmcdonald wrote:This is why I am not a developer :)

This seems to have been fixed in 2014 since I am not seeing it on mine. Checked one of lmiltchev's 2012R2.9 boxes (unmodified) and nothing is there either.

You might have some remaining HTML divs sticking around. There are two sections in that file, one for 2014 style and one for Classic. For the Classic I did the following:

Code: Select all

    <?php //if (is_admin()) { // Only display update link for admin users ?>
    <!--<div id="checkforupdates">
        <a href="<?php //echo get_update_check_url();?>" target="_blank"><img src="<?php //echo get_base_url();?>images/checkforupdates.png" alt="Check for updates" title="Check for updates" border="0"></a>
    </div>-->
    <?php //} ?>
and this is what I have:

Image

Maybe not the "best" fix but it seemed to work for me. The code should be the same in 2012R2.9.

Code: Select all

    <!-- <div class="span6 footer-left">
                <?php echo get_product_name(); ?> <?php echo get_product_version(); ?>
                <?php if (is_admin()) { // Admins only for updates ?>
                  •  
             <!--<a href="<?php echo get_update_check_url();?>" target="_blank"><?php echo gettext("Check for Updates"); ?> <i class="icon-share"></i></a>-->
                <?php } ?>
            </div> -->

    <!-- <div id="checkforupdates">
     <!--<a href="<?php echo get_update_check_url();?>" target="_blank"><img src="<?php echo get_base_url();?>images/checkforupdates.png" alt="Check for updates" title="Check for updates" border="0"></a>-->
    </div> -->

Since the check for updates is gone, the blue bar should move all the way to the bottom.
In 2014 the bar is just too thick.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to remove footer

Post by tmcdonald »

I can put in a request to the devs for this, since any changes I come up with will be both temporary and probably just a hack.
Former Nagios employee
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: How to remove footer

Post by jomann »

This will be fixed in the newest version of XI, but for those of you who want it now ... I've put together a zip attached with the changed files.

Instructions:
1. Unzip the files into /tmp
2. Move and replace the files:

Code: Select all

mv footer.inc.php /usr/local/nagiosxi/html/includes/footer.inc.php
mv core.js /usr/local/nagiosxi/html/includes/js/core.js
mv nagiosxi.css /usr/local/nagiosxi/html/includes/css/nagiosxi.css
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked