Solved

Alert Linux Processes with STATE RSZDT

Posted on 2011-09-16
4
3,467 Views
Last Modified: 2012-05-12
I have some linux servers with alerts of processes with STATE = RSZDT by monitor Nagios.
What processes I kill and exist a script (sh) to do this?
Regards,
Marcelo
0
Comment
Question by:fmarcelo14
  • 2
  • 2
4 Comments
 
LVL 21

Expert Comment

by:Papertrip
ID: 36549849
That is not 1 state, but rather a combination of process state codes.  If nagios is alerting for that while the server is under normal load, then you need to increase the alert threshold.

D       Uninterruptible sleep (usually IO)
R       Running or runnable (on run queue)
S       Interruptible sleep (waiting for an event to complete)
T       Stopped, either by a job control signal or because it is being traced.
W       paging (not valid since kernel 2.6.xx)
X       dead (should never be seen)
Z       Defunct ("zombie") process, terminated but not reaped by its parent.
0
 

Author Comment

by:fmarcelo14
ID: 36550183
OK, but there is "sh" or "script" to kill processes with state "Z" and "D".
0
 

Author Comment

by:fmarcelo14
ID: 36550186
OK, but there is "sh" or "script" to kill processes with state "Z" and "D"?
0
 
LVL 21

Accepted Solution

by:
Papertrip earned 500 total points
ID: 36551307
Are you sure you have processes in those states?  It's not abnormal to see a few Z's now and then, but usually they get cleaned up.

If you have Z processes, either kill the parent if possible or just deal with it, they consume no resources.
If you have D processes, same thing applies about the parent, however if you have a ton of these you definitely have an I/O problem.

Basically you shouldn't have to automate killing those processes, you should fix the source of the problem.

However if you really want to, you can give this a shot.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question