[
https://issues.apache.org/jira/browse/CHUKWA-541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12929464#action_12929464
]
Prachi Bedekar commented on CHUKWA-541:
---------------------------------------
For a particular time the collector is running or not is achieved with the help
of
ps -ef | grep collector | wc -l
if its value is less than 1 then no collecor is running. At that time the
output will be
had...@ps6007:/usr/local/hadoop_old/hadoop_old/bin$ ps -ef | grep collecor
hadoop 25815 13732 0 11:06 pts/0 00:00:00 grep collecor
But if collector is running then output will be
had...@ps6007:/usr/local/hadoop_old/hadoop_old/bin$ ps -ef | grep collector
postgres 2595 2589 0 Sep29 ? 00:00:38 postgres: stats collector process
hadoop 26741 13732 0 11:18 pts/0 00:00:00 grep collector
from this we will come to know the status of the collector.
Thank you all for putting effort to solve this issue.
> How to get the current status of collector
> ------------------------------------------
>
> Key: CHUKWA-541
> URL: https://issues.apache.org/jira/browse/CHUKWA-541
> Project: Chukwa
> Issue Type: Task
> Components: Data Processors
> Affects Versions: 0.4.0
> Environment: Linux operating syatem
> Reporter: Prachi Bedekar
> Fix For: 0.4.0
>
>
> Hi,
> I want to write the shell script for tracking the collector status after
> every one min. And if collector is down at some moment, I want to restart it.
> I have done rest of the thing related to time n all, but I am not getting how
> to track the current status of the collector. So that I can take the
> necessary action.
> Please reply as early as you can.
> Thanks in advance.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.