Page 1 of 1
Monitor the HTTPS web sites using webinject.sh
Posted: Thu Dec 07, 2017 10:21 am
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
Re: Monitor the HTTPS web sites using webinject.sh
Posted: Thu Dec 07, 2017 3:16 pm
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.
Re: Monitor the HTTPS web sites using webinject.sh
Posted: Fri Dec 08, 2017 9:45 am
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.
Re: Monitor the HTTPS web sites using webinject.sh
Posted: Fri Dec 08, 2017 1:20 pm
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.
Re: Monitor the HTTPS web sites using webinject.sh
Posted: Wed Feb 07, 2018 3:55 pm
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