Page 1 of 2

Change Nagios interface color

Posted: Tue Oct 18, 2016 4:42 am
by rajasegar
Is there anyway to change the color of the area highlighted.
We have 4 instance and all of them look alike, possibility of mistakes is high.

Please advice on this. We are aware that upgrades will overwrite any changes.
2016-10-18_17-41-19.jpg

Re: Change Nagios interface color

Posted: Tue Oct 18, 2016 10:32 am
by dwhitfield
One way around upgrades breaking things (probably) is using Greasemonkey: https://addons.mozilla.org/en-US/firefo ... asemonkey/

There's also Tampermonkey: https://chrome.google.com/webstore/deta ... fkfo?hl=en

Other browsers may have similar tools. What browser are you using?

Re: Change Nagios interface color

Posted: Tue Oct 18, 2016 10:47 am
by avandemore
Currently there is no functionality for per user themes. I have submitted FR 9820 on the issue. You are free to inquire here or email support in the future for the status.

Also the Custom Includes feature allows custom js, css, and image uploads offering the ability for Nagiox XI users to develop their own solution. Changes made here are persistent through upgrades.

Re: Change Nagios interface color

Posted: Tue Oct 18, 2016 2:59 pm
by nietonoshana
Can you test this component, the most code is bassed on another nagios components,
The idea is install component in Admin -> Manage Components -> Upload & Install
after you can view in components list, anda can confugure, it's necesary enable and write a css code to change a color
Sorry for my bad english, Only test this component in Nagios 5.3
the change is not visible to reload the page

Re: Change Nagios interface color

Posted: Tue Oct 18, 2016 4:01 pm
by rkennedy
EDIT: This is actually included in 5.3.0 now, as a component called 'Custom Includes Component'.

You'll want to upgrade to the latest version, then navigate to Admin -> System Extensions -> Look for 'Custom Includes' - you can append CSS / JS / Images here as needed. If the component is not present for whatever reason after upgrading to 5.3.0, then you can install it manually using this link - http://assets.nagios.com/downloads/nagi ... cludes.zip

--

Thanks @nietonoshana!

I tested it on my end, and it appears to work pretty easily by just adding a <style> tag which you can input custom data into. As an example, here's the HTML inserted into my page -

Code: Select all

<style type='text/css'>
		#header { 
			background-image: url("https://upload.wikimedia.org/wikipedia/commons/9/9e/Penguins_walking_-Moltke_Harbour,_South_Georgia,_British_overseas_territory,_UK-8.jpg");
		}
		</style>

Re: Change Nagios interface color

Posted: Tue Oct 18, 2016 6:38 pm
by rajasegar
dwhitfield wrote:One way around upgrades breaking things (probably) is using Greasemonkey: https://addons.mozilla.org/en-US/firefo ... asemonkey/

There's also Tampermonkey: https://chrome.google.com/webstore/deta ... fkfo?hl=en

Other browsers may have similar tools. What browser are you using?
I am using FIrefox but there are users using IE also.

Re: Change Nagios interface color

Posted: Tue Oct 18, 2016 6:39 pm
by rajasegar
rkennedy wrote:EDIT: This is actually included in 5.3.0 now, as a component called 'Custom Includes Component'.

You'll want to upgrade to the latest version, then navigate to Admin -> System Extensions -> Look for 'Custom Includes' - you can append CSS / JS / Images here as needed. If the component is not present for whatever reason after upgrading to 5.3.0, then you can install it manually using this link - http://assets.nagios.com/downloads/nagi ... cludes.zip

--

Thanks @nietonoshana!

I tested it on my end, and it appears to work pretty easily by just adding a <style> tag which you can input custom data into. As an example, here's the HTML inserted into my page -

Code: Select all

<style type='text/css'>
		#header { 
			background-image: url("https://upload.wikimedia.org/wikipedia/commons/9/9e/Penguins_walking_-Moltke_Harbour,_South_Georgia,_British_overseas_territory,_UK-8.jpg");
		}
		</style>
Can someone advice how to use this to just change the top bar as highlighted in the initial post?
My HTML is very rusty :D

Re: Change Nagios interface color

Posted: Tue Oct 18, 2016 8:44 pm
by Box293
Here's a KB article I just created that shows you how to do exactly that:

https://support.nagios.com/kb/article.php?id=556

Let us know how it goes.

Re: Change Nagios interface color

Posted: Tue Oct 18, 2016 8:57 pm
by rajasegar
Box293 wrote:Here's a KB article I just created that shows you how to do exactly that:

https://support.nagios.com/kb/article.php?id=556

Let us know how it goes.
Troy, you are very helpful as usual..Thanks

Re: Change Nagios interface color

Posted: Tue Oct 18, 2016 9:32 pm
by Box293
Glad to hear it's what you are after :D