Workflows allow you to automate actions on your devices based on conditions, measurements, or events.
A workflow is a graphical scenario composed of connected blocks.
Workflows can be configured:
They can be used to:
Workflows can be executed manually or triggered by a task (scheduled or on demand).
A workflow executes as a sequence of steps.
Each block receives data, processes it, and passes the result to the next block.
Depending on the results, the workflow can:
This block retrieves the value of a metric reported by a driver.
Examples:
The retrieved value can then be used by the next block.
This block evaluates a measurement that was previously retrieved.
For example, it can verify whether:
Depending on the result, the workflow can follow different paths.
This block executes a command available in one of the device drivers.
Examples:
The available commands depend on the selected driver.
This block waits for a new value to be reported by a metric.
It is useful when the workflow must wait for a change in the device state before continuing.
Entry point of the workflow.
Every workflow must start with this block.
Pauses workflow execution for a specified period of time.
Examples:
Displays the data received or generated by the various workflow blocks.
This block is particularly useful when designing and troubleshooting workflows.
It can display:
The Error Handler block monitors errors returned by the different blocks within a workflow.
When a block generates an error in its payload (command execution failure, unreachable device, invalid data, communication error, etc.), the Error Handler detects the error and immediately stops the workflow execution.
This block is particularly useful for:
This block sends an email from the workflow.
You can:
This feature is particularly useful for automatically informing operations teams.
In the example below, the goal is to automatically reboot a Cisco device when no presence is detected in the room.
The workflow operates as follows:
If the returned value indicates that someone is present in the room, no action is executed and the reboot does not occur.
This type of workflow makes it possible to automate many operational tasks while reducing manual intervention.
Like presets, workflows can be executed:
Associating a workflow with a task allows it to be executed automatically at specific times.
This feature is particularly useful for:
To make a workflow executable by a task, simply associate it with one or more tasks during its configuration.
To create a task:
You can then configure:
A single task can trigger:
This makes it possible to centrally schedule identical actions on a large scale.
When executing a task, Zebrix Control automatically uses the time zone configured on the site associated with the device.
It is also possible to use Coordinated Universal Time (UTC).
A task named Nightly Reboot is scheduled:
This task is associated with several workflows across different devices.
At the scheduled time, Zebrix Control automatically executes all associated workflows without any manual intervention.