Page 1 of 1

Modifying status.css

Posted: Tue Feb 07, 2012 7:59 am
3.3.1 Nagios Core installed.

Objective: To alter the default colour scheme for Acknowledging events reported by Nagios.

I attempted to change the colours for ..ACK's events to orange in the status.css stylesheet.
This worked for one view but had unexpected results for another.

.statusHOSTDOWNACK -> background-colour: #F89900
.statusHOSTUNREACHABLEACK -> background-colour: #F89900
.statusBGCRITICALACK -> background-colour: #FF9900
.statusBGDOWNACK -> background-colour: #FF9900
.statusBGUNREACHABLEACK -> background-colour: #FF9900

Stopped nagios ... service nagios stop
restarted ... server nagios start

I have included as attachments ... 3 images ...

The first Shows the display as expected using "View Service Status Details for Host Group"

The second shows the "View Host Status Details for Host Group" ... which is incorrect.

The third is the key contents of my status.css file.

Is there a way of fixing this, or is this a bug?

Regards
Liam

Re: Modifying status.css

Posted: Wed Feb 08, 2012 5:15 pm
by mguthrie
Because of the nested table structure of the Core cgi's, the regular inheritance rules for CSS don't necessarily work properly. I'm actually doing some work on the status.css file as well and my best advice would be to download Firebug for Firefox and experiment with some live CSS changes in the browser. Because of the nested tables you kind of have to hack at the CSS until you get it to do what you want. Sorry I don't have a more refined solution ; )

The other thing you could try would be to start with the exfoliation theme and see if modifying that goes smoother.