Page 1 of 1
Customize the opscreen
Posted: Wed Jan 15, 2014 2:04 pm
by BanditBBS
Any chance someone could help me figure out which line(s) to comment out to hide the logo on the opscreen component? We know it's nagios already and it takes up valuable screen space. Also, which line would change the font size for the lists, not the headings.
I can probably figure out the font size question...but if you are already going in there
Thanks!
Re: Customize the opscreen
Posted: Wed Jan 15, 2014 2:11 pm
by abrist
The image:
Code: Select all
grep "nagios.png" /usr/local/nagiosxi/html/includes/components/opscreen/*
Output:
Code: Select all
/usr/local/nagiosxi/html/includes/components/opscreen/merlin.php:<a href="http://www.nagios.com" target="_blank"><img src="images/nagios.png" border="0" alt="Nagios" title="Nagios"></a>
Line #214 is what you are looking for. Comment out this whole block (lines 213-217):
Code: Select all
<!--<div class="logo">
<a href="http://www.nagios.com" target="_blank"><img src="images/nagios.png" border="0" alt="Nagios" title="Nagios"></a>
<br clear="right">
<div class="logotext"><?php echo gettext("Operations Screen"); ?></div>
</div>-->
Re: Customize the opscreen
Posted: Wed Jan 15, 2014 2:14 pm
by BanditBBS
Yep, I was just coming back to say I found it and tested
Thanks!
Re: Customize the opscreen
Posted: Wed Jan 15, 2014 2:24 pm
by tmcdonald
/usr/local/nagiosxi/html/includes/components/opscreen/merlin.php line 213 to 217 for the icon:
Code: Select all
<!--<div class="logo">-->
<!--<a href="http://www.nagios.com" target="_blank"><img src="images/nagios.png" border="0" alt="Nagios" title="Nagios"></a>-->
<!--<br clear="right">-->
<!--<div class="logotext">--><?php //echo gettext("Operations Screen"); ?><!--</div>-->
For font size, it's opscreen.php add this to the td { ... } CSS section:
Or whatever you want it to be.
EDIT: I should really check to see if the answer has been posted before I go ahead and post the same thing...