Usage

Version:

Once the Management Pack is deployed and configured, you can start using it to execute scripts and monitor results.

Preparing Scripts

Scripts must be placed on the Agent worker node in the /opt/script-execution-agent/scripts directory.

Supported Output Formats

The Management Pack currently supports two specific output formats for metric parsing:

1. Nagios Format

Used for standard Nagios/Icinga plugins. The output should follow this structure:

STATUS_MESSAGE | metric_name=value;warning;critical;min;max

Example:

OK - Disk usage is 45% | disk_usage=45%;80;90;0;100

2. Prometheus Format

Used for scripts that export data in Prometheus exposition format. Example:

http_requests_total{method="post",code="200"} 1027
http_requests_total{method="post",code="400"} 3

Viewing Data in Aria Operations

Object Hierarchy

Data is organized into the following hierarchy in the Environment view:

  1. VCF Script Control Center (Adapter Instance): The root node.
  2. Custom Script Execution: Represents your configured script definition.
  3. Script Endpoint: Created for each target defined in the configuration (e.g., 10.0.0.1, web-server-01).

The properties and metrics the specification requires are mapped as follows.

Custom Script Execution

Data nameTypeDescription
statusMetricOverall execution status of the task on the agent: 0 success, 1 warning, 2 critical, 3 unknown
Script PathPropertyPath of the script in the scripts directory of the agent
ArgumentsPropertyArguments passed to the script, with the dynamic placeholders already resolved
EndpointsPropertyEndpoints the definition targets
Output typePropertyParser used for the output: Nagios, Prometheus or Object Model
IntervalPropertyExecution interval in the collection cycle

Script Endpoint

Data nameTypeDescription
statusMetricStatus for this endpoint, in the same coding as the definition
metric_valueMetricThe numeric value parsed from the script
Execution TimeMetricDuration of the execution, milliseconds
Exit CodePropertyExit code returned by the script
errorPropertystderr output when the script fails
Script resultsGroupEvery numeric metric parsed from the script output

Metrics and Units

The Management Pack automatically maps script outputs to Aria Operations metrics. If the script provides units (e.g., %, ms, B), the MP attempts to map them to native Aria units.

All parsed metrics from the script's performance data are stored under the Script results instanced group for each Script Endpoint.

Dashboards

Shipped dashboards

All dashboards are shipped inside the Management Pack, placed in a dedicated folder named after the product and installed automatically with the adapter content.

  • Script Execution Overview — the overview dashboard of the script area: every script definition and every endpoint with its status, execution time, collected metrics and the active alerts, filterable by script definition. Selecting an endpoint opens its detail view with its properties, metrics and active alerts.
  • Script Endpoint Health — the availability of every endpoint and the state of the agent that serves it, with the number of failed executions in the selected period and the active alerts, filterable by endpoint and by agent.

Both dashboards ship with the pack, so the requirement for an overview dashboard and a drill-down to a single object is met without additional configuration.

Creating additional dashboards

Custom dashboards can be added to visualise script data:

  1. Use the Scoreboard widget to show the latest status of multiple endpoints.
  2. Use the Trend or Line Chart widgets to track metric changes over time.
  3. Filter resources by Resource Kind: Script Endpoint.

Alerts

The Management Pack ships pre-defined alerts built on the collected metrics, and script results are treated as standard metrics, so additional Symptom Definitions and Alert Definitions can be created by the operator.

Shipped alerts

  • Script Execution Failed — the script ended with a non-zero exit code or the agent reported an execution error
  • Script Status Warning — the parsed status is WARNING
  • Script Status Critical — the parsed status is CRITICAL
  • Script Status Unknown — the parsed status is UNKNOWN
  • Script Timeout — the execution exceeded the configured timeout
  • Endpoint Unreachable — the Script Endpoint cannot be reached from the agent
  • Agent Unavailable — the Script Execution Agent stops responding to the API or the collection cycle fails
  • Lost Communication — the adapter cannot reach the agent at all, so the whole collection cycle fails and no metric is updated
  • High Execution Time — the execution time of a script on an endpoint is above the configured threshold

The shipped alerts cover the categories the specification requires: a script failure, a warning, critical or unknown status, a timeout, an endpoint that can't be reached, an agent that is unavailable, a lost communication and a performance threshold. Every threshold is configurable, and the operator can create additional symptoms and alerts on any collected metric.

Creating additional alerts

  • Example: Create a symptom when Script Endpoint > status is not equal to OK (or 0 for Nagios).
  • Example: Create a threshold alert when a custom metric (e.g., database_latency) exceeds a specific value.

Reports

The Management Pack ships the following report definitions. They can be generated on demand or scheduled from VCF Operations.

Script Execution Report

Every script definition and every endpoint with its last status, the execution time, the collected metrics and the active alerts. The report is grouped by script definition, so an operator can see at a glance which script fails on which endpoint.

Script Endpoint Health Report

Availability of every endpoint for the selected period: the number of executions, the number of failures with their cause, the highest execution time, and the active alerts at the end of the period. The report is grouped by endpoint and by agent.

Both reports are built from the objects and metrics collected by the adapter.

Managing scripts through the API

Every script definition, every target endpoint and every execution result is managed through a documented REST API exposed by the Script Execution Agent. The Management Pack uses the same API for collection, so anything the adapter does can be automated the same way: creating and updating a script definition, listing the configured endpoints, triggering an execution and reading the result.

The API is authenticated with the API token configured on the agent and served over HTTPS only. The table lists every operation.

OperationMethod and path
Execute a script for its configured endpointsPOST /api/v1/execute
Read the status of the running tasksGET /api/v1/scripts/status
Read an execution resultGET /api/v1/scripts/result
Read an execution result, API v2GET /api/v2/scripts/result
List the script definitionsGET /api/v1/scripts
Create a script definitionPOST /api/v1/scripts
Update a script definitionPUT /api/v1/scripts/{name}
Remove a script definitionDELETE /api/v1/scripts/{name}

MCP integration

The same operations are exposed to an MCP client, so an automation agent manages scripts without going through the VCF Operations interface. The integration is provided by VCF MCPopen in new window, the set of MCP servers included in the VCF Extensions subscription and run in your own environment.

VCF MCP connects an assistant or an agent to the platform; the Script Execution Agent API is reached through it, so no additional component has to be deployed on the agent and no second MCP server is maintained. The tool set maps one to one onto the operations in the table above — execute, read status, read result, list, create, update and remove — and each tool uses the API token configured on the agent.

Authentication modes, access rules and audit logging of the MCP servers are described in VCF MCP.

Dynamic Placeholders

When configuring the Script Arguments, use ${TARGET_HOST}. The Management Pack will automatically replace this placeholder with the actual endpoint address for each execution.

Example Configuration:

  • Script Path: check_http.sh
  • Script Arguments: -U https://${TARGET_HOST}/health
  • Target Endpoints: app01.prod;app02.prod

This will result in two separate executions:

  1. check_http.sh -U https://app01.prod/health
  2. check_http.sh -U https://app02.prod/health