Process Monitor



February 26, 2009 12:36 pm






Download processmon 1.0.tar.gz

This utility will monitor your daemons and if they fail it will attempt to restart them. If it succeeds, it will send an email telling you it succeeded, if it fails to restart the daemon it will email you to tell you to investigate!

This utility will only work for daemons that spawn pid files, and will only send mail if the server it is running on has email correctly configured.

This utility can itself be run as a daemon, so you can configure it once and always have your daemons monitored!

The way the utility works is:

  1. Every 15 minutes:
  2. We read in a config line from the configuration file /etc/processmon.conf
  3. We check to see if the process is running if the process is not running we:
  4. We check to see if the pid file exists – if it exists we assume the daemon has crashed
  5. We attempt to restart the daemon
  6. We send an email to the configured administrator informing them that the daemon stopped and whether we were able to restart it or not

The zip files contains an install script – once installed you must configure the utility via the /etc/processmon.conf file – there are instructions in the file as to how to do this. The install also creates a launch file in /etc/init.d so that you can configure it to start at run levels using System Services from Yast. You can also run from a terminal by typing processmon.


0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.

Categories: Free Tools, Technical Solutions

Disclaimer: As with everything else in the SUSE Blog, this content is definitely not supported by SUSE (so don't even think of calling Support if you try something and it blows up).  It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.

1 Comment

  1. By:tricky6

    This is something we’ve been after for ages! Life has become a lot less painful since I’ve seen this tool!