Forum Discussion

prabindr's avatar
prabindr
Level 3
8 years ago

Application agent resource is not prob please assist.

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 c...
  • EdwardC's avatar
    EdwardC
    8 years ago

    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

     

     

  • prabindr's avatar
    prabindr
    8 years ago

    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.