I can't create a tool under Common Tools

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mon-team
Posts: 171
Joined: Thu Jun 28, 2012 9:22 am

I can't create a tool under Common Tools

Post 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
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: I can't create a tool under Common Tools

Post by tmcdonald »

Confirmed in 2.9

I've filed an internal bug report for this.
Former Nagios employee
mon-team
Posts: 171
Joined: Thu Jun 28, 2012 9:22 am

Re: I can't create a tool under Common Tools

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: I can't create a tool under Common Tools

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
mon-team
Posts: 171
Joined: Thu Jun 28, 2012 9:22 am

Re: I can't create a tool under Common Tools

Post by mon-team »

It works! Thanks.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: I can't create a tool under Common Tools

Post by slansing »

Great, that bug should be picked up pretty soon and it should be fixed for the next release permanently.
Locked