zabbix-agent/AGENTS.md

39 lines
1.2 KiB
Markdown

# Agents
This role installs and configures Zabbix Agent 2 for host monitoring.
## Role Analysis
- **Type**: Monitoring agent role
- **OS Support**: Debian 12, SLES 15, Ubuntu 22.04 LTS, Ubuntu 24.04 LTS
- **Deployment Method**: Direct (package installation)
- **Scope**: Zabbix agent installation and configuration
## Key Variables
| Variable | Default | Description |
|----------|---------|-------------|
| `zabbix_agent_hostinterface` | `inventory_hostname` | Agent interface |
| `zabbix_agent_hostname` | `inventory_hostname` | Host name in Zabbix |
| `zabbix_agent_listen_port` | `10050` | Listen port |
| `zabbix_agent_psk_enable` | `true` | Enable PSK encryption |
| `zabbix_agent_psk_id` | (required if PSK enabled) | PSK identity |
| `zabbix_agent_psk` | (required if PSK enabled) | PSK secret |
| `zabbix_proxy_address` | `shared.proxy.monitor.itcreation.tools` | Zabbix proxy |
| `zabbix_proxy_port` | `10051` | Proxy port |
| `zabbix_user_sudo` | `true` | Enable sudo for agent |
## Tags
| Tag | Purpose |
|-----|---------|
| `zabbix_agent_config` | Manage agent configuration |
| `zabbix_agent_install` | Manage agent installation |
| `zabbix_agent_prereq` | Manage prerequisites |
## Testing
```bash
ansible-lint
molecule test
```