2N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
2N/A ! The contents of this file are subject to the terms of the 2N/A ! Common Development and Distribution License, Version 1.0 only 2N/A ! (the "License"). You may not use this file except in compliance 2N/A ! You can obtain a copy of the license at 2N/A ! See the License for the specific language governing permissions 2N/A ! and limitations under the License. 2N/A ! When distributing Covered Code, include this CDDL HEADER in each 2N/A ! file and include the License file at 2N/A ! add the following below this CDDL HEADER, with the fields enclosed 2N/A ! by brackets "[]" replaced with your own identifying information: 2N/A ! Portions Copyright [yyyy] [name of copyright owner] 2N/A ! Copyright 2008 Sun Microsystems, Inc. 2N/A <
defaultcall function="monitoring_setup"/>
2N/A <
function name="monitoring_setup">
2N/A <
block name="'setup'">
2N/A <
block name="'Block Create DS Topology'">
'Create DS topology as described in
config.py'
<
call function="'createTopology'">
{ 'initialiseInstance' : True }
<
call function="'checkRC'">
<!--- End Block Create DS Topology --> <
block name="'Block DS Process Active'">
'Start DS to run on port %s' % (DIRECTORY_INSTANCE_PORT)
<
call function="'StartDsWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME }
<
call function="'checkRC'">
<!--- Check that DS started --> <
call function="'isAlive'">
'noOfMilliSeconds' : 2000 }
<
call function="'ldapSearchWithScript'">
{ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'dsFilter' : 'objectclass=*' }
<!--- End Block DS Process Active -->