Page 1 of 2

/n & \n showing up in service descriptions

Posted: Mon Jun 30, 2014 6:48 am
by rajasegar
Nagios XI Ent Ed 2014R1.2

I just noticed that some of my service description is suddenly showing /n (windows) & \n (Unix).
This happens for Windows and also Unix services.

I dont know when this started, probably after mod_gearman.
30-06-2014 07-30-17 PM.png
30-06-2014 07-46-16 PM.png
It certainly was not there before and the scripts have not been modified for months.
Please advice on this.

Thanks

Re: /n & \n showing up in service descriptions

Posted: Mon Jun 30, 2014 10:30 am
by sreinhardt
This is a potential issue with mod_gearman, although patches to both core and gearman should be available. What version of gearman are you currently running?

Re: /n & \n showing up in service descriptions

Posted: Mon Jun 30, 2014 11:11 am
by rajasegar
sreinhardt wrote:This is a potential issue with mod_gearman, although patches to both core and gearman should be available. What version of gearman are you currently running?
Just installed mod gearman today using the automated script given by your team. I think it was 1.4 not really sure, must be the latest.

Re: /n & \n showing up in service descriptions

Posted: Mon Jun 30, 2014 11:14 am
by slansing
Yeah, this particular bug is not an issue with mod_gearman, however it must have been introduced with the CCM changes between 1.1 and 1.2 of XI 2014. We're going to try to get on this one right away as it will likely impact any definition you try to create with "&" symbols.

Edit: that was in regards to your %amp question from the other thread. Which is also likely why you are seeing the newline characters still, the sed commands there should fix the problem until we find a more permanent solution. However they will not currently work as you cannot properly define &'s.

Re: /n & \n showing up in service descriptions

Posted: Mon Jun 30, 2014 11:28 am
by rajasegar
slansing wrote:Yeah, this particular bug is not an issue with mod_gearman, however it must have been introduced with the CCM changes between 1.1 and 1.2 of XI 2014. We're going to try to get on this one right away as it will likely impact any definition you try to create with "&" symbols.

Edit: that was in regards to your %amp question from the other thread. Which is also likely why you are seeing the newline characters still, the sed commands there should fix the problem until we find a more permanent solution. However they will not currently work as you cannot properly define &'s.
I am really regretting upgrading to 1.2. So many headaches from it.
Please release a patch asap. Thanks.

Re: /n & \n showing up in service descriptions

Posted: Mon Jun 30, 2014 11:53 am
by slansing
When a patch is ready it will be released, as is recommended, if you are running a VM you should take a snapshot so you can revert back to it if need be, it is also a good idea to give updates a good test run on a test installation before moving them to production systems where a bug may have a big impact on monitoring. It is also of course recommended that you have a pretty much exact duplicate of your main production system on that test server.

Re: /n & \n showing up in service descriptions

Posted: Mon Jun 30, 2014 4:43 pm
by slansing
Upload the attached zip to your admin > manage components.

That should do the trick until the next release.

Re: /n & \n showing up in service descriptions

Posted: Mon Jun 30, 2014 6:07 pm
by rajasegar
slansing wrote:When a patch is ready it will be released, as is recommended, if you are running a VM you should take a snapshot so you can revert back to it if need be, it is also a good idea to give updates a good test run on a test installation before moving them to production systems where a bug may have a big impact on monitoring. It is also of course recommended that you have a pretty much exact duplicate of your main production system on that test server.
Nagios should do full regression test. Whatever test we do wont be sufficient.
We need to bring down the DB services to be absolutely sure the snapshot is valid. Getting downtime for monitoring is not easy.

Due to strict firewall rules, Dev env cannot access production systems, so duplicating exact setup is not possible.
The Dev HW will also not be able to take the load.

Re: /n & \n showing up in service descriptions

Posted: Mon Jun 30, 2014 6:21 pm
by rajasegar
slansing wrote:Upload the attached zip to your admin > manage components.

That should do the trick until the next release.
This fixed the && issue.
However the /n and \n are still there after applying the patch

Re: /n & \n showing up in service descriptions

Posted: Mon Jun 30, 2014 8:22 pm
by rajasegar
More problems, this time \\.

Command Line

Code: Select all

[nagios@nagiosprodxi1 libexec]$ ./check_nrpe -H 10.10.10.10 -c CheckDriveSize -a MaxWarn=70% MaxCrit=85% CheckAll ShowAll=long
CRITICAL: C:\: Total: 137G - Used: 38.2G (27%) - Free: 98.4G (73%), D:\: Total: 0.977T - Used: 181G (18%) - Free: 819G (82%), E:\: Total: 4.95T - Used: 4.95T (99%) - Free: 1.74G (1%) > critical, F:\: Total: 3.52T - Used: 2.22T (63%) - Free: 1.3T (37%), G:\: Total: 4.88T - Used: 4.79T (98%) - Free: 94.2G (2%) > critical, H:\: Total: 3.45T - Used: 3.42T (99%) - Free: 27G (1%) > critical, I:\: Total: 2.98T - Used: 2.98T (99%) - Free: 9.95M (1%) > critical, J:\: Total: 4.96T - Used: 3.89T (78%) - Free: 1.06T (22%) > warning, K:\: Total: 4.88T - Used: 2.98T (61%) - Free: 1.9T (39%), L:\: Total: 5.86T - Used: 5.86T (99%) - Free: 9.97M (1%) > critical, P:\: Total: 3.91T - Used: 2.42T (62%) - Free: 1.48T (38%), R:\: Total: 5.86T - Used: 1.76T (29%) - Free: 4.1T (71%), W:\: Total: 0.996G - Used: 10.7M (1%) - Free: 0.985G (99%), X:\: Total: 0.996G - Used: 10.7M (1%) - Free: 0.985G (99%), Y:\: Total: 0.996G - Used: 63.6M (6%) - Free: 956M (94%)
[nagios@nagiosprodxi1 libexec]$

NagiosXI after CCM.zip patch

Code: Select all

CRITICAL: C:\\: Total: 137G - Used: 38.2G (27%) - Free: 98.4G (73%), D:\\: Total: 0.977T - Used: 181G (18%) - Free: 819G (82%), E:\\: Total: 4.95T - Used: 4.95T (99%) - Free: 1.74G (1%) > critical, F:\\: Total: 3.52T - Used: 2.22T (63%) - Free: 1.3T (37%), G:\\: Total: 4.88T - Used: 4.79T (98%) - Free: 94.2G (2%) > critical, H:\\: Total: 3.45T - Used: 3.42T (99%) - Free: 27G (1%) > critical, I:\\: Total: 2.98T - Used: 2.98T (99%) - Free: 9.95M (1%) > critical, J:\\: Total: 4.96T - Used: 3.89T (78%) - Free: 1.06T (22%) > warning, K:\\: Total: 4.88T - Used: 2.98T (61%) - Free: 1.9T (39%), L:\\: Total: 5.86T - Used: 5.86T (99%) - Free: 9.97M (1%) > critical, P:\\: Total: 3.91T - Used: 2.42T (62%) - Free: 1.48T (38%), R:\\: Total: 5.86T - Used: 1.76T (29%) - Free: 4.1T (71%), W:\\: Total: 0.996G - Used: 10.7M (1%) - Free: 0.985G (99%), X:\\: Total: 0.996G - Used: 10.7M (1%) - Free: 0.985G (99%), Y:\\: Total: 0.996G - Used: 63.6M (6%) - Free: 956M (94%)\n