• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4346
  • Last Modified:

Alert Linux Processes with STATE RSZDT

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
fmarcelo14
Asked:
fmarcelo14
  • 2
  • 2
1 Solution
 
PapertripCommented:
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
 
fmarcelo14Author Commented:
OK, but there is "sh" or "script" to kill processes with state "Z" and "D".
0
 
fmarcelo14Author Commented:
OK, but there is "sh" or "script" to kill processes with state "Z" and "D"?
0
 
PapertripCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now