Question & Answer
Question
Can you please advise on how we can monitor these processes (ASBNode and Logging Agent), if our syntax to do so is correct, and if in fact it is normal to see that at times for not both of these processes to have a Unix/Linux PID?
Cause
Current script may contain checks similar to:
{
echo "Check if ASB (Application Service BackBone) Agent and Logging Agent are running"
if [[ $(ps -ef|grep -i
/opt/IBM/InformationServer/ASBNode/apps/jre/bin/java|grep -vc grep)
-eq 2 ]]; then
echo " **ASBAgent and Logging Agent are running"
else
echo " !! FAILURE FOR ASBAgent and Logging Agent CHECK"
status_flag="1"
fi
}
Answer
When you check for the ASBAgent and Logging Agent by issuing ps -ef | grep -i agent, there will be two agents running for Information Server.
For example, if the agents are running, you should see output similar to the following:
root 1392838 1 0 Oct 10 - 169:48 /opt/IBM/InformationServer/ASBNode/bin/RunAgent -Xbootclasspath/a:conf -Djava.ext.dirs=apps/jre/lib/ext:lib/java -Djava.class.path=conf -Djava.security.auth.login.config=/opt/IBM/InformationServer/ASBNode/conf/auth.conf -Dcom.ibm.CORBA.ConfigURL=file:/opt/IBM/InformationServer/ASBNode/conf/sas.client.props -Djava.util.logging.manager=com.ibm.ws.bootstrap.WsLogManager -Djava.util.logging.configureByServer=true -class com/ascential/asb/agent/impl/AgentImpl
root 1302646 1 0 Oct 10 - 16:10 ./../apps/jre/bin/java -Djava.security.auth.login.config=./../conf/auth.conf -Dcom.ibm.CORBA.ConfigURL=file:./../conf/sas.client.props -Djava.util.logging.manager=com.ibm.ws.bootstrap.WsLogManager -Djava.util.logging.configureByServer=true -classpath ./../conf:./../lib/java/ACS_client.jar:./../lib/java/ACS_common.jar:./../lib/java/ASB_utils.jar:./../lib/java/ASB_util_client.jar:./../lib/java/WASClient.jar com.ascential.acs.logging.agent.LoggingAgentSocketImpl
In order to specifically identify the two agents for Information Server, issue the following commands:
ps -ef | grep -i AgentImpl
ps -ef | grep -i LoggingAgentSocketImpl
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21421309