Do you have a way of knowing if the process is hung?
ie: curl to see if port is open, or run service $name status
from a linux forum... "ps auxww |grep 'process_ID' " you can have current process' status like S (Sleep), R (Running) , Z (zombie) etc..
[root@server]# cat /proc/2324/status
State: S (sleeping)
Uid: 0 0 0 0
Gid: 0 0 0 0
Also, by using top command, you can see if the running process is taking high cpu(probably, hung process)
then you can create an alert accordingly..
Actually I want something which can be done entirely through Splunk instead of logging to UNIX/Linux serves..
Hi @bsaujla131984 - Did @inventsekar 's answer below help provide a solution to your question? If yes, please click “Accept” below the best answer to resolve this post and upvote anything that was helpful. If no, please leave a comment with more feedback. Thanks.
Hi @mstjohn... I would need more info. The answer is given is mainly related to commands, however I would like to do it through Splunk...
It's interesting in the context of Splunk processes which can be hung, forwarders or indexers...
This is not related to Splunk process. It is related to application process in Linux/Unix servers.