+ symbol instead of space in Nagios hostname

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
kalyan1709
Posts: 43
Joined: Tue Oct 16, 2012 12:45 am

+ symbol instead of space in Nagios hostname

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: + symbol instead of space in Nagios hostname

Post by abrist »

I have not heard of such an issue. Is this happening with all host notifications, or only a subset?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
kalyan1709
Posts: 43
Joined: Tue Oct 16, 2012 12:45 am

Re: + symbol instead of space in Nagios hostname

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: + symbol instead of space in Nagios hostname

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
kalyan1709
Posts: 43
Joined: Tue Oct 16, 2012 12:45 am

Re: + symbol instead of space in Nagios hostname

Post by kalyan1709 »

Is there any upgrade procedure from 3.5 to 3.5.1??
kalyan1709
Posts: 43
Joined: Tue Oct 16, 2012 12:45 am

Re: + symbol instead of space in Nagios hostname

Post by kalyan1709 »

Can any one know how to apply the patch available in URL: http://tracker.nagios.org/view.php?id=407 ??
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: + symbol instead of space in Nagios hostname

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
kalyan1709
Posts: 43
Joined: Tue Oct 16, 2012 12:45 am

Re: + symbol instead of space in Nagios hostname

Post by kalyan1709 »

Using Source tarball.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: + symbol instead of space in Nagios hostname

Post by abrist »

You could patch it, but my suggestion would be to upgrade to 3.5.1. Is that not an option?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
kalyan1709
Posts: 43
Joined: Tue Oct 16, 2012 12:45 am

Re: + symbol instead of space in Nagios hostname

Post by kalyan1709 »

Thanks. I will do the upgrade.
Locked