Query on the backend of Nagios URL
-
- Posts: 16
- Joined: Tue Jan 30, 2018 5:28 am
Query on the backend of Nagios URL
Hi Team,
The Nagios URL we are currently using is mapped to the static IP of the Nagios server. As an improvement we are trying to get rid of usage of static IP and trying to place the server behind a public facing Application load balancer (ALB) and try to access the Nagios dashboard/URL.
We have created a Application Load balancer, mapped the appropriate listeners to it with ports 5666 and 5667 of Nagios and forwarded traffic from ALB to Nagios server. But the issue we are facing is, the ALB DNS name is throwing 502 bad gateway error.
Could you kindly let us know how the current Nagios URL is working. If we hit http://monitoring.advenio.merckgroup.com/ it is redirecting to http://monitoring.advenio.merckgroup.co ... /login.php which shows 302 as redirection code (attached snap)
Does it have any backend mapping on server configuration for this URL to work?
Could you help us to understand how the current Nagios URL is working and how to access it with our ALB ?
Thanks in advance,
Aparnaa
Kindly CC AWS_Infra@merckgroup.com in mail chains.
The Nagios URL we are currently using is mapped to the static IP of the Nagios server. As an improvement we are trying to get rid of usage of static IP and trying to place the server behind a public facing Application load balancer (ALB) and try to access the Nagios dashboard/URL.
We have created a Application Load balancer, mapped the appropriate listeners to it with ports 5666 and 5667 of Nagios and forwarded traffic from ALB to Nagios server. But the issue we are facing is, the ALB DNS name is throwing 502 bad gateway error.
Could you kindly let us know how the current Nagios URL is working. If we hit http://monitoring.advenio.merckgroup.com/ it is redirecting to http://monitoring.advenio.merckgroup.co ... /login.php which shows 302 as redirection code (attached snap)
Does it have any backend mapping on server configuration for this URL to work?
Could you help us to understand how the current Nagios URL is working and how to access it with our ALB ?
Thanks in advance,
Aparnaa
Kindly CC AWS_Infra@merckgroup.com in mail chains.
You do not have the required permissions to view the files attached to this post.
Re: Query on the backend of Nagios URL
Hi,
Go to Admin, then under System Config in the left-hand menus click on System Settings: Change the URL as required.
Please let me know if this works for you.
Thanks
Go to Admin, then under System Config in the left-hand menus click on System Settings: Change the URL as required.
Please let me know if this works for you.
Thanks
You do not have the required permissions to view the files attached to this post.
-
- Posts: 16
- Joined: Tue Jan 30, 2018 5:28 am
Re: Query on the backend of Nagios URL
Thanks gsmith for the response.
I have changed the Program URL as you suggested.
The scenario is, the current Nagios URL we are using has a DNS mapping to a static IP. So I am not sure whether changing the program URL is really helping us out.
Because I am able to load the Nagios login page with http://static_IP/nagiosxi/ but not with http://ALB_DNSName/nagiosxi/ even after updating the program URL.
http://ALB_DNSName/nagiosxi/ is throwing 504 bad gateway even after updating the system settings.
Can someone help here?
Thanks in advance,
Aparnaa
I have changed the Program URL as you suggested.
The scenario is, the current Nagios URL we are using has a DNS mapping to a static IP. So I am not sure whether changing the program URL is really helping us out.
Because I am able to load the Nagios login page with http://static_IP/nagiosxi/ but not with http://ALB_DNSName/nagiosxi/ even after updating the program URL.
http://ALB_DNSName/nagiosxi/ is throwing 504 bad gateway even after updating the system settings.
Can someone help here?
Thanks in advance,
Aparnaa
Re: Query on the backend of Nagios URL
So when you do:
you get the static_IP of the nagios server, right?
Also please provide the output of:
Thanks
Code: Select all
nslookup ALB_DNSName
Also please provide the output of:
Code: Select all
curl -v http://ALB_DNSName/nagiosxi/
-
- Posts: 16
- Joined: Tue Jan 30, 2018 5:28 am
Re: Query on the backend of Nagios URL
The results of nslookup and curl command are attached.
You do not have the required permissions to view the files attached to this post.
Re: Query on the backend of Nagios URL
hi,
So the curl shows the ip address to be 3.120.75.166 while the nslookup is showing ip addresses
of 52.28.83.182 and 52.58.86.124. This looks to be a DNS or Load Balancer configuration
issue.
Also, within the curl command the request is being redirected from a http:// url to an https://
url. Do you have Nagios configured to run SSL?
Thanks
So the curl shows the ip address to be 3.120.75.166 while the nslookup is showing ip addresses
of 52.28.83.182 and 52.58.86.124. This looks to be a DNS or Load Balancer configuration
issue.
Also, within the curl command the request is being redirected from a http:// url to an https://
url. Do you have Nagios configured to run SSL?
Thanks
-
- Posts: 16
- Joined: Tue Jan 30, 2018 5:28 am
Re: Query on the backend of Nagios URL
Attaching the curl and nslookup results again. Now i can both the commands showing same IPs .
Also the current Nagios URL we are using is http://monitoring.advenio.merckgroup.co ... /index.php? and it works with http protocol.
Also the current Nagios URL we are using is http://monitoring.advenio.merckgroup.co ... /index.php? and it works with http protocol.
You do not have the required permissions to view the files attached to this post.
Re: Query on the backend of Nagios URL
Hi
Great!
To use https protocol follow this document:
https://assets.nagios.com/downloads/nag ... s%20XI.pdf
Let me know if you have any more questions.
Thanks
Great!
To use https protocol follow this document:
https://assets.nagios.com/downloads/nag ... s%20XI.pdf
Let me know if you have any more questions.
Thanks
-
- Posts: 16
- Joined: Tue Jan 30, 2018 5:28 am
Re: Query on the backend of Nagios URL
Hi,
Could you let me know is the Nagios url not secure is the problem in connecting via Load balancer DNS name?
Thanks,
Aparnaa
Could you let me know is the Nagios url not secure is the problem in connecting via Load balancer DNS name?
Thanks,
Aparnaa
Re: Query on the backend of Nagios URL
Correct. If you look at the curl command the request is being redirected
to the secure url:https://alb-nagios-xi-1627099631.en-cen ... /nagiosxi/
So you need to set up the nagios server to use SSL
Thanks
to the secure url:https://alb-nagios-xi-1627099631.en-cen ... /nagiosxi/
So you need to set up the nagios server to use SSL
Thanks