Clarity

  • 1.  Clarity service monitor and notify

    Posted Mar 22, 2016 10:55 AM

    Hi,

    We are using the Clarity 13.2. The Clarity application Tomcat servers are hosted on the Linux environment and looking for solutions of below challenges that we are facing currently.

    1. As a admin point of view, we(Admin) would like to get notification from the Clarity server services whenever there is a failure.  Is that possible ? do we have any default built in feature that can trigger this monitoring activity?

    2. When there is a break in communication of these clarity services, we have to do manual restart, for the application to be work.

    Is there a way to automatically re-initiate the clarity service connections instead of doing it manually.

    For example, Keep checking the services at a regular interval, and in-case of failure then automatically the services will restart by itself.

    3. Also for default scheduled jobs(Time slicing, Data mart, update hierarchy data, LDAP Sync), is there a way to get it notified on success/failure...



  • 2.  Re: Clarity service monitor and notify

    Broadcom Employee
    Posted Mar 22, 2016 12:10 PM

    Hi Elango,

     

    There are couple of ways to do

     

    1. Have monitoring tools to get notifications.

    2. Write a script to start the services automatically when it goes down.

     

    Because CA PPM cannot send out notification once its down itself, so you need to have some third party monitoring tools

     

    Regards

    Suman Pramanik



  • 3.  Re: Clarity service monitor and notify

    Posted Mar 23, 2016 10:21 AM

    HI Suman,

     

    Thanks for reply!.

     

    1. We already have one monitoring tool and will need to check the possibility of this.

    2. Can you please share the custom script if you have any to restart the services automatically when it goes down..Our CA Clarity application servers(Tomcat) are hosted on linux enviromment.

     

    Also had one more clarification.There are some scheduled jobs which runs on daily basis in Clarity. Is there a way to receive notification on success/failure.?

     

    your help in this much appreciated!



  • 4.  Re: Clarity service monitor and notify

    Posted Mar 23, 2016 11:01 AM

    Hi Elango,

     

    On job properties page there is a section called "Notify" here you can set resources/groups which you want to notify on completion/failure. See below screen shot for your reference.

    Job Properties.jpg



  • 5.  Re: Clarity service monitor and notify

    Broadcom Employee
    Posted Mar 23, 2016 11:48 AM

    Hi Elango,

     

    I don't have the script handy sorry

     

    Regards

    Suman Pramanik



  • 6.  Re: Clarity service monitor and notify

    Posted Mar 23, 2016 02:34 PM

    The service start utility is smart enough to know if a given service is already running.

     

     

    So you could just run a shell script every X mins to start the service.  If you redirected the output into a temp file then check the temp file for "was started" you could send an email to the admins about the restart.

     

    V/r,

    Gene



  • 7.  Re: Clarity service monitor and notify

    Posted Mar 24, 2016 11:31 AM

    Hi,

    Thanks for all your prompt response.

    1. For server service alerts - that could be done with our monitoring tool.

    2. Notification of jobs on Success/Failure  -  Is it the only way to monitor this ? because some jobs are scheduled on * * * * * (All minutes,  All hours, All days, all months). In that case how are we going to handle this.

    3. Custom script for auto restarting the server services - as i'm not aware of that "service start utility", can you please provide more details about that?



  • 8.  Re: Clarity service monitor and notify

    Posted Mar 24, 2016 03:41 PM

    Look in the bin directory under the Clarity home directory.  Should look like this set of directories.

     

     

    For linux, it would be the service file.

     

    There is a help option -help.  So on linux it should be ./service -help

     

     

    V/r,

    Gene



  • 9.  Re: Clarity service monitor and notify

    Posted Mar 25, 2016 10:35 AM

    Hi Elango,

     

    May be this will help you to check via script -cronjob (linux machine)

     

    (niku status all | grep -i 'not running') >  nstatus.txt

    var2=`wc -l nstatus.txt | cut -d ' ' -f1`

    var3=`hostname`

    if [ "$var2" == 0 ]; then

            rm –rf nstatus.txt

    else

           var=`cat nstatus.txt | awk -F[ '{print $2}' | awk -F] '{print $1} | xargs'`

           echo -e  "To start above $var2 services please use below command : \n service start $var">> nstatus.txt

            mutt -s "Check Clarity services on Hostname:$var3" Emailid< nstatus.txt

            rm-rf  nstatus.txt

    fi

    Regards,

    Udaya K



  • 10.  Re: Clarity service monitor and notify

    Posted Mar 24, 2016 04:07 PM

    BMC Software, IBM (Tivoli), CA, and many more have excellent monitoring tools. I have been trying for years to get any of the big 3 vendors to work with me to create a CA PPM monitoring solution.

     

    It should not take much effort to create the appropriate monitoring and recovery actions in any of the major tools.

     

    Mike