Alert URL broken on 1.4.0 -- inserts a = sign in the middle

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
polarbear1
Posts: 73
Joined: Mon Apr 13, 2015 4:26 pm

Alert URL broken on 1.4.0 -- inserts a = sign in the middle

Post by polarbear1 »

Greetings.

I finally came around to upgrading to 1.4.0 from 2015R2 after not seeing too much complaining around these parts re the new release. The one problem I am seeing immediately is the URL in my alert emails is now all wonky.
http://MyNLSCluster1/nagioslogserver/[b]a=erts[/b]/show/AVN7zomCPT7g46YCEfNX?s_to=2016-03-15T21:03:43Z&s_from=2016-0=-15T21:03:38Z
Note the "a=erts". When I change it "alerts", it does display the dashboard I actually want. I have 2 independent clusters that are both doing this.
http://MyNLSCluster2/[b]nagioslogserve=[/b]/alerts/show/AVN8H184a8_htvBsV61W?s_to=2016-03-15T21:13:42Z&s_from=201=-03-15T21:13:37Z
The "MyNLSCluster#" thing is a placeholder, clearly, in the interest of privacy. One thing I did note is that the equals "=" sign pops up as the 46th character in the URL in both instances.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Alert URL broken on 1.4.0 -- inserts a = sign in the mid

Post by hsmith »

Did you switch to using any email templates or anything? I'm not witnessing this behavior on my instance.
Former Nagios Employee.
me.
polarbear1
Posts: 73
Joined: Mon Apr 13, 2015 4:26 pm

Re: Alert URL broken on 1.4.0 -- inserts a = sign in the mid

Post by polarbear1 »

Looks like it defaults to Default Template anyway. I didn't make any changes on purpose, if that's what you mean. The only thing after the update I had to do was set the Interface URL on the Global Settings screen. Without it (right after the update) the sent links would start with 172.0.0.01 which clearly wasn't helping anyone. The cluster hostname and interface url are set to the same thing.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Alert URL broken on 1.4.0 -- inserts a = sign in the mid

Post by hsmith »

Do you have an http:// in your cluster hostname or interface URL? Trying to replicate this.
Former Nagios Employee.
me.
polarbear1
Posts: 73
Joined: Mon Apr 13, 2015 4:26 pm

Re: Alert URL broken on 1.4.0 -- inserts a = sign in the mid

Post by polarbear1 »

No "http://" specified in the fields. Simply: "cluster.datacenter.company.com"



While we're at it. We are using our own SMTP Server (Exchange), not PHP Mail.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Alert URL broken on 1.4.0 -- inserts a = sign in the mid

Post by hsmith »

Same setup as on mine, except I am using postfix instead of exchange. I'll remove the httpd from my URL and try to replicate. I'll keep you posted.
Former Nagios Employee.
me.
polarbear1
Posts: 73
Joined: Mon Apr 13, 2015 4:26 pm

Re: Alert URL broken on 1.4.0 -- inserts a = sign in the mid

Post by polarbear1 »

Changed mail settings to use PHP Mail and the "=" went away. So I am inclined to point fingers at using Exchange.

My preference is still to use my Exchange server.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Alert URL broken on 1.4.0 -- inserts a = sign in the mid

Post by hsmith »

My coworker has actually chased this down to being an issue with exchange. He did a TCPDump to make sure the URL was leaving LogServer correctly, and it was. Can you check the exchange logs and see if there is anything in there?
Former Nagios Employee.
me.
polarbear1
Posts: 73
Joined: Mon Apr 13, 2015 4:26 pm

Re: Alert URL broken on 1.4.0 -- inserts a = sign in the mid

Post by polarbear1 »

I got my exchange guy looking into it. While we wait, my concern is that the email format has changed between 2015R2 and 1.4 releases of NLS and that is really the underlying problem here. As you said - your coworker confirmed this happening with Exchange, so it's not just my exchange configuration, it's everyone out there who is using NLS with exchange.

So what it looks like to me is that the email code output by NLS (and interpreted correctly by Postfix) gets messed up with exchange. It's like one of those websites where the HTML is technically correct, but it only looks right in IE.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Alert URL broken on 1.4.0 -- inserts a = sign in the mid

Post by hsmith »

Any information you find out from the exchange logs could be helpful. We changed some things with emails last release to enable the use of templates, specifics I would have to reach out to the developers. We don't use exchange here, so any information you can gather will be helpful.
Former Nagios Employee.
me.
Locked