RE: monitor ssl websocket (wss://)

[email protected] Mon, 17 Jan 2022 11:49:16 GMT
Newsgroups gmane.comp.monitoring.monit.general
Message-ID <[email protected]>
                        
                            .fr-emoticon.fr-emoticon-img {
                                background-repeat: no-repeat !important;
                                font-size: inherit;
                                height: 1em;
                                width: 1em;
                                min-height: 20px;
                                min-width: 20px;
                                display: inline-block;
                                margin: -0.1em 0.1em 0.1em;
                                line-height: 1;
                                vertical-align: middle;
                            }
                            .fr-emoticon {
                                font-weight: normal;
                                font-family: "Apple Color Emoji","Segoe UI Emoji","NotoColorEmoji","Segoe UI Symbol","Android Emoji","EmojiSymbols";
                                display: inline;
                                line-height: 0;
                            }
                        Hello,
do you spent some time to have a look to the protocol http/https and use the header option to modify the header sent by the https request.
See https://mmonit.com/monit/documentation/monit.html#HTTP
To initialize a websocket session a normal https request contain some additional header information

Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
Sec-WebSocket-Protocol: chat, superchat
Sec-WebSocket-Version: 13

And the server should response with status 101 to accept the request.
For additional information see https://datatracker.ietf.org/doc/html/rfc6455
 
A suggestion only,
Lutz

p.s.
I try to find a useful test case myself.


-----urspr&uuml;ngliche Nachricht-----
 Von:  [email protected] (mailto:[email protected]" target="_blank)
 Gesendet: 15.01.2022 18:16 Uhr
 An:  [email protected] (mailto:[email protected]" target="_blank)
 Betreff: monitor ssl websocket (wss://)
Hi,Is it possible to monitor wss://  websocket using Monit?


I&#39;ve tried several configurations, but none of them works and example in
the user guide is for unsecured websocket.

I&#39;d like to monitor it for reachability and SSL certificate expiration.

Any help is appreciated,

Thanks.

  -------- Конец пересылаемого сообщения --------
-----urspr&uuml;ngliche Nachricht Ende-----