cancel
Showing results for 
Search instead for 
Did you mean: 

Application agent resource is not prob please assist.

prabindr
Level 3

Hi,

We tried configuring application agent in the server but it's not getting prob please help.

 

-- RESOURCES NOT PROBED
-- Group Type Resource System

E CMOD-QA-DATASG Application CMOD_QA_APP cmodserv1
E CMOD-QA-DATASG Application CMOD_QA_APP cmodserv2

 

root@cmodserv1:/tmp/vcs$ hares -display CMOD_QA_APP
#Resource Attribute System Value
CMOD_QA_APP Group global CMOD-QA-DATASG
CMOD_QA_APP Type global Application
CMOD_QA_APP AutoStart global 1
CMOD_QA_APP Critical global 0
CMOD_QA_APP Enabled global 1
CMOD_QA_APP LastOnline global
CMOD_QA_APP MonitorOnly global 0
CMOD_QA_APP ResourceOwner global
CMOD_QA_APP TriggerEvent global 0
CMOD_QA_APP ArgListValues cmodserv1 User 1 odadmin StartProgram 1 /rephome/odadmin/scripts/odtsm_start StopProgram 1 /rephome/odadmin/scripts/odtsm_stop CleanProgram 1 /rephome/odadmin/scripts/odtsm_stop MonitorProgram 1 /opt/VRTSvcs/cmod_monit.ksh PidFiles 0 MonitorProcesses 0 EnvFile 1 "" UseSUDash 1 0 State 1 0 IState 1 0
CMOD_QA_APP ArgListValues cmodserv2 User 1 odadmin StartProgram 1 /rephome/odadmin/scripts/odtsm_start StopProgram 1 /rephome/odadmin/scripts/odtsm_stop CleanProgram 1 /rephome/odadmin/scripts/odtsm_stop MonitorProgram 1 /opt/VRTSvcs/cmod_monit.ksh PidFiles 0 MonitorProcesses 0 EnvFile 1 "" UseSUDash 1 0 State 1 0 IState 1 0
CMOD_QA_APP ConfidenceLevel cmodserv1 0
CMOD_QA_APP ConfidenceLevel cmodserv2 0
CMOD_QA_APP ConfidenceMsg cmodserv1
CMOD_QA_APP ConfidenceMsg cmodserv2
CMOD_QA_APP Flags cmodserv1 |STATE UNKNOWN|
CMOD_QA_APP Flags cmodserv2 |STATE UNKNOWN|
CMOD_QA_APP IState cmodserv1 not waiting
CMOD_QA_APP IState cmodserv2 not waiting
CMOD_QA_APP MonitorMethod cmodserv1 Traditional
CMOD_QA_APP MonitorMethod cmodserv2 Traditional
CMOD_QA_APP Probed cmodserv1 0
CMOD_QA_APP Probed cmodserv2 0
CMOD_QA_APP Start cmodserv1 0
CMOD_QA_APP Start cmodserv2 0
CMOD_QA_APP State cmodserv1 OFFLINE|STATE UNKNOWN
CMOD_QA_APP State cmodserv2 OFFLINE|STATE UNKNOWN
CMOD_QA_APP CleanProgram global /rephome/odadmin/scripts/odtsm_stop
CMOD_QA_APP ComputeStats global 0
CMOD_QA_APP EnvFile global
CMOD_QA_APP ManageFaults global
CMOD_QA_APP MonitorProcesses global
CMOD_QA_APP MonitorProgram global /opt/VRTSvcs/cmod_monit.ksh
CMOD_QA_APP PidFiles global
CMOD_QA_APP ResContainerInfo global Type Name Enabled
CMOD_QA_APP ResourceInfo global State Valid Msg TS
CMOD_QA_APP ResourceRecipients global
CMOD_QA_APP StartProgram global /rephome/odadmin/scripts/odtsm_start
CMOD_QA_APP StopProgram global /rephome/odadmin/scripts/odtsm_stop
CMOD_QA_APP TriggerPath global
CMOD_QA_APP TriggerResRestart global 0
CMOD_QA_APP TriggerResStateChange global 0
CMOD_QA_APP TriggersEnabled global
CMOD_QA_APP UseSUDash global 0
CMOD_QA_APP User global odadmin
CMOD_QA_APP Utilization global
CMOD_QA_APP MonitorTimeStats cmodserv1 Avg 0 TS
CMOD_QA_APP MonitorTimeStats cmodserv2 Avg 0 TS

Please help...

2 ACCEPTED SOLUTIONS

Accepted Solutions

EdwardC
Level 3
Employee

Prabindr,

The monitor script should report a value of 100 for offline and between 101-110 for online. Please update the exit codes in the script and perform another probe.

Example:

#!/bin/sh
#
# Application Monitoring Script
#
#
##################

 

pid=`ps -ef | egrep 'smbd' | grep -v grep | awk '{print $2}'`


if [ -n "$pid" ];then


exit 110 #Online

else


exit 100 #OffLine

fi

 

 

View solution in original post

Thanks for your response it's worked now the apllication is probed in the system.

As adviced by vcs support we enabled it in debug mode as bellow.

enable additional Debug level for Application Agent:
                     # haconf -makerw
                     # hatype -modify Application LogDbg -add DBG_1 DBG_2 DBG_3 DBG_4 DBG_5 DBG_AGDEBUG DBG_AGINFO DBG_AGTRACE

and bellow attribute is added in the agent.

hares -modify CMOD_QA_APP UseSUDash  1 - it will help to switch to the particular user before executing the start and stop script.

 

after the issue is fixed. now added your advice in script too.

View solution in original post

4 REPLIES 4

EdwardC
Level 3
Employee

 

We will  need to check the logs and monitor script to determine why it is not probing successfully.

 

cmodserv1 # hares -probe CMOD_QA_APP -sys cmodserv1 

cmodserv1# tail -20 /var/VRTSvcs/log/engine_A.log

cmodserv1#tail -20 /var/VRTSvcs/log/Application_A.log

cmodserv1#/opt/VRTSvcs/cmod_monit.ksh; echo $?

 

Hi EdwardC

Thanks a lot for your response, I have attached the output with is requested by you please check the attachment.

 

Thanks,

Rufus.

EdwardC
Level 3
Employee

Prabindr,

The monitor script should report a value of 100 for offline and between 101-110 for online. Please update the exit codes in the script and perform another probe.

Example:

#!/bin/sh
#
# Application Monitoring Script
#
#
##################

 

pid=`ps -ef | egrep 'smbd' | grep -v grep | awk '{print $2}'`


if [ -n "$pid" ];then


exit 110 #Online

else


exit 100 #OffLine

fi

 

 

Thanks for your response it's worked now the apllication is probed in the system.

As adviced by vcs support we enabled it in debug mode as bellow.

enable additional Debug level for Application Agent:
                     # haconf -makerw
                     # hatype -modify Application LogDbg -add DBG_1 DBG_2 DBG_3 DBG_4 DBG_5 DBG_AGDEBUG DBG_AGINFO DBG_AGTRACE

and bellow attribute is added in the agent.

hares -modify CMOD_QA_APP UseSUDash  1 - it will help to switch to the particular user before executing the start and stop script.

 

after the issue is fixed. now added your advice in script too.