Page 1 of 1

Branding and Customizing

Posted: Fri Jul 22, 2016 7:36 am
by chicjo01
Nagios XI Version: 5.2.9

Is there a way to adjust the wording in the tab which show up in the web browser? Currently it says "NagiosXI", I want to change it to "Production Monitoring". Normally, this is handled by changing the title in the HTML. Do I need to just hardcode the change in the html or do you have this somewhere in the configuration files?
Capture.PNG

Re: Branding and Customizing

Posted: Fri Jul 22, 2016 9:19 am
by mcapra
There is not currently a reliable way to change the page titles on a stock XI installation (due to SourceGuardian) without a third party script/component. You could write a greasemonkey script to tackle something like that though or create a custom XI component that includes a JS file on every page to modify the page title.

In 5.3.0, you will be able to include a custom JS file on every page (or select pages) via the XI GUI, so there's that too!

Re: Branding and Customizing

Posted: Fri Jul 22, 2016 9:52 am
by scottwilkerson
Here is a custom component that can make the requested change, upload zip from
Admin -> Manage components
change_title.zip

Re: Branding and Customizing

Posted: Tue Jul 26, 2016 10:04 am
by chicjo01
I was able to upload and install the component through the user interface, but I did not have the option to change the wording from the "Manage Components" section.

Admin -> Manage Component - > (Missing Edit) Change Title
Capture.PNG

Re: Branding and Customizing

Posted: Tue Jul 26, 2016 10:21 am
by lmiltchev
I believe the "Production Monitoring" is "hardcoded". After you install the component, just log off, then log in to the Nagios XI server. You should be able to see "Production Monitoring" title in the tab.
example01.PNG

Re: Branding and Customizing

Posted: Tue Jul 26, 2016 10:26 am
by mcapra
A messy way to change this is in change_title_bodystart_callback of change_title.inc.php included in that zip file:

Code: Select all

function change_title_bodystart_callback($cbtype, &$cbargs)
{


	echo '  <script>
                $(document).ready(function () {
                    $("title").text(function () {
					return $(this).text().replace("Nagios XI", "My Cool Page Title Here"); 
				});
            });
            </script>';
	
}

Re: Branding and Customizing

Posted: Tue Jul 26, 2016 12:42 pm
by chicjo01
Perfect. Thank you. This can be closed.

Re: Branding and Customizing

Posted: Wed Jul 27, 2016 9:02 am
by mcapra
Closing this up