This document give the option to use DevTest features as a monitoring tool for DevTest services.
Customers have faced issues where some services stopped suddenly (Coordinator, Simulator, etc…) and would not be aware they were no longer running. They have had to log in to the server machines and manually check the services to see the issue. They would like to set up a monitoring tool or Test case where they can get the notification when the services are down.
All Supported DevTest releases and platforms..
There are a couple of Options within the DevTest tool that can be used.
Option1: Use the ServiceManger command-line tool. This utility lets you perform various actions on a Registry, Coordinator, Simulator, or VSE server. The ServiceManager is included under the DevTest_Home/bin folder.
Option 2: Using the REST Invoke API
Can also use the Request URL as : http://localhost:1505/api/Dcm/CoordinatorServers
The response will look like below:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><CoordinatorServerList xmlns="http://www.ca.com/lisa/invoke/v2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ca.com/lisa/invoke/v2.0 CoordinatorServerList.xsd" href="http://localhost:1505/api/Dcm/CoordinatorServers" type="application/vnd.ca.lisaInvoke.coordinatorServerList+xml"><CoordinatorServer name="Coordinator" href="http://localhost:1505/api/Dcm/CoordinatorServers/Coordinator" type="application/vnd.ca.lisaInvoke.coordinatorServer+xml"><ConsoleURL>http://localhost:1505</ConsoleURL><HostAddress>[HOSTNAME]</HostAddress><Status>OK: 0 Coordinators running. Memory used 174mb, allocated 242mb, max 683mb (25%) Our cpu usage 0%, system cpu used 11%</Status><TestList href="http://localhost:1505/api/Dcm/CoordinatorServers/Coordinator/Tests" type="application/vnd.ca.lisaInvoke.testList+xml"/><Link href="http://localhost:1505/api/Dcm/CoordinatorServers/Coordinator/actions" rel="actions"/><Link href="http://localhost:1505/api/Dcm/CoordinatorServers/Coordinator/actions/deployMar" rel="deployMar"/></CoordinatorServer></CoordinatorServerList>
3. Create a Test Case and add an HTTP step or a REST Step
Configure the URL as http://localhost:1505/api/Dcm/CoordinatorServers
Assert on the Step response for "Coordinator Running" or "Status OK" and if Assertion Fails then Go To- > an Email Step. This step can send email to a recipient when the step fails.
Do the same for Simulators / VSE etc...
http://localhost:1505/ should give you a response that shows that the Registry's Web console is up...
http://localhost:1507/devtest/ - would show that the Portal is up.
Create Monitor Mar info file and deploy them to the CVS monitor. Configure the Monitors so that it runs every 2 hours for a period of time.
Look under "REST Invoke API " and "Use the ServiceManager" sections of our documentations for reference.