Page 1 of 2
$HOSTALIAS$ macro acting weird again in 3.4.4
Posted: Tue Mar 05, 2013 12:24 pm
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
Re: $HOSTALIAS$ macro acting weird again in 3.4.4
Posted: Tue Mar 05, 2013 12:32 pm
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
Re: $HOSTALIAS$ macro acting weird again in 3.4.4
Posted: Tue Mar 05, 2013 4:20 pm
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
Re: $HOSTALIAS$ macro acting weird again in 3.4.4
Posted: Tue Mar 05, 2013 4:51 pm
by slansing
Let us know if this issue returns!
Re: $HOSTALIAS$ macro acting weird again in 3.4.4
Posted: Thu Mar 07, 2013 11:49 am
by wezelboy
It's baaack!
Re: $HOSTALIAS$ macro acting weird again in 3.4.4
Posted: Thu Mar 07, 2013 12:00 pm
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?
Re: $HOSTALIAS$ macro acting weird again in 3.4.4
Posted: Thu Mar 07, 2013 2:29 pm
by wezelboy
That definitely sounds like my problem. I've applied the patch.
Thanks,
-P
Re: $HOSTALIAS$ macro acting weird again in 3.4.4
Posted: Thu Mar 07, 2013 2:36 pm
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.
Re: $HOSTALIAS$ macro acting weird again in 3.4.4
Posted: Tue Mar 26, 2013 3:55 pm
by wezelboy
It's been a couple weeks and it looks the the patch fixed the problem. Yay!
Thanks!
-P
Re: $HOSTALIAS$ macro acting weird again in 3.4.4
Posted: Tue Mar 26, 2013 4:10 pm
by slansing
Great! Thanks for letting us know!