Monitor the HTTPS web sites using webinject.sh

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sac1472
Posts: 66
Joined: Thu May 25, 2017 5:06 am

Monitor the HTTPS web sites using webinject.sh

Post by sac1472 »

We want to monitor https websites using default Web transaction wizard but it getting failed.
However, it's working fine with http://.....

Also, i had tried it with like http://....:443/.... still it getting failed. so, basically it isn't working with SSL.

I want to know, how to monitor SSL websites with webinject.sh

Thanks in advance
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Monitor the HTTPS web sites using webinject.sh

Post by npolovenko »

Hello, @sac1472. I think when the URL starts with HTTPS the wizard automatically knows that it's port 443, so you don't need to specify it at the end. http://....:443/ will fail because at first, you're telling it to access HTTP website, and the wizard decides to use the port 80, but then it sees a different port(443) and gets confused.
And this is just a wizard specific behavior. You could look into webinject documentation and modify the XML manually to be able to use a custom port. Take a look here https://web.archive.org/web/20161221165 ... ml#tcsetup the part that says httpauth.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
sac1472
Posts: 66
Joined: Thu May 25, 2017 5:06 am

Re: Monitor the HTTPS web sites using webinject.sh

Post by sac1472 »

I had already tried all ways (https or http...443) before posting the issue.

so, that wasn't the issue.

@WebInject manual :- there is no information regarding SSL.

Anyhow i want to monitor SSL web sites using webinject.sh. So, please give me a proper solution.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Monitor the HTTPS web sites using webinject.sh

Post by npolovenko »

@sac1472, There's no way for me to know what you've tried or not. Running the wizard against https website without specifying the port worked fine for me.
Please go to the Admin page in XI, then go to the "manage config wizards" menu. Click on "check for updates" and then "install updates". That should update your wizards to the latest version. Also, you can send me the website address in a PM and I'll check to see if my wizard accepts it.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Monitor the HTTPS web sites using webinject.sh

Post by cdienger »

Hi sac1472

Were you by chance using web inject through a proxy? We recently discovered and fixed an issue webinject had with making proper https requests through a proxy. You can find a solution for this here:

https://support.nagios.com/forum/viewto ... =6&t=47326
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked