![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
1. Go to Action screen.Figure 15 Action Editing Screen
In the Message field, type the alert text that you want to appear in the TIBCO Hawk WebConsole Alerts portlet. In the Execute field, type the entire command line to send to the operating system of the agent machine. In the Notification field, type the notification text that you want to appear in the TIBCO Hawk WebConsole Alerts portlet. Specify a message recipient as recipient@domain.com. Specify a subject string, an SMTP mail server for sending the message, and message text.
3.
− To insert an internal variable, click Insert Variable and select Internal Variable from drop-down menu.Internal variables available are:
•
− To insert an external variable, click Insert Variable and select External Variable from the menu. ${External.<var name>} is inserted in the active string field. Replace <var name> in the syntax string with the name of the external variable defined in the properties file.External variables are obtained from the variable file specified in the -variable option for the rulebase engine (suboption of -M RuleBaseEngine) when the agent is started.
− To insert a local variable in a string argument, select a variable name from the menu.Variable syntax is added to the string field at the cursor location. The syntax does not require modification. You can also manually type the syntax ${<return-field-name>} in the string field for an action, where return-field-name is the label for a value returned by the method. The microagent method that returns this field must be the data source for the current rule.
5. Select the name of an existing schedule from the Schedule dropdown list to apply to this test. This is an optional field. By default, the test is always active. For more information, see Working with Schedules and Period Groups.
− Save But do not Deploy : To save until user logs out.
− Save and Deploy: To save it and deploy it to the agent.
1. Click Show Advanced Options in the Action screen. The Advanced Action options are displayed:
2. To specify how actions are performed, click the Maximum, Once until the alert message changes, Once Only, or Always radio buttons.
− For Maximum, specify the maximum number of times the action can be performed, no matter how long the associated test continues to remain true. If the test becomes false, the counter is reset. Specify the number of seconds to wait between actions as long as the test is true. The related action can only be triggered at a test evaluation, so the actual interval between actions may be longer than the specified interval.
− With Once until the alert message changes, the first time this action is triggered by a test, the action is performed. On subsequent true evaluations the action is performed only until there is a change in the alert message.Substituting variables in alert messages overrules this feature. For more information, see How Variable Substitution Affects Actions.
− With Once Only, the first time this action is triggered by a test, the action is performed. On subsequent true evaluations the action is not performed. The action is not performed again until the test becomes false and then true again. This is the default behavior for all actions.
− With Always, the action is performed each time the associated test is evaluated as true, even if the test was true in the last evaluation.
a. To create a new property, click the Create New Property button in the Properties area. A new table row appears.
b. To load a previously-defined template, click Template and select Load, then select the file to be loaded.
c. If you want to save your new action properties as a template, click Template and select Save, then specify where the file should be created and enter a file name. The template is saved as an XML file, and the extension .xml is added to the filename if not specified. The template can be loaded later.
d. You can also configure a saved template as the default template by clicking Set Default from the Template menu and selecting the appropriate template.
− Save But Do Not Deploy : To save in the browser until user logs out.
− Save and Deploy: To save it and deploy it to the agent or repository.A clear action is an action that takes place only when a test makes the transition from true to false. After the test becomes true, whenever it becomes false again one or more actions are performed. Clear actions behave like regular actions but do not support advanced options except schedules, and cannot generate alerts. They are useful for sending notifications or all-clear messages.A clear action can reference the same data source variables as the associated test. For more information, see Referencing Data Source Variables. For instructions on using this screen, see Creating Actions.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |