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

Diff of /monit/monit.pod

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

revision 1.52 by martinp, Mon Dec 30 21:34:50 2002 UTC revision 1.53 by martinp, Fri Jan 3 20:15:17 2003 UTC
# Line 728  server: Line 728  server:
728   host www.tildeslash.com port 80 protocol http   host www.tildeslash.com port 80 protocol http
729    
730  At the moment monit knows how to speak I<HTTP>, I<SMTP>, I<FTP>,  At the moment monit knows how to speak I<HTTP>, I<SMTP>, I<FTP>,
731  I<POP>, I<IMAP>, I<NNTP> and I<SSH>.  If you have compiled monit  I<POP>, I<IMAP>, I<NNTP>, I<SSH> and I<DWP>.  If you have compiled
732  with ssl support, monit can also speak I<HTTPS>, I<FTPS>, I<POPS>  monit with ssl support, monit can also speak I<HTTPS>, I<FTPS>,
733  and I<IMAPS>.  I<POPS> and I<IMAPS>.
734    
735  Some protocols also support a request statement. This statement  Some protocols also support a request statement. This statement
736  can be used to ask the server for a special document entity.  can be used to ask the server for a special document entity.
# Line 1181  much easier to read at a glance. The pun Line 1181  much easier to read at a glance. The pun
1181                   server has to deliver.                   server has to deliver.
1182   proto(col)      This keyword specifies the type of service   proto(col)      This keyword specifies the type of service
1183                   found at the port. monit knows at the moment                   found at the port. monit knows at the moment
1184                   how to speak HTTP, SMPT, FTP, POP and IMAP.                   how to speak HTTP, SMTP, FTP, POP, IMAP, NNTP,
1185                   You're welcome to write new protocol test                   SSH and DWP. You're welcome to write new
1186                   modules. If no protocol is specified monit                   protocol test modules. If no protocol is
1187                   will use a default test which in most cases                   specified monit will use a default test which
1188                   are good enough.                   in most cases are good enough.
1189   request         Specifies a server request and must come   request         Specifies a server request and must come
1190                   after the protocol keyword mentioned above.                   after the protocol keyword mentioned above.
1191                    - for http it can contain an URI and an                    - for http it can contain an URI and an
# Line 1269  I<tcpssl>, I<udp>, I<alert>, I<mail-form Line 1269  I<tcpssl>, I<udp>, I<alert>, I<mail-form
1269  I<timeout>, I<checksum>, I<resource>, I<expect>, I<mailserver>,  I<timeout>, I<checksum>, I<resource>, I<expect>, I<mailserver>,
1270  I<every>, I<mode>, I<active>, I<passive>, I<manual>, I<depends>,  I<every>, I<mode>, I<active>, I<passive>, I<manual>, I<depends>,
1271  I<host>, I<default>, I<http>, I<ftp>, I<smtp>, I<pop>, I<nntp>,  I<host>, I<default>, I<http>, I<ftp>, I<smtp>, I<pop>, I<nntp>,
1272  I<imap>, I<ssh>, I<request>, I<cpuusage>, I<memusage>,  I<imap>, I<ssh>, I<dwp>, I<request>, I<cpuusage>, I<memusage>,
1273  I<memkbyte>, I<loadavg>, I<timestamp>, I<second(s)>,  I<memkbyte>, I<loadavg>, I<timestamp>, I<second(s)>,
1274  I<minute(s)>, I<hour(s)> and I<day(s)>.  I<minute(s)>, I<hour(s)> and I<day(s)>.
1275    
# Line 1510  the other statements are optional and th Line 1510  the other statements are optional and th
1510  statements is not important.  statements is not important.
1511    
1512    
 =head2 BEST PRACTICE  
   
 This section brings you example configurations from real world  
 as used for appropriate process monitoring. You are welcome to  
 send your process configuration :)  
   
 =head3 SSHD  
   
  check sshd with pidfile /var/run/sshd.pid  
    start program  "/etc/init.d/sshd start"  
    stop program  "/etc/init.d/sshd stop"  
    host 192.168.1.1 port 22 protocol ssh  
    alert foo@bar  
    alert 123456@sms on { timeout }  
   
 =head3 iPlanetDirectoryServer slapd  
   
  check ldap-master with pidfile /usr/iplanet/ldapmaster/slapd-master-1/logs/pid  
    start program  "/usr/iplanet/ldapmaster/slapd-master-1/start-slapd"  
    stop program  "/usr/iplanet/ldapmaster/slapd-master-1/stop-slapd"  
    timeout(5, 5)  
    host 192.168.1.1 port 389  
    alert foo@bar  
    alert 123456@sms on { timeout }  
   
 =head3 iPlanetMessagingServer MTA dispatcher  
   
  check mta-dispatcher with pidfile /usr/iplanet/msg-ims-1/config/pidfile.imta_dispatch  
    start program  "/usr/iplanet/msg-ims-1/imsimta start dispatcher"  
    stop program  "/usr/iplanet/msg-ims-1/imsimta stop dispatcher"  
    timeout(5, 5)  
    host 192.168.1.1 port 25 protocol smtp  
    alert foo@bar  
    alert 123456@sms on { timeout }  
   
 =head3 iPlanetMessagingServer MTA job controler  
   
  check mta-job_controller with pidfile /usr/iplanet/msg-ims-1/config/pidfile.imta_jbc  
    start program  "/usr/iplanet/msg-ims-1/imsimta start job_controller"  
    stop program  "/usr/iplanet/msg-ims-1/imsimta stop job_controller"  
    timeout(5, 5)  
    host 192.168.1.1 port 28442  
    alert foo@bar  
    alert 123456@sms on { timeout }  
   
 =head3 iPlanetMessagingServer stored  
   
  check store with pidfile /usr/iplanet/msg-ims-1/config/pidfile.store  
    start program  "/usr/iplanet/msg-ims-1/start-msg store"  
    stop program  "/usr/iplanet/msg-ims-1/stop-msg store"  
    timestamp "/usr/iplanet/msg-ims-1/config/stored.ckp" > 10 minutes then alert  
    timestamp "/usr/iplanet/msg-ims-1/config/stored.lcu" > 15 minutes then alert  
    timestamp "/usr/iplanet/msg-ims-1/config/stored.per" > 70 minutes then alert  
    timeout(5, 5)  
    alert foo@bar  
    alert 123456@sms on { timeout }  
   
 =head3 iPlanetMessagingServer mshttpd  
   
  check webmail with pidfile /usr/iplanet/msg-ims-1/config/pidfile.http  
    start program  "/usr/iplanet/msg-ims-1/start-msg http"  
    stop program  "/usr/iplanet/msg-ims-1/stop-msg http"  
    timeout(5, 5)  
    host 192.168.1.1 port 80 protocol http request "/default.html"  
    alert foo@bar  
    alert 123456@sms on { timeout }  
   
 =head3 iPlanetMessagingServer popd  
   
  check pop3 with pidfile /usr/iplanet/msg-ims-1/config/pidfile.pop  
    start program  "/usr/iplanet/msg-ims-1/start-msg pop"  
    stop program  "/usr/iplanet/msg-ims-1/stop-msg pop"  
    timeout(5, 5)  
    host 192.168.1.1 port 110 protocol pop  
    alert foo@bar  
    alert 123456@sms on { timeout }  
   
 =head3 iPlanetMessagingServer imapd  
   
  check imap4 with pidfile /usr/iplanet/msg-ims-1/config/pidfile.imap  
    start program  "/usr/iplanet/msg-ims-1/start-msg imap"  
    stop program  "/usr/iplanet/msg-ims-1/stop-msg imap"  
    timeout(5, 5)  
    host 192.168.1.1 port 143 protocol imap  
    alert foo@bar  
    alert 123456@sms on { timeout }  
   
 =head3 iPlanetMessagingServer madmand (SNMP subagent)  
   
  check snmp-subagent with pidfile /usr/iplanet/msg-ims-1/config/pidfile.snmp  
    start program  "/usr/iplanet/msg-ims-1/start-msg snmp"  
    stop program  "/usr/iplanet/msg-ims-1/stop-msg snmp"  
    timeout(5, 5)  
    alert foo@bar  
    alert 123456@sms on { timeout }  
   
 =head3 iPlanetMessagingServer MMP (POP3/IMAP4 proxy)  
   
  check mmp with pidfile /usr/iplanet/mmp-ims2/pidfile  
    start program  "/usr/iplanet/mmp-ims2/AService.rc start"  
    stop program  "/usr/iplanet/mmp-ims2/AService.rc stop"  
    timeout(5, 5)  
    host 192.168.1.2 port 110 protocol pop  
    host 192.168.1.2 port 143 protocol imap  
    alert foo@bar  
    alert 123456@sms on { timeout }  
   
   
1513  =head1 FILES  =head1 FILES
1514    
1515  F<~/.monitrc>    F<~/.monitrc>  

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

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