Page 1 of 1
I can't create a tool under Common Tools
Posted: Wed Mar 05, 2014 11:00 am
by mon-team
Hi,
I can't create tools under "Common Tools".
As you can see from the screenshot below, The "URL" field becomes empty after saving the settings.
Screenshot-1.png
We are running Nagios XI 2012R2.7 on a CentOS release 6.4
Thank for your help
BRegards
Re: I can't create a tool under Common Tools
Posted: Wed Mar 05, 2014 11:25 am
by tmcdonald
Confirmed in 2.9
I've filed an internal bug report for this.
Re: I can't create a tool under Common Tools
Posted: Wed Mar 05, 2014 11:59 am
by mon-team
This feature was working fine on nagiosXI 2012R2.2.
We are preparing our production platform and we are planning to upgrade to the latest version 2.9
This is a important feature for us. Is there any work around?
Re: I can't create a tool under Common Tools
Posted: Wed Mar 05, 2014 1:57 pm
by lmiltchev
Open the "/usr/local/nagiosxi/html/includes/utils-tools.inc.php" in a text editor, and change line 121 from this:
Code: Select all
"url" => htmlentities($url,'UTF-8'),
to this:
Code: Select all
"url" => htmlentities($url,ENT_QUOTES,'UTF-8'),
Let me know if this fixed your issue.
Re: I can't create a tool under Common Tools
Posted: Thu Mar 06, 2014 10:41 am
by mon-team
It works! Thanks.
Re: I can't create a tool under Common Tools
Posted: Thu Mar 06, 2014 10:50 am
by slansing
Great, that bug should be picked up pretty soon and it should be fixed for the next release permanently.