Dudki is a process monitoring daemon that sits silently in background and checks whether the processes he feels responsible for are running. He gets a process identifier from the file, sees if the process is alive and if not, does his best to start one. Dudki reports the actions taken to his owner via email.

Here is the sample dudki.conf configuration file:

  CheckInterval 60
  PidFile /var/run/
  Daemonize on

  MailtoHeader From "Dudki <>"

  <Process named>
   PidFile /var/run/
   RestartCommand "exec /usr/sbin/named"
  <Process sshd>
   PidFile /var/run/
   RestartCommand "exec /usr/sbin/sshd"

  <Process cron>
   ProcessName cron
   RestartCommand "exec /usr/sbin/cron"

In this example dudki monitors the bind DNS server, ssh secure shell daemon and cron daemon, the latter is monitored by looking up the process name, not using PID-file. It checks processes every minute, restarts those that do not run and sends reports to the email. To make even safer you can have cron return the courtesy by watching back the dudki process — make it run dudki -e command every once in a while.

comments powered by Disqus