URI port number not maintained for internal API calls

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: URI port number not maintained for internal API calls

Post by eloyd »

Thanks. I figured it was somewhere that the port was not being specified. I'm not sure if any of these fixes will truly fix it for us, because we'll be accessing it locally, customers through port forwarding, and sometimes we'll be doing it remotely through VPN. So the lack of a specific port in the URI means that proper coding needs to assume port 80 if no port is specified and add it in.

Can we open a dev ticket for this? I get why it is the way it is (as opposed to localhost) but it really should respect any port that was used (or not used) to access the original container. ;-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: URI port number not maintained for internal API calls

Post by jomann »

That's why you may have to hard-code in ://127.0.0.1/nagioslogserver/index.php/api/backend into there or even just directly to the ES backend at http://127.0.0.1:9200/ which would be directly into the ES API which is normally how it would be connected to it if we were using standard ELK and didn't have all the Nagios overlays.

We can definitely add it to the bug fixes and get the port to be added to the ajax request.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked