Change Nagios interface color

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

Change Nagios interface color

Post 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
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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Change Nagios interface color

Post 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?
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Change Nagios interface color

Post 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.
Previous Nagios employee
nietonoshana
Posts: 26
Joined: Thu Jul 04, 2013 1:05 pm

Re: Change Nagios interface color

Post 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
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Change Nagios interface color

Post 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>
Former Nagios Employee
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Change Nagios interface color

Post 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.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Change Nagios interface color

Post 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
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Change Nagios interface color

Post 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.
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: Change Nagios interface color

Post 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
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Change Nagios interface color

Post by Box293 »

Glad to hear it's what you are after :D
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked