monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unable to do connection Testing via https


From: Marcus Mülbüsch
Subject: Unable to do connection Testing via https
Date: Thu, 02 Oct 2014 15:40:46 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2

Hello all,

   I seem unable to connect to a server that only accepts https-requests.

The url would be https://1.2.3.4/LOG0/FAULT/mod_cmd.xml?cmd=something with 'Aladdin' as the username and 'open sesame' as the password. I can reach the site fine with links and this username/password.

(Wikipedia sugests this ;) http://en.wikipedia.org/wiki/Basic_access_authentication

   My monit request is formed like this:

check host test with address 1.2.3.4
   if failed
   port 443
   type tcpssl
   protocol http
   http headers [Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==]
   and request /LOG0/FAULT/mod_cmd.xml?cmd=something content = blablubb
then alert

   I always get a

failed protocol test [HTTP] at ... via TCPSSL -- HTTP error: Server returned 
status 401

no matter, what I try. And see on the server logs that it closes the connection:


20141002-151201 HTTPS_SOCKET 407 TCP-Acc  1.2.3.4:443     1.2.3.5:42183
20141002-151201 HTTPS_SOCKET 407 TCP-Up   1.2.3.4:443     1.2.3.5:42183
20141002-151201 HTTPS_SOCKET 407 TCP-Disc 1.2.3.4:443     1.2.3.5:42183
20141002-151201 HTTPS_SOCKET 407 TCP-Dn   1.2.3.4:443     1.2.3.5:42183
20141002-151201 HTTPS_SOCKET 407 TCP-Clsd 1.2.3.4:443     1.2.3.5:42183

   I feel I am missing something trivial here...

   Using monit-5.9 on gentoo.

Marcus


--

Marcus Mülbüsch
Systemadministration

fon: +49 (0)208 9898 98-49
fax: +49 (0)208 9898 98-949
_______________________________________

AS-Infodienste GmbH
Hardenbergstr. 18b
45472 Mülheim

mail: address@hidden
web: www.as-infodienste.de
fb:  www.facebook.com/ASInfodienste

Kontakt zum Telefonsupport für
Servicerufnummern:    +49 (0)208 9898 98-11
Telefonsekretariat:   +49 (0)208 9898 98-12
SMS-Dienstleistungen: +49 (0)208 9898 98-13
Telefonkonferenzen:   +49 (0)208 9898 98-17

Unternehmenszentrale:
fon: +49 (0)208 9898 98-00
fax: +49 (0)208 9898 98-900
_______________________________________

Unternehmensangaben:

Die AS-Infodienste GmbH ist im
Handelsregister des AG Duisburg
unter HRB 16061 registriert.

Geschäftsführer:
Andreas Schlacht
Alexander Stellmach

USt.-ID: DE 813295188
St.-Nr.: 120/5742/0589
________________________________________

Wir sind Mitglied im Wirtschaftsrat
der Deutschen Umweltstiftung.
        
Wir nutzen klimafreundlichen Ökostrom
von NATURSTROM. Damit leisten wir
einen Beitrag zum Umweltschutz.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]