Fix SSH port to 2222; add HTTP validation server as alternative
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"name": "MQL Settings Monitor - HTTP Simple",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {
|
||||
"rule": {
|
||||
"interval": [
|
||||
{
|
||||
"field": "hours",
|
||||
"hoursInterval": 6
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "Every 6 Hours",
|
||||
"type": "n8n-nodes-base.scheduleTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [250, 300]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"requestMethod": "GET",
|
||||
"url": "http://127.0.0.1:8080/validate",
|
||||
"options": {
|
||||
"timeout": 30000
|
||||
}
|
||||
},
|
||||
"name": "HTTP Request - Validate",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 1,
|
||||
"position": [450, 300]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"conditions": {
|
||||
"string": [
|
||||
{
|
||||
"value1": "={{ $json.status }}",
|
||||
"operation": "notEqual",
|
||||
"value2": "ok"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "Has Issues?",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 1,
|
||||
"position": [650, 300]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"chatId": "={{ $env.TELEGRAM_CHAT_ID }}",
|
||||
"text": "=🚨 <b>MQL Settings Issues</b>\n\n<pre>{{ $json.stdout }}</pre>\n\n⏰ {{ new Date().toLocaleString() }}"
|
||||
},
|
||||
"name": "Telegram Alert",
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1,
|
||||
"position": [850, 200]
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"name": "No Issues",
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [850, 400]
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Every 6 Hours": {
|
||||
"main": [
|
||||
[{ "node": "HTTP Request - Validate", "type": "main", "index": 0 }]
|
||||
]
|
||||
},
|
||||
"HTTP Request - Validate": {
|
||||
"main": [
|
||||
[{ "node": "Has Issues?", "type": "main", "index": 0 }]
|
||||
]
|
||||
},
|
||||
"Has Issues?": {
|
||||
"main": [
|
||||
[{ "node": "Telegram Alert", "type": "main", "index": 0 }],
|
||||
[{ "node": "No Issues", "type": "main", "index": 0 }]
|
||||
]
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user