It's all about the answers!

Ask a question

Jazz CLM application level monitoring using repotools


6
1
Benjamin Chodroff (8985231) | asked May 24 '12, 4:09 a.m.
If you are looking for a quick and dirty way to monitor whether RTC, RQM, JTS (RRC) are up or down, this Windows batch script I wrote utilizing the repotools -isServerRunning command might help you. Because repotools can be ran remotely from the application server, it allows you to detect an application outage even if the whole server or network crashes.

This script automatically sends an email notification using this Windows command line utility available for download here:
http://www.muquit.com/muquit/software/mailsend/mailsend.html

I added this script to the Windows task scheduler to run every 10 minutes.

To get this working on Windows, install an express setup of CLM onto the box you wish to conduct monitoring from, copy your server(s) <installdirectory>\server\conf directories over to the monitoring box, and create a repomonitor.bat script with the following code. Place the mailsend.exe file in the same directory as the script.


@ECHO OFF
set cust=CustomerEnvironment
set notify=support@yourcompany.com
set test.JTS=jts
set test.CCM=ccm
set test.RQM=qm

FOR /F "tokens=2* delims=.=" %%a IN ('set test.') DO (
echo *
echo ****************************
echo Checking %%a Server
echo ****************************
echo *

call repotools-%%b.bat -isServerRunning
IF NOT ERRORLEVEL 1 (
echo *
echo ****************************
echo %%a failure on %DATE%
echo ****************************
echo *

call mailsend.exe -f %cust%-repomonitor-no-reply@yourcompany.com -smtp mailout.ntsource.com -sub "%cust% Repomonitor - %%a Failure on %DATE% at %TIME%" -attach "repotools-%%b_isServerRunning.log" -t %notify%
) ELSE (
echo *
echo ****************************
echo %%a is running
echo ****************************
echo *
)
)

rem PAUSE

Comments
Bo Chulindra commented Sep 26 '12, 7:37 p.m.
JAZZ DEVELOPER

This seems pretty useful. You may want to try reformatting this into a question and answer and have the answer accepted.

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.