Page 1 of 1

No performance graph if service name contains ":"

Posted: Wed Jun 25, 2014 5:04 am
by SDK
Hello,

Nagios 2014 R1.2.

There is no performance graph if the service name containes a ":"
Drive D.png
I renamed the service without a ":" in the name an the perfgraph shows up again:
Drive C.png
Kind regards

SDK

Re: No performance graph if service name contains ":"

Posted: Wed Jun 25, 2014 9:01 am
by tmcdonald
I'm seeing the same thing. Thanks for the heads-up, I will make a bug report for this. internal task ID is 3333. Locking thread now since bug report has been filed.

Re: No performance graph if service name contains ":"

Posted: Wed Jun 25, 2014 4:14 pm
by scottwilkerson
This can be resolved by installing the attached through Admin -> Manage Component

Re: No performance graph if service name contains ":"

Posted: Wed Jun 25, 2014 8:31 pm
by rajasegar
scottwilkerson wrote:This can be resolved by installing the attached through Admin -> Manage Component
Confirmed this resolved the problem.

Re: No performance graph if service name contains ":"

Posted: Wed Jun 25, 2014 9:12 pm
by rajasegar
More problems.

Since upgrade to 2014R1.2 I cannot save any services with : in the service description

Re: No performance graph if service name contains ":"

Posted: Thu Jun 26, 2014 9:11 am
by tmcdonald
That was the case before 2014R1.2, at least when using the CCM. Wizards as far as I know are still able to enter them. I think you're supposed to be able to use them, so I will file a bug report for this. and this has already been fixed internally. I will update this post when we have a patch.

UPDATE: I have attached the fix to this post. The file must be uploaded to your Nagios XI server to replace the current version of the file, which is located at /usr/local/nagiosxi/html/includes/components/ccm/javascript/form_js.js

After that you must ctrl + F5 to refresh your browser and then you should be able to use the ":" in your CCM.
form_js.js

Re: No performance graph if service name contains ":"

Posted: Thu Jun 26, 2014 6:15 pm
by rajasegar
tmcdonald wrote:That was the case before 2014R1.2, at least when using the CCM. Wizards as far as I know are still able to enter them. I think you're supposed to be able to use them, so I will file a bug report for this. and this has already been fixed internally. I will update this post when we have a patch.

UPDATE: I have attached the fix to this post. The file must be uploaded to your Nagios XI server to replace the current version of the file, which is located at /usr/local/nagiosxi/html/includes/components/ccm/javascript/form_js.js

After that you must ctrl + F5 to refresh your browser and then you should be able to use the ":" in your CCM.
form_js.js
The ccm.zip component already solved this problem. So is this patch redundant?

Re: No performance graph if service name contains ":"

Posted: Fri Jun 27, 2014 9:01 am
by tmcdonald
Yes. The ccm.zip would have contained that updated .js file.

Re: No performance graph if service name contains ":"

Posted: Wed Jul 02, 2014 4:36 pm
by vAJ
Where can we get the new ccm.zip? Or should I just update the new JS?

I'm trying to rename service names where the descriptions have colons in them.

Re: No performance graph if service name contains ":"

Posted: Wed Jul 02, 2014 8:31 pm
by Box293
vAJ wrote:Where can we get the new ccm.zip?
Here you go:
Serious Invalid Chars Problem with 2014R1.2