/[monit]/monit/monit.pod
ViewVC logotype

Diff of /monit/monit.pod

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.25 by rory, Wed Sep 25 22:43:38 2002 UTC revision 1.26 by chopp, Tue Oct 8 11:34:37 2002 UTC
# Line 495  the port (using either tcp or udp) and v Line 495  the port (using either tcp or udp) and v
495  will accept a connection and that it is possible to read and  will accept a connection and that it is possible to read and
496  write to the socket. If a connection is not accepted or if there  write to the socket. If a connection is not accepted or if there
497  is a problem with the socket i|o, monit will assume that  is a problem with the socket i|o, monit will assume that
498  something is wrong and restart the program. The full syntax for  something is wrong and restart the program.  Additionally, if
499  the port-statement used for connection testing is as follows  monit is compiled with openssl support ssl forged network
500  (keywords are in capital and optional statements in [brackets])  services can be tested, too.
501  for networked ports,  
502    The full syntax for the port-statement used for connection
503    testing is as follows (keywords are in capital and optional
504    statements in [brackets]) for networked ports,
505    
506   [HOST hostname] PORT number [TYPE {TCP|UDP}] [PROTO(COL) {name}   [HOST hostname] PORT number [TYPE {TCP|UDP|TCPSSL}]
507    [REQUEST {"/path"}]]           [PROTO(COL) {name} [REQUEST {"/path"}]]
508    
509  or for unix sockets,  or for unix sockets,
510    
# Line 585  programs as well as view the status of e Line 588  programs as well as view the status of e
588  monit logs to its own file, you can view the content of this  monit logs to its own file, you can view the content of this
589  logfile from a Browser.  logfile from a Browser.
590    
591    If monit is compiled with openssl support you can monit's http
592    server wheather with or without ssl support.
593    
594  The control file statement for starting a monit daemon with http  The control file statement for starting a monit daemon with http
595  support is a global set-statement:  support is a global set-statement:
596    
# Line 596  the daemon from a browser. Line 602  the daemon from a browser.
602  The port number, in this case 2812, can be any number that you  The port number, in this case 2812, can be any number that you
603  are allowed to bind to.  are allowed to bind to.
604    
605    Or if you want to have ssl support for the httpd server you can
606    use the following expression:
607    
608      set sslhttpd port 2812 pemfile /var/certs/monit.pem
609    
610    The pemfile holds the private key and the certificate.  It should
611    be stored on a safe place on the filesystem and should have
612    strict permissions.  For more information how to generate this
613    file please consult README.ssl
614    
615  If you only want the http server to accept connect requests to  If you only want the http server to accept connect requests to
616  one host addresses you can specify the bind address either as an  one host addresses you can specify the bind address either as an
617  IP number string or as a hostname. In this example we bind the  IP number string or as a hostname. In this example we bind the
# Line 608  or Line 624  or
624    
625    set httpd port 2812 and use the address localhost    set httpd port 2812 and use the address localhost
626    
627    or
628    
629      set ssl httpd port 2812
630          address localhost
631          pemfile /var/certs/monit.pem
632    
633  If you do not use the ADDRESS statement the http server will  If you do not use the ADDRESS statement the http server will
634  accept connections on any/all local addresses.  accept connections on any/all local addresses.
635    
# Line 870  much easier to read at a glance. The pun Line 892  much easier to read at a glance. The pun
892                   either tcp or udp.                   either tcp or udp.
893   tcp             Specifies that monit should use a TCP   tcp             Specifies that monit should use a TCP
894                   socket type (stream) when testing the port.                   socket type (stream) when testing the port.
895     tcpssl          Specifies that monit should use a TCP
896                     socket type (stream) which is embeds a ssl
897                     connection when testing the port.
898   udp             Specifies that monit should use a UDP socket   udp             Specifies that monit should use a UDP socket
899                   type (datagram) when testing the port.                   type (datagram) when testing the port.
900   proto(col)      This keyword specifies the type of service   proto(col)      This keyword specifies the type of service
# Line 943  much easier to read at a glance. The pun Line 968  much easier to read at a glance. The pun
968  Here's the complete list of reserved B<keywords> used by monit:  Here's the complete list of reserved B<keywords> used by monit:
969    
970  I<set>, I<daemon>, I<logfile>, I<syslog>, I<address>, I<httpd>,  I<set>, I<daemon>, I<logfile>, I<syslog>, I<address>, I<httpd>,
971  I<allow>, I<check>, I<init>, I<pidfile>, I<group>, I<start>,  I<sslhttpd>, I<allow>, I<check>, I<init>, I<pidfile>, I<group>,
972  I<stop>, I<port(number)>, I<unix(socket)>, I<type>,  I<start>, I<stop>, I<port(number)>, I<unix(socket)>, I<type>,
973  I<proto(col)>, I<tcp>, I<udp>, I<alert>, I<mail-format>,  I<proto(col)>, I<tcp>, I<tcpssl>, I<udp>, I<alert>,
974  I<restart>, I<timeout>, I<checksum>, I<resource>, I<expect>,  I<mail-format>, I<restart>, I<timeout>, I<checksum>, I<resource>,
975  I<mailserver>, I<every>, I<autostart>, I<yes>, I<no>, I<host>,  I<expect>, I<mailserver>, I<every>, I<autostart>, I<yes>, I<no>,
976  I<default>, I<http>, I<ftp>, I<smtp>, I<pop>, I<nntp>, I<imap>,  I<host>, I<default>, I<http>, I<ftp>, I<smtp>, I<pop>, I<nntp>,
977  I<request>, I<cpuusage>, I<memusage>, I<memkbyte> and I<loadavg>.  I<imap>, I<request>, I<cpuusage>, I<memusage>, I<memkbyte> and
978    I<loadavg>.
979    
980  And here is a complete list of B<noise keywords> ignored by  And here is a complete list of B<noise keywords> ignored by
981  monit:  monit:

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26