Created a css and js but where o' where do I add the choice for the themes drop down menu via settings?
Thanks,
Brad
Add user created theme drop down choice
-
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
Yep not seeing it in the XI User Interface Theme: drop down menu as a choice...
Re: Add user created theme drop down choice
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
https://support.nagios.com/kb/article/n ... onent.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Add user created theme drop down choice
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.
/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.
Re: Add user created theme drop down choice
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!
Re: Add user created theme drop down choice
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.
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.
Re: Add user created theme drop down choice
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
Re: Add user created theme drop down choice
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
Thanks,
Brad