Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Alert Linux Processes with STATE RSZDT

Posted on 2011-09-16
4
Medium Priority
?
4,024 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 2000 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month11 days, 6 hours left to enroll

886 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