Solved

Alert Linux Processes with STATE RSZDT

Posted on 2011-09-16
4
3,284 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Automating a script for user accounts LINUX 14 68
nagios remote hosts 9 43
Need BIOS update Linux for MSI X99A motherboard. 4 27
expectj telnet failing 5 23
Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

912 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

21 Experts available now in Live!

Get 1:1 Help Now