Page 1 of 1

Background design for my nagios webpage

Posted: Thu Aug 10, 2017 8:54 am
by padu_3891
Hello All,

Please help me how to change the background colour or some decorative work at my nagios web page for a better attractive look to users .

Re: Background design for my nagios webpage

Posted: Thu Aug 10, 2017 8:57 am
by mcapra
padu_3891 wrote:some decorative work
It would depend on what "decorative work" you're looking to change. The top logo is located here:

Code: Select all

/usr/local/nagios/share/images/sblogo.png
The CSS is located here:

Code: Select all

/usr/local/nagios/share/stylesheets/
You're free to modify it however you like. Otherwise, there are some (relatively old) themes on the Nagios Exchange:
https://exchange.nagios.org/directory/A ... -and-Skins

This article may be helpful in terms of changing themes:
https://amritgurung.wordpress.com/2015/ ... or-nagios/

Re: Background design for my nagios webpage

Posted: Thu Aug 10, 2017 1:08 pm
by dwhitfield
Thanks @mcapra! Per his suggestion, I think the css file names have pretty useful names.

I believe the following in common.css is what you will want to modify:

Code: Select all

body {
  margin: 0em;
  margin: 0.8em 0.8em 2em 0.8em;
  color: black;
  background-color: white;
  font-family: arial, verdana, serif;
  font-weight: normal;
  font-size: 10pt;
}
without knowing the OS, hard to be more specific. vi on ubuntu is actually some sort of weird, annoying minimal version. You may want to install nano, but if you have your emacs set up for all the things, that'll work too.

That said, what version of Core are you using? Was it compiled from source or installed from distro repos? On what OS/version is nagios running? cat /etc/*-release may be of use. Those questions will help us determine file paths so that we can help you.

Lastly, you may know this, but the code is available at https://github.com/NagiosEnterprises/nagioscore/ . Feel free to modify whatever like!