Page 1 of 2

+ symbol instead of space in Nagios hostname

Posted: Tue Jan 28, 2014 12:39 pm
by kalyan1709
Hi,

Recently I have upgraded my Nagios core from 3.2.3 to 3.5.
The problem after doing this is: I am receiving alerts as shown below:

** PROBLEM Service Alert: Server+1/CPU Load is WARNING ** ('+' symbol in my host name)

Prior to update I have received the same alert with out '+' symbol and with space as shown below:

** PROBLEM Service Alert: Server 1/CPU Load is WARNING **

Is there any issue with Nagios Core 3.5 version??

Thanks,
KalyanP

Re: + symbol instead of space in Nagios hostname

Posted: Tue Jan 28, 2014 2:58 pm
by abrist
I have not heard of such an issue. Is this happening with all host notifications, or only a subset?

Re: + symbol instead of space in Nagios hostname

Posted: Tue Jan 28, 2014 4:36 pm
by kalyan1709
It is happening with the hosts whose hostname is having spaces (like Server 1, Server 2, ....)

I found below URL when I google about this:

http://tracker.nagios.org/view.php?id=407

Time stamp issue is also there for me ("0d+0h+2m+29s instead of "0d 0h 2m 29s)

Thanks,
KalyanP

Re: + symbol instead of space in Nagios hostname

Posted: Tue Jan 28, 2014 5:58 pm
by scottwilkerson
kalyan1709 wrote:It is happening with the hosts whose hostname is having spaces (like Server 1, Server 2, ....)

I found below URL when I google about this:

http://tracker.nagios.org/view.php?id=407

Time stamp issue is also there for me ("0d+0h+2m+29s instead of "0d 0h 2m 29s)

Thanks,
KalyanP
Looks like that was fixed in 3.5.1

Re: + symbol instead of space in Nagios hostname

Posted: Wed Jan 29, 2014 5:07 am
by kalyan1709
Is there any upgrade procedure from 3.5 to 3.5.1??

Re: + symbol instead of space in Nagios hostname

Posted: Wed Jan 29, 2014 5:26 am
by kalyan1709
Can any one know how to apply the patch available in URL: http://tracker.nagios.org/view.php?id=407 ??

Re: + symbol instead of space in Nagios hostname

Posted: Wed Jan 29, 2014 11:11 am
by abrist
In order to apply the patch, you will need to build from source. How did you originally install nagios - through a repository or a source tarball?

Re: + symbol instead of space in Nagios hostname

Posted: Wed Jan 29, 2014 12:03 pm
by kalyan1709
Using Source tarball.

Re: + symbol instead of space in Nagios hostname

Posted: Wed Jan 29, 2014 12:46 pm
by abrist
You could patch it, but my suggestion would be to upgrade to 3.5.1. Is that not an option?

Re: + symbol instead of space in Nagios hostname

Posted: Thu Jan 30, 2014 5:59 am
by kalyan1709
Thanks. I will do the upgrade.