Process Resource Monitor Copyright (C) 1999-2003, R-fx Networks Copyright (C) 2003, Ryan MacDonald This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 1 ................ Introduction 2 ................ Usage 3 ................ License 4 ................ Support 1) Introduction: PRM monitors the process table on a given system and matches process id's with set resource limits in the config file or per-process based rules. Process id's that match or exceed the set limits are logged and killed; includes e-mail alerts, kernel logging routine and more... 2) Usage: First you must configure the '/usr/local/prm/conf.prm' config file to meet your needs; the file is somewhat documented and should be a no brainer for most. For processes requiring custom limits; you can creat a process rule. These are simply files stored with redefined values for CPU/MEM and wait/trig values. By default there is a few rules setup in '/usr/local/prm/rules/'. The file naming scheme is based on the user/cmd name of the process. So 'webalizer' program we would make a rule file named 'webalizer'. The prm installation is located at '/usr/local/prm' and the executable program resides in '/usr/local/prm/prm' and '/usr/local/sbin/prm'. The prm executable can receive one of two arguments: -s Standard run -q Quiet run -j Toggle cronjob The log path for prm is '/usr/local/prm/prm_log', as well pid specific logs are stored in '/usr/local/prm/killed/'. A default cronjob for PRM is installed to '/etc/cron.d/prm', and is configured to run once every 5 minutes. There is a provided ignore file, to ignore processes based on string rules. The ignore file is located at '/usr/local/prm/ignore'. This file supports line seperated ignore strings. 3) License: PRM is developed and supported on a volunteer basis by Ryan MacDonald [ryan@r-fx.org] PRM (Process Resource Monitor) is distributed under the GNU General Public License (GPL) without restrictions on usage or redistribution. The PRM copyright statement, and GNU GPL, "COPYING.GPL" are included in the top-level directory of the distribution. Credit must be given for derivative works as required under GNU GPL. 4) Support: All inquiries relating to PRM should be directed to prm@r-fx.org and/or check the r-fx.org projects page at: http://www.r-fx.org/proj.php