- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Script Help-System Peformance
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2005 05:07 PM
тАО12-14-2005 05:07 PM
Need Help for Script
What my script will do
Script will collect CPU Performance for every one minute(Thro'Schedule) if the CPU Perf. will go above 40%,it will send username,pid and hostname details to admin mail id
Pleas anyone help for this
Solved! Go to Solution.
- Tags:
- Monitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2005 06:04 PM
тАО12-14-2005 06:04 PM
Re: Script Help-System Peformance
Put following in cron. Run it as you want.
UNIX95= ps -ef -o pid,ruser,pcpu,args|tr -d "%" |awk '{if($4>=90) print $0}' | mailx -s "processes takig more than 90% cpu in last scheduling interval" abc@xyz.com
The better method would be configuring a correct alarm in /var/opt/perf/alarmdef file. This would email you when thresholds are crossed. Check the examples in /opt/perf/examples/adviser directory.
- Tags:
- PS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2005 06:14 PM
тАО12-14-2005 06:14 PM
Re: Script Help-System Peformance
If any script to send alert mail like which user using more cpu util...above 60% and from which IP or Hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2005 06:18 PM
тАО12-14-2005 06:18 PM
Re: Script Help-System Peformance
May be if you can exaplain what you are trying to do, we may be able to help you better.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2005 06:46 PM
тАО12-14-2005 06:46 PM
Re: Script Help-System Peformance
i think thro' script by schedule every minutes to check the cpu perf..
and if cpu utilization going beyond 40% send a mail alert to adminid with username and hostname details(which user using more
cpu utilization)
pls....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2005 07:02 PM
тАО12-14-2005 07:02 PM
Re: Script Help-System Peformance
UNIX95= ps -ef -o pcpu="CPU %" -o ruser=USER -o pid,args|awk '{if($1>=40)print $0}'|sort -rk1|head -16
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2005 07:32 PM
тАО12-14-2005 07:32 PM
Re: Script Help-System Peformance
Question what's the problem that a system has sometimes 100% CPU utilisation.
It's better to have a cpu runninig between the 70 en 90% then lower. If it hit sometimes the 100% it's only working. When also the swapspace en threads are filling up it's usefull to get an alert.
In the mean time with glance you can look wich process had needed the 100 % cpu.
grtz. Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2005 07:33 PM
тАО12-14-2005 07:33 PM
Re: Script Help-System Peformance
Question what's the problem that a system has sometimes 100% CPU utilisation.
It's better to have a cpu runninig between the 70 en 90% then lower. If it hit sometimes the 100% it's only working. When also the swapspace and threads are filling up it's usefull to get an alert.
In the mean time with glance you can look wich process had needed the 100 % cpu.
grtz. Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2005 11:21 PM
тАО12-14-2005 11:21 PM
Re: Script Help-System Peformance
Background:
http://www.hpux.ws/system.perf.sh
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2005 08:37 PM
тАО12-15-2005 08:37 PM
Re: Script Help-System Peformance
I've a script that by Glance collects the % of use for CPU, DISK, MEM and SWAP and notify me when 2 of them are over a threshold.
Let me know if you are interested in this and I'll provide you. (I'd like to avoid to post unnecessary script).
HTH,
Art