This is just documentation misunderstand - i will fix it.

As explained yeasterday, for example the same http protocol implementation is used for HTTP and HTTPS. SSL is just in the transport layer and is enabled by the 'type tcpssl' option which enables SSL on the socket.


Summary:
--------
to enable HTTPS test - you have to use:

 type tcpssl protocol http

the following syntax is *not* supported by monit currently:

 protocol https


Martin


Debrard Sébastien wrote:
Le mer 21/12/2005 à 01:08, Martin Pala a écrit :

Hi,



[..]


--8<--
 check host xyzzy with address xyzzy.org
       if failed port 443 type TCPSSL proto http then alert
--8<--



The documentation says:
"proto(col):PROTO {protocols}. Optionally specify the protocol monit
should speak when a connection is established. At the moment monit knows
how to speak HTTP, SMTP, FTP, POP, IMAP, MYSQL, NTP3, NNTP, SSH, DWP,
LDAP2, LDAP3, RDATE, DNS, POSTFIX-POLICY, APACHE-STATUS and RSYNC and if
you have compiled monit with ssl support, monit can also speak HTTPS,
FTPS, POPS and IMAPS."

So with your example, the configuration could be:

        check host xyzzy with address xyzzy.org
                if failed port 443 proto https then alert

But I didn't find any lines in the source code to do this with the
protocols pops, imaps, ftps. It seems to work only whit the protocol
https (I didn't test it but I can see it in the file p.y).


_______________________________________________
monit-dev mailing list
monit-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monit-dev

Reply via email to