-
Download
and Unzip to
1) cpualert_setup.txt for
threshold and 2) cpualert_email.txt -
Optional for alternative SMTP to send alert. 3) cpualert
-
SMS and Email alerts send out from our server and has option to
setup alternative SMTP to send email alert
via
SendGrid
SMTP relay service
(API
key for password, no security concern, 100/day for free)
or
Local/Free
SMTP
at the same time
to ensure you can receive alerts.
-
Get alert when
CPU/MEM usage
continues high for a period of time
-
You can setup
consecutive 1 or 2,3...50..200..xxx and
usage yy% as threshold limit. Get alert
only when CPU / Memory
usage has consecutive
xx times higher than
yy%
-
No alert for short high Spikes. No continue sending you alerts
when utilization remains high - Alert you once only when
normal -> consecutive abnormal high -> normal status
changed. Let you know when it is
abnormal and when it is back exactly.
-
Alert message will tell you the
CPU/MEM usage and TOP1 data including PID, USER, %CPU, %MEM, TIME, COMMAND. See
below sample
-
Write any higher than threshold record to log file with TOP1 program name, PID and timestamp
and mail you log file at midnight everyday to let you
pay attention earlier or evidence for your clients
-
Run
cpualert directly
and you can run it in background with
silent mode by running cpualert -s & when
it has been tested OK.
-
Has option to KILL TOP1 process when
consecutive high than a KILLCOUNT number and alert text will tell you
which PID & COMMAND
has been killed. You can setup a SMALL
threshold number and a BIG killcount number to get alert immediately
and kill TOP1 process if CPU/MEM usage consecutive high for a log
period of time
-
I am Alive mail
notification - Mail you today's log at
midnight everyday to let you check the daily log from mail directly
and you also can know program is up and running
-
Register to get free SMS to test
Sample for SMS alert text
192.168.1.2 SuSe CPU now 100% higher than 75% for 10
times (TOP1- PID: 31118 USER: root %CPU: 99.6 %MEM: 0.1
TIME: 5:30.60 COMMAND: loopcpu
- TOP1 data is
the TOP command and sort %CPU or
%MEM
|