$HOSTALIAS$ macro acting weird again in 3.4.4

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.
wezelboy
Posts: 13
Joined: Tue Feb 26, 2013 1:34 pm

$HOSTALIAS$ macro acting weird again in 3.4.4

Post by wezelboy »

It looks like restarting nagios was a temporary fix. Once again nagios is replacing spaces with plus signs and special characters with their url encoded equivalent in the $HOSTALIAS$ macro on e-mail notifications.

Regards,

-P
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: $HOSTALIAS$ macro acting weird again in 3.4.4

Post by abrist »

hmmmm. This is something that should not be so inconsistent. Do you have more than 1 nagios process running?

Code: Select all

ps -aef | grep nagios
service nagios stop
killall nagios
service nagios start
ps -aef | grep nagios
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.
wezelboy
Posts: 13
Joined: Tue Feb 26, 2013 1:34 pm

Re: $HOSTALIAS$ macro acting weird again in 3.4.4

Post by wezelboy »

I have multiple nagios processes running, but it looks like one of them was a zombie possibly leftover from the time of the upgrade. It is dead now.

Thanks for the tip!

-P
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: $HOSTALIAS$ macro acting weird again in 3.4.4

Post by slansing »

Let us know if this issue returns!
wezelboy
Posts: 13
Joined: Tue Feb 26, 2013 1:34 pm

Re: $HOSTALIAS$ macro acting weird again in 3.4.4

Post by wezelboy »

It's baaack!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: $HOSTALIAS$ macro acting weird again in 3.4.4

Post by abrist »

Get your pitchforks and torches ready.

You might find this interesting, you are not the only one to experience this problem:
http://tracker.nagios.org/view.php?id=407
There is a patch for core in the comments there. Are you restarting nagios through the command pipe?
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.
wezelboy
Posts: 13
Joined: Tue Feb 26, 2013 1:34 pm

Re: $HOSTALIAS$ macro acting weird again in 3.4.4

Post by wezelboy »

That definitely sounds like my problem. I've applied the patch.

Thanks,

-P
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: $HOSTALIAS$ macro acting weird again in 3.4.4

Post by abrist »

Great, Let us know if it resolves your problem. If it does, you may want to create a comment concerning that on the tracker bug page as well. Cheers.
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.
wezelboy
Posts: 13
Joined: Tue Feb 26, 2013 1:34 pm

Re: $HOSTALIAS$ macro acting weird again in 3.4.4

Post by wezelboy »

It's been a couple weeks and it looks the the patch fixed the problem. Yay!

Thanks!

-P
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: $HOSTALIAS$ macro acting weird again in 3.4.4

Post by slansing »

Great! Thanks for letting us know!
Locked