Next Topic

Previous Topic

Book Contents

action.create

Creates a new action. Using 0 for <n_tests> on notifyAfter or repeat parameters sends an immediate notification and does not repeat the notification respectively. It is possible to get notifications on multiple states by specifying different state names separated by the | symbol for the notifyOn parameter. Assigning a method of none deletes that action item. Up to five methods (method1 through method5) can be defined for a single action.

action.create "actionName=<new_value>"
[, "method<1..5>=<none|email>"]
[, "notifyOn<1..5>=<ok|warning|critical|unknown>"]
[, "recipient<1..5>=<new_value>"]
[, "notifyAfter<1..5>=<n_tests>"]
[, "repeat<1..5>=<n_tests>"]
[, "description=<new_value>"]
[, "username=<value>"]

The username parameter can be used by an administrator to create actions for an end-user department.