Add user created theme drop down choice

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
BradZynda
Posts: 31
Joined: Thu Jul 06, 2017 12:43 pm

Add user created theme drop down choice

Post by BradZynda »

Created a css and js but where o' where do I add the choice for the themes drop down menu via settings?

Thanks,
Brad
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Add user created theme drop down choice

Post by dwhitfield »

Go to http://YOURSERVER/nagiosxi/account/main.php

Let us know if that doesn't work for you.
BradZynda
Posts: 31
Joined: Thu Jul 06, 2017 12:43 pm

Re: Add user created theme drop down choice

Post by BradZynda »

Yep not seeing it in the XI User Interface Theme: drop down menu as a choice...
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Add user created theme drop down choice

Post by lmiltchev »

Can you describe in details all of the steps you took to include the new css and js in XI? Screenshots would be helpful. Did you follow the steps, outlined in the article, linked below?

https://support.nagios.com/kb/article/n ... onent.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
BradZynda
Posts: 31
Joined: Thu Jul 06, 2017 12:43 pm

Re: Add user created theme drop down choice

Post by BradZynda »

Yes i did try to follow the steps and initially ran into the error as stated in the link about failure to upload css etc to the upload dirs. So I moved the css and js files to the same dirs as the other theme's in:

/usr/local/nagiosxi/html/includes/css/themes/mytheme.css

and

/usr/local/nagiosxi/html/includes/js/themes/mytheme.js

I just tried again to download and install the custom-includes.zip and got the error:

Manage Components

Component upload failed. <- in red warning box

Manage the components that are installed on this system. Need a custom component created to extend Nagios XI's capabilities? Contact us for pricing information.

You can find additional components for Nagios XI at Nagios Exchange.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Add user created theme drop down choice

Post by lmiltchev »

Custom Includes component allows you to modify the default theme by uploading your own custom CSS, JS, and images. It's NOT intended to create "full blown" custom themes... You can try doing this on your own. You may need to modify the "/usr/local/nagiosxi/html/admin/globalconfig.php" (and probably some other files) file in order to have the new theme show up in the "XI User Interface Theme" drop-down menu. I would like to point out, that in this case, you would be on your own. This is out of nagios support scope.
Be sure to check out our Knowledgebase for helpful articles and solutions!
BradZynda
Posts: 31
Joined: Thu Jul 06, 2017 12:43 pm

Re: Add user created theme drop down choice

Post by BradZynda »

Well I wasnt looking to make Nagios fully themed out, just take the default theme and change the background colors to darker grays so it is easier to look at for long periods.

I did go through that config and do not see where I would add the new theme for the drop down..

For now i will just cp over the exisiting css and js with the changes, not my personal choice to do it.

If nagios does not want to support themes it should remove the option then.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Add user created theme drop down choice

Post by tmcdonald »

XI themes are different from custom includes. The themes included have been developed internally and are complete sets of HTML, CSS, and JS that have made up the interfaces over the years. The custom includes are just a way for users to upload individual files - it was never intended to be a complete custom theming option.
Former Nagios employee
BradZynda
Posts: 31
Joined: Thu Jul 06, 2017 12:43 pm

Re: Add user created theme drop down choice

Post by BradZynda »

Yep realizing as I dig in that creating a css and js is not going to work as you stated. So I just created an sh to sed all the changes I want from base.css, modern.css and the min's. Easy enough to just re-run after updates. Kind of a shotgun approach but it works and the result is easier on the eyes ;)

Thanks,
Brad
bolson

Re: Add user created theme drop down choice

Post by bolson »

May we close this topic?
Locked