Designing and Managing Behavior Models - Using Other Data Sources - Another NerveCenter - An Example Trigger Function -
Creating a Trap Mask      HP OpenView IT/Operations

An Example Trigger Function

This section explains how you might use an Inform trap's variable bindings in a trigger function. Consider this example: A poll (HighLoad) at a remote site discovers high traffic on an interface and fires the trigger highLoad. This trigger prompts a transition from the medium state to the high state in the alarm ifLoad. (All the objects referred to are actually shipped with NerveCenter.) As shipped, the alarm ifLoad does not perform any actions when the transition from medium to high occurs, but let's say you've added an Inform action that uses the specific number 100005.

The ifLoad alarm (minus the Inform action) also exists at your central site. Therefore, when the Inform trap arrives, you want a trap mask to fire a trigger identical to the one fired at the remote site. In this way, the ifLoad alarm at your central site will stay in sync with the alarm at your remote site.

Here's the trigger function you would have to use in the trap mask at your central site:


   FireTrigger("highLoad", VbValue(3).'.'.VbValue(4), VbValue(2));

If you recall, the arguments to FireTrigger() are:

The second and third arguments are being retrieved from the list of variable bindings in the Inform trap. For a complete list of the variable bindings included in an Inform trap, see the section Variable Bindings for NerveCenter Informs.


Creating a Trap Mask HP OpenView IT/Operations
29 July 2003