Dear team,
There is a requirement to change the port from 80 to 443 for few UPS devices which am getting this error message
if its port 80 then seeing this output
./check_http -H XXx.xxx.xxx.xxx -L -w 60 -c 120
<A HREF="http://xx.xx.xx.xx:80/" target="_blank">HTTP OK: HTTP/1.1 200 OK - 1961 bytes in 0.147 second response time </A>|time=0.147184s;60.000000;120.000000;0.000000 size=1961B;;;0
./check_http -H xx.xx.xx.xx -p 443 -L -w 60 -c 120
<A HREF="http://xx.xx.xx.xx:443/" target="_blank">HTTP CRITICAL - No data received from host
unable to pull the information and need guidance to update with correct parameter in check_http
Much appreciated if i could get an solution on this.
UPS device port changes from 80 to 443
-
- Posts: 4
- Joined: Mon May 20, 2024 2:26 am
UPS device port changes from 80 to 443
Thanks & Regards,
Santhanam Subramani
Santhanam Subramani
-
- Posts: 123
- Joined: Wed Aug 23, 2023 11:29 am
Re: UPS device port changes from 80 to 443
Hi @ssantha1985,
Port 443 is the default port used for HTTPS (SSL/TLS - enabled) traffic. Your requirement is probably to set up SSL/TLS on your server. Once it is configured, you can use the -S option in the plugin to connect via SSL/TLS.
You may also have to allow port 443 in your firewall.
Let us know if you need any more assistance.
Thank you!
Port 443 is the default port used for HTTPS (SSL/TLS - enabled) traffic. Your requirement is probably to set up SSL/TLS on your server. Once it is configured, you can use the -S option in the plugin to connect via SSL/TLS.
You may also have to allow port 443 in your firewall.
Let us know if you need any more assistance.
Thank you!
-
- Posts: 4
- Joined: Mon May 20, 2024 2:26 am
Re: UPS device port changes from 80 to 443
Dear gwesterman,
We are already configured SSL / TSL in our nagios Server and still am using this command to query the UPS devices which are communicating with 443 throwing the error like below.
/usr/lib64/nagios/plugins/check_http -H 10.12.7.245 -p 443 -L -w 60 -c 120 -S
<A HREF="https://10.12.7.245:443/" target="_blank">CRITICAL - Cannot make SSL connection.
I have followed the steps which mentioned here to generate the SSL / TSL certificate
https://support.nagios.com/kb/article/n ... acle_Linux
But still same issues only. much appreciated if i can get a exact steps to sort out the on going issues from nagios server
Thanks & Regards,
Santhanam
We are already configured SSL / TSL in our nagios Server and still am using this command to query the UPS devices which are communicating with 443 throwing the error like below.
/usr/lib64/nagios/plugins/check_http -H 10.12.7.245 -p 443 -L -w 60 -c 120 -S
<A HREF="https://10.12.7.245:443/" target="_blank">CRITICAL - Cannot make SSL connection.
I have followed the steps which mentioned here to generate the SSL / TSL certificate
https://support.nagios.com/kb/article/n ... acle_Linux
But still same issues only. much appreciated if i can get a exact steps to sort out the on going issues from nagios server
Thanks & Regards,
Santhanam
Thanks & Regards,
Santhanam Subramani
Santhanam Subramani
Re: UPS device port changes from 80 to 443
Hi @ssantha1985,
I don't think the linked article will help you with check_http - that article is more about configuring an HTTPS certificate for the Nagios Core web interface itself.
If you need a more detailed error, I would run check_http with the -v option - hopefully that will point you in a more useful direction. If you need us to help more directly with troubleshooting, I would open a case on Answer Hub.
-Sebastian
I don't think the linked article will help you with check_http - that article is more about configuring an HTTPS certificate for the Nagios Core web interface itself.
If you need a more detailed error, I would run check_http with the -v option - hopefully that will point you in a more useful direction. If you need us to help more directly with troubleshooting, I would open a case on Answer Hub.
-Sebastian
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy
-
- Posts: 4
- Joined: Mon May 20, 2024 2:26 am
Re: UPS device port changes from 80 to 443
Dear Sebastian,
/usr/lib64/nagios/plugins/check_http -vvv -p 443 -H 10.12.7.245 -L -w 60 -c 120 -sni
<A HREF="http://10.12.7.245:443/" target="_blank">POST / HTTP/1.1
User-Agent: check_http/v2.3.3 (nagios-plugins 2.3.3)
Connection: close
Host: 10.12.7.245:443
Accept: */*
HTTP CRITICAL - No data received from host
/usr/lib64/nagios/plugins/check_http -vvv -p 443 -H 10.12.7.245 -L -w 60 -c 120 -S
<A HREF="https://10.12.7.245:443/" target="_blank">CRITICAL - Cannot make SSL connection.
SSL initialized
/usr/lib64/nagios/plugins/check_http -vvv -p 443 -H 10.12.7.245 -L -w 60 -c 120 -sni
<A HREF="http://10.12.7.245:443/" target="_blank">POST / HTTP/1.1
User-Agent: check_http/v2.3.3 (nagios-plugins 2.3.3)
Connection: close
Host: 10.12.7.245:443
Accept: */*
HTTP CRITICAL - No data received from host
/usr/lib64/nagios/plugins/check_http -vvv -p 443 -H 10.12.7.245 -L -w 60 -c 120 -S
<A HREF="https://10.12.7.245:443/" target="_blank">CRITICAL - Cannot make SSL connection.
SSL initialized
Thanks & Regards,
Santhanam Subramani
Santhanam Subramani
-
- Posts: 123
- Joined: Wed Aug 23, 2023 11:29 am
Re: UPS device port changes from 80 to 443
Hi @ssantha1985,
I would give some of the options discussed in this thread a try. If none of these work for you, let us know.
Thank you!
I would give some of the options discussed in this thread a try. If none of these work for you, let us know.
Thank you!
-
- Posts: 4
- Joined: Mon May 20, 2024 2:26 am
Re: UPS device port changes from 80 to 443
Hi team,
I have tried the options which mentioned on this https://github.com/nagios-plugins/nagio ... issues/376
no luck and seeing the same error message.
Thanks & Regards,
Santhanam
I have tried the options which mentioned on this https://github.com/nagios-plugins/nagio ... issues/376
no luck and seeing the same error message.
Thanks & Regards,
Santhanam
Thanks & Regards,
Santhanam Subramani
Santhanam Subramani
- jmichaelson
- Posts: 146
- Joined: Wed Aug 23, 2023 1:02 pm
Re: UPS device port changes from 80 to 443
Can you navigate to the https url in a browser window? If so do you get a warning about the SSL/TLS certificate being untrusted?
Please let us know if you have any other questions or concerns.
-Jason
-Jason