https monitoring
list Jon Bjorn Njalsson
Hi Is it possible to let hobbit log on to a https protected webpage, that is POSTing username and password to a form on the webpage and let hobbit monitor server respond ? if so, how is it done ? Jon Bjorn user-5c8e7718045c@xymon.invalid
list Henrik Størner
▸
On Wed, Jan 26, 2005 at 07:18:04PM +0000, Jon Bjorn Njalsson wrote:
Is it possible to let hobbit log on to a https protected webpage, that is POSTing username and password to a form on the webpage and let hobbit monitor server respond ? if so, how is it done ?
Yes, but it can be a bit tricky to setup. There's an example in the bb-hosts man-page, in the "HTTP Tests" section. See http://www.hswn.dk/hobbit/help/manpages/man5/bb-hosts.5.html#lbAR . If you have a form: <form action="/cgi-bin/form.cgi" method="post"> <p>Given name<input type="text" name="givenname"></p> <p>Surname<input type="text" name="surname"></p> <input type="submit" value="Send"> </form> and it must return the string "Welcome" when you post it, then you can test it with this in bb-hosts (simulating that you put "Henrik Stoerner" in the form fields): post;http://www.foo.com/cgi-bin/form.cgi;givenname=Henrik&surname=Stoerner;Welcome Hobbit handles both "http" and "https" URL's as long as you compile it with SSL support enabled. The method does require that it's a genuine HTML form that is being posted; you may be able to figure out what data to send for e.g. a JavaScript form, but it's often requires either a network trace to capture a session, or some knowledge of how the form is supposed to work. Henrik
list Cami
Hi All, Upon building a new instance of Xymon, i ran into a wierd issue which I've been troubleshooting for hours with no luck. I'm trying to monitor HTTPS on a few hosts. Without much luck, I looked around for an external/ public host running https: 91.189.89.234 shipit.ubuntu.com # https://shipit.ubuntu.com/ I got this wierd message: https://shipit.ubuntu.com/ - Bad Request Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please Hint: *https://shipit.ubuntu.com/* Apache/2.2.8 (Ubuntu) mod_ssl/2.2.8 OpenSSL/0.9.8g user-df27a39ea0fa@xymon.invalid Port 443 It doesnt make that much sense to me since i did build xymon with SSL support. Anyone got any ideas on how/where to go about troubleshooting this? I have a seperate instance of Xymon that is able to check HTTPS sites without any issue. Regards, Cami
list Marijn Hofstra
▸
-----Oorspronkelijk bericht----- Van: Cami [mailto:user-1062473dd2aa@xymon.invalid] Verzonden: donderdag 22 juli 2010 15:29 Aan: xymon at xymon.com Onderwerp: [xymon] https monitoring Hi All, Upon building a new instance of Xymon, i ran into a wierd issue which I've been troubleshooting for hours with no luck. I'm trying to monitor HTTPS on a few hosts. Without much luck, I looked around for an external/ public host running https: 91.189.89.234 shipit.ubuntu.com # https://shipit.ubuntu.com/ <snip>
Try adding the port number like so: 91.189.89.234 shipit.ubuntu.com # https://shipit.ubuntu.com:443 (works for me when monitoring a vmware status webpage at port 8333) Regards, Marijn
list Phil Meech
Hi Cami, Possibly a stupid question, but if you built xymon from source - did you compile it with OpenSSL libraries (it asks during configure)? Regards, Phil
▸
On 22 July 2010 14:29, Cami <user-1062473dd2aa@xymon.invalid> wrote:
Hi All, Upon building a new instance of Xymon, i ran into a wierd issue which I've been troubleshooting for hours with no luck. I'm trying to monitor HTTPS on a few hosts. Without much luck, I looked around for an external/ public host running https: 91.189.89.234 shipit.ubuntu.com # https://shipit.ubuntu.com/ I got this wierd message: https://shipit.ubuntu.com/ - Bad Request Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please Hint: *https://shipit.ubuntu.com/* <https://shipit.ubuntu.com/>; Apache/2.2.8 (Ubuntu) mod_ssl/2.2.8 OpenSSL/0.9.8g user-df27a39ea0fa@xymon.invalid Port 443 It doesnt make that much sense to me since i did build xymon with SSL support. Anyone got any ideas on how/where to go about troubleshooting this? I have a seperate instance of Xymon that is able to check HTTPS sites without any issue. Regards, Cami