UPS device port changes from 80 to 443

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
ssantha1985
Posts: 4
Joined: Mon May 20, 2024 2:26 am

UPS device port changes from 80 to 443

Post by ssantha1985 »

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.
Thanks & Regards,
Santhanam Subramani
gwesterman
Posts: 123
Joined: Wed Aug 23, 2023 11:29 am

Re: UPS device port changes from 80 to 443

Post by gwesterman »

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!
ssantha1985
Posts: 4
Joined: Mon May 20, 2024 2:26 am

Re: UPS device port changes from 80 to 443

Post by ssantha1985 »

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
Thanks & Regards,
Santhanam Subramani
User avatar
swolf
Developer
Posts: 333
Joined: Tue Jun 06, 2017 9:48 am

Re: UPS device port changes from 80 to 443

Post by swolf »

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy
ssantha1985
Posts: 4
Joined: Mon May 20, 2024 2:26 am

Re: UPS device port changes from 80 to 443

Post by ssantha1985 »

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
Thanks & Regards,
Santhanam Subramani
gwesterman
Posts: 123
Joined: Wed Aug 23, 2023 11:29 am

Re: UPS device port changes from 80 to 443

Post by gwesterman »

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!
ssantha1985
Posts: 4
Joined: Mon May 20, 2024 2:26 am

Re: UPS device port changes from 80 to 443

Post by ssantha1985 »

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
Thanks & Regards,
Santhanam Subramani
User avatar
jmichaelson
Posts: 146
Joined: Wed Aug 23, 2023 1:02 pm

Re: UPS device port changes from 80 to 443

Post by jmichaelson »

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
Post Reply