Page 1 of 2
Removal of text
Posted: Wed Jan 15, 2014 4:51 pm
by niebais
I am using the latest version of Nagios 2012 .7 on a Centos 6 system.
I am trying to remove this text:
You can find additional configuration wizards for Nagios XI at Nagios Exchange. Need a custom configuration wizard created for your organization? No problem! Contact us for pricing information.
which resides on the configure->Core confguration manager page. How do I remove it?
Re: Removal of text
Posted: Wed Jan 15, 2014 5:03 pm
by sreinhardt
You will want to change around line 87 in html/admin/configwizards.php and around line 126 of html/config/monitoringwizard.php. I think that should do it for you!
Re: Removal of text
Posted: Wed Jan 15, 2014 5:17 pm
by niebais
The html/config/monitoringwizard.php file is locked up by sourceguardian. Is there some other way to change it? Do you have a non-source guardian copy of the file somewhere?
Re: Removal of text
Posted: Wed Jan 15, 2014 5:19 pm
by tmcdonald
niebais wrote:The html/config/monitoringwizard.php file is locked up by sourceguardian. Is there some other way to change it? Do you have a non-source guardian copy of the file somewhere?
I figured this would be the case, but sreinhardt beat me to it. If it is SG protected it can't be changed, unfortunately. We do have a copy but it's obviously not for public disclosure.
Re: Removal of text
Posted: Wed Jan 15, 2014 5:23 pm
by niebais
Does it use gettext to pull the string? I guess I could edit the language file, but it seems like this is broken into 3 chunks or something.
Re: Removal of text
Posted: Wed Jan 15, 2014 5:39 pm
by sreinhardt
Correct, almost all of it uses gettext, and again correct it is broken up in several places within php and gettext. Modifying the language file should do it though, how thoroughly, I am not sure.
Re: Removal of text
Posted: Wed Jan 15, 2014 6:41 pm
by niebais
I've gotten it down to this:
Nagios Exchange.
. , however, you can't get rid of the words Nagios Exchange or the ".".
So here's a "feature" request then. Add the entire string to gettext in the file so that string can be redacted.
Re: Removal of text
Posted: Thu Jan 16, 2014 10:14 am
by tmcdonald
Did you post that on our feature tracker, or should I make a request for you?
Re: Removal of text
Posted: Fri Jan 17, 2014 12:30 am
by niebais
I haven't posted it there. I'll put it in there. Thanks!
Re: Removal of text
Posted: Fri Jan 17, 2014 10:24 am
by tmcdonald
Am I free to lock this up?