Modifying status.css

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
[email protected]
Posts: 19
Joined: Tue Feb 07, 2012 7:29 am

Modifying status.css

Post by [email protected] »

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
Attachments
Displays as expected http://support.nagios.com/forum/posting.php?mode=post&f=7&sid=3497fd8533db65062dc4d2fc09179639#
Displays as expected http://support.nagios.com/forum/posting.php?mode=post&f=7&sid=3497fd8533db65062dc4d2fc09179639#
Does not display as expected. http://support.nagios.com/forum/posting.php?mode=post&amp;f=7&amp;sid=3497fd8533db65062dc4d2fc09179639#<br />Colour changes in wrong column
Does not display as expected. http://support.nagios.com/forum/posting.php?mode=post&f=7&sid=3497fd8533db65062dc4d2fc09179639#
Colour changes in wrong column
css entries for HOST and BG
css entries for HOST and BG
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Modifying status.css

Post 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.
Locked