Search 85,815 posts contributed by 43,487 members or post a topic.

Already Joined? Sign in

Featured Download

SQL Server 2005 Database - WMI Only

This template assesses the status and performance of a Microsoft SQL Server 2005 database. Prerequisites: SQL Authentication access to target server for...

Read more »

Uploaded by: gwgrimes
Date Created: Sun, Aug 16 2009
Downloads: 21
Rating:

points legend_

Icon Point Totals
2,000+
1000 - 1,999
400 - 999
100 - 399
1-99

 

processcpu

Linux script to monitor CPU or Mem % for an individual process

Here's a simple bash script I conjured up that will find a pid, and print out either the CPU or Memory % utilization from the ps command. Keep in mind that I am in the very early stages of learning bash scripting and there probably are better ways to accomplish what I'm looking for. I'm hoping that by posting this script here, people will be able to improve it and give it back to the APM community here as a resource they can use in their own installations.

Please please please, help us all out on this!  This is a "functional" first step, but it can be improved! If you know of a better way, please note it here, or upload a better script.

 

To use this in a template you need to do the following:

1. Upload the script to the target server.

2. Configure a new template using a Linux/Unix Script Monitor.

3. Configure credentials that will have access and execute permissions to the location where you uploaded the script.

4. For the command line, enter the name of the script. i.e --  ./processcpu.sh

5. For the Script Working Directory, enter the location of the script. i.e. -- /home/user

6. For the Script body you can put anything -- you can't leave it blank, but it doesn't matter what you enter there.

7. Configure your response time thresholds according to your environment, and configure statistics thresholds according to %'s.


Product Details
Uploaded by: branfarm
Date Created: 06/11/2009
Downloads: 133
Rating:
Comments: 0
File Size: 417 B
Filed under: , ,
Like this content?
Do something with it!

 

© 2003 - 2010 SolarWinds, Inc. All Rights Reserved.

Who is SolarWinds?

SolarWinds is rewriting the rules for how companies manage their networks. Guided by a global community of network engineers, SolarWinds develops simple and powerful network management software and network monitoring software for networks of all sizes. SolarWinds also offers a network certification program to become a SolarWinds Certified Professional (SCP).

What is thwack?

thwack, SolarWinds online community site, was designed by network engineers, for network engineers. thwack is a vibrant, growing community of more than 30,000 IT pros who share a passion for technology.

Explore Resources, Answers, Templates, and Advice

Download Free Networking Tools


Learn More About SolarWinds Products