Current time: 05-18-2024, 10:45 AM Hello There, Guest! (LoginRegister)


Post Reply 
[How-to] Configure MONIT to monitorize your server
Author Message
tioan Offline
Junior Member
*

Posts: 22
Joined: Dec 2006
Reputation: 0
Post: #11
RE: [How-to] Configure MONIT to monitorize your server
Here some config stuff to monitoring courier authdaemon/popd/imapd

Code:
# courier_authdaemon
check process authdaemon with pidfile /var/run/courier/authdaemon/pid
   group services
   start program = "/etc/init.d/courier-authdaemon start"
   stop  program = "/etc/init.d/courier-authdaemon stop"
   if 5 restarts within 5 cycles then timeout

# courier_imapd
check process imapd with pidfile /var/run/courier/imapd.pid
   group services
   start program = "/etc/init.d/courier-imap start"
   stop  program = "/etc/init.d/courier-imap stop"
   if 5 restarts within 5 cycles then timeout
   if failed port 143 protocol imap then restart

## courier_imapd-ssl
#check process imapd-ssl with pidfile /var/run/courier/imapd-ssl.pid
#   group services
#   start program = "/etc/init.d/courier-imap-ssl start"
#   stop  program = "/etc/init.d/courier-imap-ssl stop"
#   if 5 restarts within 5 cycles then timeout

# courier_pop3d
check process pop3 with pidfile /var/run/courier/pop3d.pid
   group services
   start program = "/etc/init.d/courier-pop start"
   stop  program = "/etc/init.d/courier-pop stop"
   if failed port 110 protocol pop then restart
   if 5 restarts within 5 cycles then timeout

## courier_pop3d-ssl
#check process pop3-ssl with pidfile /var/run/courier/pop3d-ssl.pid
#group services
#start program = "/etc/init.d/courier-pop-ssl start"
#stop program = "/etc/init.d/courier-pop-ssl stop"
#if failed port 995 then restart
#if 5 restarts within 5 cycles then timeout

I have already prepared the ssl mode of imapd and popd because i think ispcp will support it in the future ( or i write some how to Wink )
(This post was last modified: 06-27-2007 01:44 AM by tioan.)
06-27-2007 12:51 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [How-to] Configure MONIT to monitorize your server - tioan - 06-27-2007 12:51 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)