Solved

Alert Linux Processes with STATE RSZDT

Posted on 2011-09-16
4
3,175 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
Comment Utility
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
Comment Utility
OK, but there is "sh" or "script" to kill processes with state "Z" and "D".
0
 

Author Comment

by:fmarcelo14
Comment Utility
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
Comment Utility
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now