How to change XI colors (Green background tables )

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

How to change XI colors (Green background tables )

Post by dlukinski »

Hello XI support

How to change green table background in tables?
- really hard on eyes when tables big and checks are many

Thank you
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: How to change XI colors (Green background tables )

Post by rkennedy »

Can you show us a screenshot of what part / page you're looking to change exactly?
Former Nagios Employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: How to change XI colors (Green background tables )

Post by dlukinski »

rkennedy wrote:Can you show us a screenshot of what part / page you're looking to change exactly?
Here you go (original a lot larger and way too green (make sit hard to read)
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: How to change XI colors (Green background tables )

Post by mcapra »

That particular green exists in many different places in many different stylesheets. You could certainly do a grep search through *.css for #B2FF5F and replace it with your choice color, but this is something that is unlikely to persist through updates to your Nagios XI installation.

Alternate stylesheets is a planned feature for Nagios XI, but it is not implemented in the current version (5.2.8).

In the interim, you might look into something like Stylebot (Chrome), Stylish (Chrome, Firefox), Greasemonkey (Firefox), or Tampermonkey (Chrome) for your solution.


For reference, these are the relevant selectors for the "Host Group Status" page (in base.css):

Code: Select all

.statustable .serviceok {
    background-color: #B2FF5F !important;
    padding: 2px 4px;
}

.statustable .hostup {
    background-color: #B2FF5F !important;
    padding: 2px 4px;
}
Former Nagios employee
https://www.mcapra.com/
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: How to change XI colors (Green background tables )

Post by dlukinski »

mcapra wrote:That particular green exists in many different places in many different stylesheets. You could certainly do a grep search through *.css for #B2FF5F and replace it with your choice color, but this is something that is unlikely to persist through updates to your Nagios XI installation.

Alternate stylesheets is a planned feature for Nagios XI, but it is not implemented in the current version (5.2.8).

In the interim, you might look into something like Stylebot (Chrome), Stylish (Chrome, Firefox), Greasemonkey (Firefox), or Tampermonkey (Chrome) for your solution.


For reference, these are the relevant selectors for the "Host Group Status" page (in base.css):

Code: Select all

.statustable .serviceok {
    background-color: #B2FF5F !important;
    padding: 2px 4px;
}

.statustable .hostup {
    background-color: #B2FF5F !important;
    padding: 2px 4px;
}
Thank you
going to wait until this is implemented as feature in XI
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: How to change XI colors (Green background tables )

Post by mcapra »

Is it alright if I lock this thread?
Former Nagios employee
https://www.mcapra.com/
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: How to change XI colors (Green background tables )

Post by dlukinski »

mcapra wrote:Is it alright if I lock this thread?
Yes Please
Locked