alert_template_create
Creates a custom alert template for LibreNMS notifications. Define the template body using Laravel Blade syntax, set title and recovery title, and optionally associate alert rules.
Instructions
Create a new alert template in LibreNMS.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | Alert template payload fields: - name (required): Template name - template (required): Template body (Laravel Blade syntax) - title (optional): Alert title template - title_rec (optional): Recovery title template - rules (optional): Array of alert rule IDs to associate with this template Example: {"name": "Custom Alert", "template": "{{ $alert->title }}\nSeverity: {{ $alert->severity }}", "title": "Alert: {{ $alert->title }}"} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||