Prerequisites
Before installing the Linux agent, ensure you have:- Root or sudo privileges
- Network connectivity to the UTMStack server
- UTMStack server hostname or IP address
- Agent registration key from your UTMStack deployment
Supported Distributions
The agent supports major Linux distributions including:- Ubuntu/Debian
- RHEL/CentOS/Rocky Linux
- Amazon Linux
- Other systemd-based distributions
Installation
Download the Agent
Download the Linux agent binary (
utmstack_agent) from your UTMStack server or deployment package.Run the Installation Command
Execute the installer with root privileges:The installer will prompt you for:
- UTMStack server address
- Agent registration key
Installation Process
The agent will automatically:
- Check server connection and verify port accessibility
- Download required dependencies from the server
- Register the agent with the UTMStack server
- Configure collectors and log retention settings
- Install the systemd service
Service Management
Start the Service
Stop the Service
Restart the Service
Check Service Status
Enable Auto-Start on Boot
Common Tasks
Enable Syslog Integration
Enable syslog over UDP:Load Custom TLS Certificates
For production environments, load your own TLS certificates:Check TLS Certificate Status
Change Integration Port
Change the syslog TCP port to 5140:Change Log Retention
Set log retention to 100 MB:Clean Old Logs
Manually clean old logs based on retention policy:Uninstalling the Agent
To completely remove the agent:- Stop the service
- Uninstall collectors
- Delete the agent from the server
- Remove the systemd service
- Clean up configuration files
Troubleshooting
Installation Fails
If installation fails, check:-
Network connectivity: Ensure the server is reachable
-
Firewall rules: Verify required ports are open
- Permissions: Ensure you’re running with sudo or as root
Service Won’t Start
Check the service logs:/opt/utmstack/agent/logs/service.log
Agent Not Appearing in Console
Verify the agent is registered:- Check network connectivity to the server
- Ensure the correct server address and key were used during installation
- Review the agent log files
Permission Denied Errors
Ensure you’re running all agent commands withsudo or as the root user.
Log Files
Agent logs are typically stored at:File Locations
- Agent binary:
/opt/utmstack/agent/utmstack_agent - Configuration:
/opt/utmstack/agent/config.yml - Logs:
/opt/utmstack/agent/logs/ - Database:
/opt/utmstack/agent/data/
Next Steps
Agent Commands
Explore all available CLI commands