Branding and Customizing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
chicjo01
Posts: 194
Joined: Tue Jul 28, 2015 2:52 pm

Branding and Customizing

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Branding and Customizing

Post 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!
Former Nagios employee
https://www.mcapra.com/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Branding and Customizing

Post by scottwilkerson »

Here is a custom component that can make the requested change, upload zip from
Admin -> Manage components
change_title.zip
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
chicjo01
Posts: 194
Joined: Tue Jul 28, 2015 2:52 pm

Re: Branding and Customizing

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Branding and Customizing

Post 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
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Branding and Customizing

Post 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>';
	
}
Former Nagios employee
https://www.mcapra.com/
User avatar
chicjo01
Posts: 194
Joined: Tue Jul 28, 2015 2:52 pm

Re: Branding and Customizing

Post by chicjo01 »

Perfect. Thank you. This can be closed.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Branding and Customizing

Post by mcapra »

Closing this up
Former Nagios employee
https://www.mcapra.com/
Locked