Fucking Process Alert

FPA is a perl script that mail you if a proccess gets more than x% of cpu more than t seconds

Current Version: 1.2
Download : fpa.tar.gz

Usage: ./fpa.pl -l=cpu_max_correct_in_% -i=interval_between_2_check (in second)

Example: ./fca.pl -l=20 -i=300
and you will get mail like this: (by default mail is send to root, this can be change in script)
From jeb Fri Mar 1 23:13:37 2002
Date: Fri, 1 Mar 2002 23:13:36 +0100 (CET)
From: Jean-Edouard BABIN <jeb>
To: root
Subject: CPU ABUSE !

The process /usr/bin/perl (pid 7574) get from 73.7 to 70.9% of cpu since 01/03/02 at 23H03:32 to 01/03/02 at 23H08:34 !! He used from 12.0 to 19.8% of ram and his running by statsuser

Note: if the process get more than x% of cpu you get only 1 mail, and not one every t second