How to change alert colors in Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
KDA
Posts: 16
Joined: Wed Aug 11, 2021 1:28 am

How to change alert colors in Nagios XI

Post by KDA »

Hi

I am trying to change the color of the service state = UNKNOWN from the default orange to BLUE. Despite a lot of googling, I have not found a way... other than this comment in /usr/local/nagios/share/stylesheets/common.css:

/* these are reference colors for the color scheme:

color dark light border
OK: green 88d066 cce8cc 777777
WARNING: yellow ffff00 feffc1 777777
CRITICAL: red f88888 ffdddd 777777
PENDING: grey acacac fefefe 777777
UNKNOWN: orange ffbb55 ffddaa 777777
UNREACHABLE: orange ffbb55 ffddaa 777777
INDETERMINATE: purple ddccff 777777
PROBLEMS: blue aaccff 777777

*/

But I have not found where to actually change them/where they are in fact used.

Any tips?

regards
Håkon
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: How to change alert colors in Nagios XI

Post by benjaminsmith »

Hi Håkon,

Most of those colors are set in the base.css file. However, the best way to handle CSS overrides would be to use the Custom Includes Component, so your modifications will not be lost during any upgrades.

See: Nagios XI - Using The Custom Includes Component

Nagios XI has a number of dashlets/components and those may be different from what's in the base.css file, so I would recommend using the Chrome or Firefox developer tools to locate the correct CSS class and then add your updates in the custom includes component.

Let us know if you need any assistance.

--Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked