email alerts for memory or cpu exceeding thresholds


 
Thread Tools Search this Thread
Operating Systems AIX email alerts for memory or cpu exceeding thresholds
# 1  
Old 05-17-2009
email alerts for memory or cpu exceeding thresholds

Hi Guys,

I hope this is an easy question: I need some kind of script or an idea how I can convince syslog to send an email to root or someone else once cpu usage exceeds 95% or the memory consumption (maybe via AVM value times 4k) exceeds 85% of my real memory on any of my 700 lpars. We're running AIX 5.3 + 6.1

Any idea? We have tivoli setup but this only generates tickets and according to the tivoli team only to one queue - my customer doesnt want tickets, he wants email.

Any bit of help here is highly appreciated.

Thanks and regards
zxmaus
# 2  
Old 05-17-2009
I don't believe you can get syslog to send emails; I would write a script that ran a memory monitoring utility (e.g. top -b | grep Memory | awk '{ print $2 }', what you grep for and which column you select will depend on your version of top) and got the script to call mailx/mail/sendmail and run it from cron at frequent and regular intervals.
# 3  
Old 05-17-2009
An AIX admin would probably use RMC which is part of the OS since 5L and brings monitors exactly for what you asked: turn on / turn off events on conditions and send email and/or do some other action from there. Forget scripts that watch usage of filesystems, cpu and memory usage and so on. We don't need that. RMC has been there for years ready to use. Just pick one of the 80+ monitors and adapt or adjust it to your needs. Once you get used to it, you will love it. IBM Redbooks | A Practical Guide for Resource Monitoring and Control (RMC)
# 4  
Old 05-17-2009
you should look into a real monitoring solution.
MRTG or cacti.

then you can alert of all sort of cool things.
server down, CPU usage, over temp, disk usage.
# 5  
Old 05-22-2009
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Send email attachment using Operating System Script(UNIX) in Oracle Alerts

Good Day Kindly assist: I am creating an Alert that will notify supervisors of staff members who are due for probation report. I am using Operating System Script(Unix) as source.I have already developed the script. Now the challenge is if there are 3 employee records then the alert... (2 Replies)
Discussion started by: nosi27
2 Replies

2. AIX

Would like to get email alerts when user password going to expire

Hello, I am trying to write a shell script, which will send email alerts to Admin/users when users password is going to expire in 15 days. Can you please help me with the script. thank you. (3 Replies)
Discussion started by: Kumar7997
3 Replies

3. Shell Programming and Scripting

Using top command to email if process is exceeding 25% and sending an email alert if so

This is my first time writing a script and Im having some trouble, Im trying to use the top command to monitor processes and the amount of CPU usage they require, my aim is to get an email if a process takes over a certain percentage of CPU usage I tried grep Obviosly that hasnt worked, Any... (8 Replies)
Discussion started by: jay02
8 Replies

4. Shell Programming and Scripting

Email alerts whenever someone logs into server via SSH any user?

Hi all, Thanks in Advance!! I dont know how to start to write script for this process, my requirement is if any user logs into server automatically Admin get mail alert. how is this possible? any one guide me to complete this process. (1 Reply)
Discussion started by: anishkumarv
1 Replies

5. Solaris

ALOM Email Alerts

Hi I'm new to this forum and I was hoping you can help me with this strange activity. I have a Sol10 sun4u sparc SunFireV250 machine. Currently running ALOM 1.6.8 firmware. The following error was experienced on this machine: "Input power unavailable for PSU @ PS0" Reading the documention... (0 Replies)
Discussion started by: La-Paloma78
0 Replies

6. Shell Programming and Scripting

Logic to send email alerts only 5 times a day

Hi, I have written below disk space monitoring script to monitor disk space every minute. I have scheduled this script through cron. But now my problem is this script alerts the users continuously until the space is freed up. These emails are filling up the inbox exponentially until the space... (3 Replies)
Discussion started by: svajhala
3 Replies

7. UNIX for Dummies Questions & Answers

Email Alerts

hi I am running so scripts that clean up empty folders on our servers once a week. I run from a cron. But what i would like to do is add a email notfication so i can be notified that it completed. The script is #Clean Empty Folders on Studio Share perl... (1 Reply)
Discussion started by: treds
1 Replies

8. Solaris

configure solaris 10 mail to relay email alerts from SAN switch

I want to be able to use an account on a solaris 10 server, eg root@myhost to act as a relay to forward mail to my domain account me@mycompany.com The reason for this is to configure root@myhost as a mail relay on Brocade SAN switches - so that when a port goes bad i get an email alert.... (0 Replies)
Discussion started by: wibidee
0 Replies

9. IP Networking

Email Alerts

Dear Network Masters, I want to know who brought up the concept of Email Alerts Feature. are their any RFC's on Email Alerts???? Please let me know. Thanks in Adv, meti (1 Reply)
Discussion started by: ashokmeti
1 Replies

10. Linux

Linux Memory Paging Thresholds

What would be a good threshold value for the following memory metrics? pgpgin/s pgpgout/s I would like to have a value that indicates a warning and an alarm level. Thanks in advance for any replies. (0 Replies)
Discussion started by: SunLinux
0 Replies
Login or Register to Ask a Question