
Working with vFoglight Rules and Registry 315
Working with Rules
2
Open the rule for editing and navigate to the Action tab of the severity level for
which you want to define the actions.
3
Add an entering ScriptAction and edit its parameters.
a
If your script has one or more arguments, use the Argument 1-10
parameters to specify the arguments’ value.
b
If you want the script to run against a particular topology object, use the
Script object id parameter to specify the object’s ID.
c
Use the Script name parameter to specify the script name.
4
Return to the Action tab.
5
Add an entering Remote Command Action that is to be executed on a monitored
host and edit its parameters.
a
Use the HostName parameter to specify the name of the monitored host
machine.
b
Use the RemoteWorkingDir parameter to specify the absolute path on the
remote host in which you want the command to run.
c
Use the COMMAND_LINE parameter to specify the command that you want to
run remotely along with any options or arguments if applicable.
6
Return to the Action tab and save your changes to the rule.
When the rule enters the severity state that includes newly-defined actions it
executes those actions as specified.
Example: Creating Rules with Different Topology Types
In this example, you will create two rules, Processor Load and Host Processor Load. For
the purpose of this example, the Processor Load rule is scoped to the
Processor
topology type that monitors the utilization of all
Processor objects instances in the
topology model, and fires when the utilization for a processor reaches 90% in a 24-hour
period. For instructions on how to create this rule, see “To scope a rule to the Processor
type:” on page 316.
Unlike the Processor Load rule that monitors all instances of the Processor type. the
Host Processor Load rule is scoped to the
Host type that monitors all of the Processor
instances for a particular
Host object, and fires if all of the Processor objects for the
scoped
Host object reach the utilization of 90%. For instructions on how to create this
rule, see “To scope a rule to the Host type:” on page 322.
Kommentare zu diesen Handbüchern