/n & \n showing up in service descriptions
/n & \n showing up in service descriptions
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.
It certainly was not there before and the scripts have not been modified for months.
Please advice on this.
Thanks
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.
It certainly was not there before and the scripts have not been modified for months.
Please advice on this.
Thanks
You do not have the required permissions to view the files attached to this post.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: /n & \n showing up in service descriptions
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?
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.
Re: /n & \n showing up in service descriptions
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.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?
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: /n & \n showing up in service descriptions
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.
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
I am really regretting upgrading to 1.2. So many headaches from it.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.
Please release a patch asap. Thanks.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: /n & \n showing up in service descriptions
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.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: /n & \n showing up in service descriptions
Upload the attached zip to your admin > manage components.
That should do the trick until the next release.
That should do the trick until the next release.
You do not have the required permissions to view the files attached to this post.
Re: /n & \n showing up in service descriptions
Nagios should do full regression test. Whatever test we do wont be sufficient.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.
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.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: /n & \n showing up in service descriptions
This fixed the && issue.slansing wrote:Upload the attached zip to your admin > manage components.
That should do the trick until the next release.
However the /n and \n are still there after applying the patch
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: /n & \n showing up in service descriptions
More problems, this time \\.
Command Line
NagiosXI after CCM.zip patch
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]$
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%)\n5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation