INSTALLATION:

cd /usr/src
wget http://rfxnetworks.com/downloads/prm-current.tar.gz
tar -zxvf prm-current.tar.gz
cd prm-0.*
./install.sh
perl -p -i -e 's/MIN_LOAD=.*/MIN_LOAD="5"/g' /usr/local/prm/conf.prm
perl -p -i -e 's/WAIT=.*/WAIT="20"/g' /usr/local/prm/conf.prm
perl -p -i -e 's/MAXCPU=.*/MAXCPU="60"/g' /usr/local/prm/conf.prm
perl -p -i -e 's/MAXMEM=.*/MAXMEM="40"/g' /usr/local/prm/conf.prm

PRM Start Test

/usr/local/sbin/prm -s

=======================

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.



RaviBagul
--------
-----
---
.