Background design for my nagios webpage

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
padu_3891
Posts: 50
Joined: Thu Sep 05, 2013 10:12 pm

Background design for my nagios webpage

Post 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 .
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Background design for my nagios webpage

Post 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/
Former Nagios employee
https://www.mcapra.com/
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Background design for my nagios webpage

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