The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "nola \u2014 librenms alert relay",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "nola-librenms-alert",
"responseMode": "onReceived",
"responseData": "firstEntryJson",
"options": {}
},
"id": "webhook-librenms",
"name": "LibreNMS Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
220,
300
]
},
{
"parameters": {
"jsCode": "const body = $input.first().json.body || $input.first().json;\n\n// LibreNMS alert payload fields\nconst title = body.title || body.rule || 'Alert';\nconst host = body.hostname || body.host || 'unknown host';\nconst severity = body.severity || 'unknown';\nconst message = body.message || body.body || '';\nconst state = body.state; // 1=alert, 0=recovery\n\nconst emoji = state === 0 ? '\u2705' : (severity === 'critical' ? '\ud83d\udd34' : '\ud83d\udfe1');\nconst stateStr = state === 0 ? 'RESOLVED' : 'FIRING';\n\nconst discord_message = [\n `${emoji} **LibreNMS ${stateStr}** \u2014 ${title}`,\n `**Host:** ${host}`,\n `**Severity:** ${severity}`,\n message ? `**Detail:** ${message}` : null\n].filter(Boolean).join('\\n');\n\nreturn [{ json: { discord_message, severity, state } }];"
},
"id": "format-alert",
"name": "Format Alert",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
440,
300
]
},
{
"parameters": {
"method": "POST",
"url": "={{ $env.DISCORD_WEBHOOK_URL }}",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
},
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "content",
"value": "={{ $json.discord_message }}"
}
]
},
"options": {}
},
"id": "post-discord",
"name": "Post to Discord",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4,
"position": [
660,
300
]
}
],
"connections": {
"LibreNMS Webhook": {
"main": [
[
{
"node": "Format Alert",
"type": "main",
"index": 0
}
]
]
},
"Format Alert": {
"main": [
[
{
"node": "Post to Discord",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"tags": [
"nola",
"alert"
]
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
nola — librenms alert relay. Uses httpRequest. Webhook trigger; 3 nodes.
Source: https://github.com/iamgadgetman/nola/blob/b17506e0666ff53e431787eb563458b6afbea381/workflows/librenms-alert.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This n8n template provides enterprise-level version control for your workflows using GitHub integration. Stop losing hours to broken workflows and manual exports – get proper commit history, visual di
This flow creates dummy files for every item added in your *Arrs (Radarr/Sonarr) with the tag .
This workflow acts as a central API gateway for all technical indicator agents in the Binance Spot Market Quant AI system. It listens for incoming webhook requests and dynamically routes them to the c
Sign PDF documents with legally-compliant digital signatures using X.509 certificates. Supports multiple PAdES signature levels (B, T, LT, LTA) with optional visible stamps.
📡 This workflow serves as the central Alpha Vantage API fetcher for Tesla trading indicators, delivering cleaned 20-point JSON outputs for three timeframes: , , and . It is required by the following a