- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to set the alert for CPU usage crosses 80% and...
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
тАО01-11-2011 07:35 AM
тАО01-11-2011 07:35 AM
if you have any script pls help me
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2011 09:02 AM
тАО01-11-2011 09:02 AM
SolutionIf you want to go with a free option, search for statmon using google and read all about it and install it. It is not only for CPU but useful for many other things. You might want to install it in a central server use it on data collected from other systems.
It is a very lengthy process to explain how to install it here. You need to read the documentation on the web
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2011 10:04 AM
тАО01-11-2011 10:04 AM
Re: how to set the alert for CPU usage crosses 80% and above.
cd /var/opt/perf
vi alarmdef (make customisations - it's easy!)
opva restart alarm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2011 10:40 AM
тАО01-11-2011 10:40 AM
Re: how to set the alert for CPU usage crosses 80% and above.
alarm CPU_Bottleneck > 50 for 5 minutes
type = "CPU"
start
if CPU_Bottleneck > 90 then
{
red alert "CPU Bottleneck probability= ", CPU_Bottleneck, "%"
exec "/usr/local/SM/perf/mwa_email.ksh `hostname` CPU start"
}
else
yellow alert "CPU Bottleneck probability= ", CPU_Bottleneck, "%"
repeat every 10 minutes
if CPU_Bottleneck > 90 then
{
red alert "CPU Bottleneck probability= ", CPU_Bottleneck, "%"
}
else
yellow alert "CPU Bottleneck probability= ", CPU_Bottleneck, "%"
end
{
reset alert "End of CPU Bottleneck Alert"
exec "/usr/local/SM/perf/mwa_email.ksh `hostname` CPU end"
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2011 06:16 AM
тАО01-12-2011 06:16 AM
Re: how to set the alert for CPU usage crosses 80% and above.
Check if Glance/Performance Agent is available in your system. It is the best tool that fits your need.
swlist | egrep -i "glance | Performance Agent"
You can define alerts for many system metrics. Alternatively, I think HP Sitescope also fits your need. But these are licensed products.
Another way to do: write your own script that get "sar" command output and check for cpu util values, send snmp trap or mail periodically