Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to monitor my postfix, dovecot and sasl process and start them if something go wrong. I read about daemontools and I want it to monitor mail services. Can I find somewhere step by step guide to setup daemontools on Debian? I've already installed daemontools and daemontools-run packages.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

daemontools is not really a meant to be used as a monitoring system for existing services. It is more of a framework for creating daemonized services that happens to have builtin self-monitoring and auto-restarting capabilities.

With a great deal of effort, you may be able to retrofit the postfix, dovecot, and sasl processes to run within the daemontools framework, but I can almost certainly guarantee that your time will be much better spent learning a tool better suited for what you want to accomplish.

I recommend you look into monit. It is packaged for Debian and should work well with the other Debian-packaged services that you want to monitor.

share|improve this answer
    
Thank You. monit is great. –  PsychoX Oct 6 '11 at 11:25

Your intention is generally good. But...

Postfix and Dovecot are two of the most robust and mature software on your server. If one of them fail then you have another big problem. But most probably this problem is not related to Postfix or Dovecot. A restart of these services will run in the same problem as there was before. Postfix and Dovecot have self-healing mechanisms on board that restart their subroutines on their own. And SASL is a subroutine of Dovecot so there is no need to monitor this.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.