Troubleshooting
This section covers common issues and solutions for the Script Control Center solution.
Connection Issues
"Test Connection" Fails in Aria Operations
- Invalid API Token: Ensure the
API_TOKENin the Agent's.envfile matches the Agent API Key in the MP Credentials. - Network Connectivity: Verify that the Cloud Proxy can reach the Agent VM on port
8080(or your customAPI_PORT). Usecurl -v http://<AGENT_IP>:8080/healthfrom the Cloud Proxy. - TLS Mismatch: If you enabled HTTPS on the Agent, ensure Skip TLS Validation is set to
Truein the MP settings if using a self-signed certificate. - Agent Not Running: Check the service status on the Agent VM:
sudo systemctl status script-execution-agent.service.
Script Execution Issues
Script Not Found
- Path Issue: Ensure the script exists in the
/opt/script-execution-agent/scriptsdirectory. - Relative Paths: In the MP configuration, the path should be relative to the scripts directory. If your script is at
/opt/script-execution-agent/scripts/subdir/test.sh, entersubdir/test.sh.
Permission Denied
- Executable Bit: Ensure the script is executable:
sudo chmod +x /opt/script-execution-agent/scripts/your_script.sh. - Ownership: The script must be readable by the
script-agentuser.
Empty Results / Metrics Not Appearing
- Output Format: Ensure your script output matches the selected Script Type (Nagios or Prometheus). Raw output without performance data (for Nagios) will not generate metrics.
- Timeout: If the script takes too long to execute, it might be killed by the Agent. Check the Agent logs.
Log Locations
Management Pack Logs (Aria Operations)
Logs for the adapter can be found on the Cloud Proxy at:
/storage/log/vcops/log/adapters/IndevopsScriptControlCenterAdapter/IndevopsScriptControlCenterAdapter_*.log
Agent Logs (Worker VM)
- Systemd Logs:
sudo journalctl -u script-execution-agent.service - Application Logs:
/opt/script-execution-agent/logs/scheduler.log(as defined in.env).
Common Error Statuses
| Status | Meaning | Solution |
|---|---|---|
worker_error | The Agent failed to start the worker process. | Check Agent logs for system resource issues or configuration errors. |
script_start_error | The script failed to start (e.g., missing interpreter). | Verify the shebang line (e.g., #!/bin/bash) and that the interpreter is installed. |
script_failed | The script executed but returned a non-zero exit code. | Check the error property on the Script Endpoint object for stderr output. |
to_cancel / cancelled | The task was cancelled (often because a new collection cycle started before the previous one finished). | Increase the Interval in the MP configuration or optimize script performance. |
