Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

processwatch

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

processwatch

  • 3.0.9
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Process Watch

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

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, Cron (Or some other scheduler)

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

FAQs

Package last updated on 18 Aug 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc