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: [email protected]
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.

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to