Novell PLATESPIN ORCHESTRATE 2.0.2 - DEVELOPMENT CLIENT REFERENCE 08-28-2009 Reference page 149

Development client reference
Table of Contents

Advertisement

1<event>
2
3
<context>
4
<vmhost />
5
</context>
6
7
<trigger>
8
<gt fact="vmhost.vm.count" value="0" />
9
<gt fact="vmhost.resource.loadaverage" value="2" />
10
</trigger>
11
12
<reset>
13
<lt fact="vmhost.resource.loadaverage" value=".5" />
14
</reset>
15
16</event>
Lines 3-5: Defines the context for the Event's rule evaluation.
Line 4: The context specifies for all VM Host objects, so the Event Service iterates over all VM
Hosts. On each VM Host, the
composed of one or more VM Hosts.
Lines 7-12: Defines the Trigger rule to determine if this Event is to fire notifications or not. If the
trigger rule does not pass, then no Event notifications occur.
Line 8: Consider only VM Hosts that have at least one VM instance running.
Line 9: Check the running average of the VM Host's load average if it exceeds a threshold value. In
this case if the average is greater than 2.
Lines 12-14: Defines the Reset rule to determine if a previously triggered VM Host can be reset and
triggered again.
Line 13: Only reset if the running average of the VM Host's load average drops below a threshold.
So when a VM Host passes the trigger rule, the VM Host does not pass the trigger rule again until
the reset rule (load average drops below threshold) passes.
See the
repository.event
for an Event with a rule that evaluates the
rule will be evaluated, so in this case, the Event context is
<trigger>
example (
<install dir>/examples/events/repository.event
freespace
fact on all repository objects.
)
Events 149

Advertisement

Table of Contents
loading

This manual is also suitable for:

Platespin orchestrate 2.0.2

Table of Contents