0.0
Repository is archived
No release in over 3 years
Low commit activity in last 3 years
Process Watch monitors processes and workflows in your Linux system for anomalies or situations which when arise trigger predetermined actions you designate.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.3
>= 0
 Project Readme

Process Watch

License: (MIT) Copyright (C) 2013 Phil Chen.

THIS PROJECT HAS MOVED TO:

This project is no longer maintained here please visit the above link for the new Process Watch

DESCRIPTION:

Process Watch monitors processes and workflows in your Linux system for anomalies or situations which when arise trigger predetermined actions you designate.

This is useful for systems issues, automating troubleshooting, provisioning, scaling, and much more.

CURRENT FEATURES:

Seeing if a daemon/process is running and if not execute some combination of notify and starting it

Detecting if a process is a runaway if so execute some combination of notify and killing it

Email system utilization statistics in the state prior to correcting the runaway process or starting a dead one

PREREQUISITES:

Linux, Ruby, RubyGems Cron (Or some other scheduler)

Tested with:

ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]
ruby 1.9.3p429 (2013-05-15) [x86_64-linux]
rubygems version 1.8.23
rubygems version 2.0.3

INSTALLATION:

$ gem install processwatch

Create a file setup.rb

require 'processwatch'
  include Processwatch_setup
    setup

Run the setup.rb

ruby setup.rb

CONFIGURATION:

Configure the configuration files locate in /usr/local/processwatch/conf/

Note you can have multiple services monitored for restart. See example restart configuration file restart_ssh You can add more restart processes with the naming convention restart_uniqueappname (note prefix restart_)

USING PROCESSWATCH:

The processwatch executable is /usr/local/processwatch/processwatch.rb you will want to set it on a cron like:

*/5 * * * * /usr/bin/ruby /usr/local/processwatch/processwatch.rb