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

98
n8n-workflow-ssh.json Normal file
View File

@@ -0,0 +1,98 @@
{
"name": "MQL Settings Monitor - SSH Version",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "hours",
"hoursInterval": 6
}
]
}
},
"name": "Every 6 Hours",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1,
"position": [250, 300]
},
{
"parameters": {
"command": "/home/garfield/mql-trading-bots/scripts/validate-settings.sh",
"cwd": "/home/garfield/mql-trading-bots"
},
"name": "Run Validation Script",
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [450, 300],
"credentials": {
"sshPassword": {
"id": "local-ssh",
"name": "Local SSH"
}
}
},
{
"parameters": {
"conditions": {
"number": [
{
"value1": "={{ $json.code }}",
"operation": "notEqual",
"value2": 0
}
]
}
},
"name": "Issues Found?",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [650, 300]
},
{
"parameters": {
"chatId": "={{ $env.TELEGRAM_CHAT_ID }}",
"text": "=🚨 MQL Settings Issues:\n\n{{ $json.stdout }}\n\n⏰ {{ new Date().toISOString() }}"
},
"name": "Send Telegram Alert",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1,
"position": [850, 200],
"credentials": {
"telegramApi": {
"id": "telegram-bot",
"name": "Telegram Bot"
}
}
},
{
"parameters": {},
"name": "No Issues",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [850, 400]
}
],
"connections": {
"Every 6 Hours": {
"main": [
[{ "node": "Run Validation Script", "type": "main", "index": 0 }]
]
},
"Run Validation Script": {
"main": [
[{ "node": "Issues Found?", "type": "main", "index": 0 }]
]
},
"Issues Found?": {
"main": [
[{ "node": "Send Telegram Alert", "type": "main", "index": 0 }],
[{ "node": "No Issues", "type": "main", "index": 0 }]
]
}
},
"settings": {},
"staticData": null,
"tags": []
}