Customize the opscreen

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Customize the opscreen

Post 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!
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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Customize the opscreen

Post 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>-->
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.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Customize the opscreen

Post by BanditBBS »

Yep, I was just coming back to say I found it and tested :)

Thanks!
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: Customize the opscreen

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

Code: Select all

font-size: .75em;
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...
Former Nagios employee
Locked