Define the service to model

The service to model is a CRM application, and it is defined by the members (resources) on which it relies.

The CRM application relies on application and database hosts and processes, and on the network infrastructure that connects the service with its users. This tutorial creates a service model of the development deployment of the CRM application, not the production or quality assurance deployments.

The following procedure loads the fake devices into Resource Manager and sets up the tutorial environment.

  1. (Resource Manager 5.x only) Gain access to the Resource Manager CLI environment in a Zope container.
    1. Log in to the Control Center master host as a user with serviced CLI privileges.
    2. Start an interactive session in a Zope container.
      serviced service attach zope/0
    3. In the new session, switch user to zenoss.
      su - zenoss
  2. (Resource Manager 4.2.x only) Log in to the Resource Manager master host as zenoss.
  3. Create a soft link to the Service Impact scripts directory.
    Replace VERSION with the version number of the ZenPacks.zenoss.Impact ZenPack in your environment.
    ln -s ${ZENHOME}/ZenPacks/ZenPacks.zenoss.Impact-VERSION-py2.7.egg\
    /ZenPacks/zenoss/Impact/scripts/tutorial ${HOME}/impact_scripts
  4. Change directory to the Service Impact scripts directory.
    cd ${HOME}/impact_scripts
  5. Load fake devices and components into Resource Manager.
    zenbatchload --nomodel ./devices.txt
  6. In tutorial.sh, ensure that the values of the ZENOSS_USERNAME and ZENOSS_PASSWORD variables specify the user name and password of a Resource Manager user account, and if not, change them.
  7. Add execute permission to the tutorial.sh script.
    chmod +x ./tutorial.sh
  8. Set up the tutorial environment.
    ./tutorial.sh
  9. Log in to the Resource Manager browser interface as a user with ZenManager or Manager privileges.
  10. Click SERVICES.
    The Service Impact feature of Resource Manager adds a tab named SERVICES to the Resource Manager menu bar.
  11. In the tree view, open the CRM - Development organizer, and then open the Application and Compute organizers.

    The tree view displays the service members created by the tutorial.sh script, as shown in the following example.

    Service nodes in tree view