ps-watcher periodically a gets a list of process names via ps. A configuration file specifies a list of Perl regular-expression patterns to match the processes against. For each match, a Perl expression specified for that pattern is evaluated. The evaluated expression can refer to variables which are set by ps and pertain to the matched process(es), including the amount memory consumed by the process, or the total elapsed time. If the Perl expression for a matched pattern evaluates true, then an action can be run such as killing the program, restarting it, or mailing an alert.
|Tags||Monitoring Systems Administration|
Release Notes: pidfile and Darwin 9 support were added.
Release Notes: This release corrects some small bugs and has been changed to work on OS X Leopard.
Release Notes: Some minimal Cygwin support was added, and support for other operating systems (NetBSD, OpenBSD, and OS X) was corrected. For security, there is aa --path option to limit the path used in running commands. Some bugs were fixed and the code was modernized a little.
Release Notes: A number of small changes suggested by users were made.
Release Notes: A feature was added to allow one to accumulate information over all processes via user-specified Perl code and to take action on that. The ps-variable order in GNU/Linux was changed to ensure that single-token attributes don't get messed up by multiple-token attributes.