Removal of text

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Removal of text

Post 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?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Removal of text

Post 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!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: Removal of text

Post 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?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Removal of text

Post 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.
Former Nagios employee
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: Removal of text

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Removal of text

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: Removal of text

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Removal of text

Post by tmcdonald »

Did you post that on our feature tracker, or should I make a request for you?
Former Nagios employee
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: Removal of text

Post by niebais »

I haven't posted it there. I'll put it in there. Thanks!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Removal of text

Post by tmcdonald »

Am I free to lock this up?
Former Nagios employee
Locked