Add alternative validation methods: SSH, HTTP, and Python script with Telegram

This commit is contained in:
2026-03-30 15:38:05 -04:00
parent d0fca63be2
commit 61a96d490c
5 changed files with 376 additions and 0 deletions

89
n8n-workflow-http.json Normal file
View File

@@ -0,0 +1,89 @@
{
"name": "MQL Settings Monitor - HTTP Version",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "hours",
"hoursInterval": 6
}
]
}
},
"name": "Every 6 Hours",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1,
"position": [250, 300]
},
{
"parameters": {
"requestMethod": "POST",
"url": "http://localhost:8080/validate",
"options": {
"timeout": 30000
}
},
"name": "Call Validation API",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [450, 300]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{ $json.status }}",
"operation": "equal",
"value2": "error"
}
]
}
},
"name": "Has Issues?",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [650, 300]
},
{
"parameters": {
"chatId": "={{ $env.TELEGRAM_CHAT_ID }}",
"text": "=🚨 MQL Settings Alert:\n\n{{ $json.message }}\n\nIssues: {{ $json.issues }}\n\n⏰ {{ new Date().toISOString() }}"
},
"name": "Send Telegram",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1,
"position": [850, 200]
},
{
"parameters": {},
"name": "No Action",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [850, 400]
}
],
"connections": {
"Every 6 Hours": {
"main": [
[{ "node": "Call Validation API", "type": "main", "index": 0 }]
]
},
"Call Validation API": {
"main": [
[{ "node": "Has Issues?", "type": "main", "index": 0 }]
]
},
"Has Issues?": {
"main": [
[{ "node": "Send Telegram", "type": "main", "index": 0 }],
[{ "node": "No Action", "type": "main", "index": 0 }]
]
}
},
"settings": {},
"staticData": null,
"tags": []
}