alert_template_create
Create an alert template in LibreNMS by defining its name, body, title, and linked 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 | |||