Repository navigation
Expand file tree
/
Copy pathworkflowsUtility: Server Down - Restart (node5).json
More file actions
114 lines (114 loc) · 2.34 KB
/
Copy pathworkflowsUtility: Server Down - Restart (node5).json
File metadata and controls
114 lines (114 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"active": false,
"connections": {
"Restart Stack": {
"main": [
[
{
"node": "SSH",
"type": "main",
"index": 0
}
]
]
},
"SSH": {
"main": [
[
{
"node": "Send Email",
"type": "main",
"index": 0
}
]
]
},
"Error Trigger": {
"main": [
[
{
"node": "Restart Stack",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2023-04-10T06:17:43.007Z",
"id": "114",
"name": "Utility: Server Down - Restart (node5)",
"nodes": [
{
"parameters": {},
"id": "972fb4f2-eaae-4b93-b383-e66cb44d7ff8",
"name": "Error Trigger",
"type": "n8n-nodes-base.errorTrigger",
"typeVersion": 1,
"position": [
820,
400
]
},
{
"parameters": {},
"id": "dabb373e-3eba-4a44-88cb-ff96a409e4b4",
"name": "Restart Stack",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
960,
400
]
},
{
"parameters": {
"command": "systemctl restart postgresql ; systemctl restart nginx ; systemctl restart odoo"
},
"id": "55d6e608-f3ac-407b-afa0-84fcd67a4166",
"name": "SSH",
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
1120,
400
],
"credentials": {
"sshPassword": {
"id": "47",
"name": "Node 5 (root)"
}
}
},
{
"parameters": {
"fromEmail": "info@biketrax.co.uk",
"toEmail": "luke@biketrax.co.uk",
"subject": "Server Stack Restart",
"text": "=Server Stack Restart @ {{ $now }}",
"options": {}
},
"id": "2e6de730-33da-41a9-ba89-8a6d80699a69",
"name": "Send Email",
"type": "n8n-nodes-base.emailSend",
"typeVersion": 2,
"position": [
1280,
400
],
"credentials": {
"smtp": {
"id": "49",
"name": "info@biketrax.co.uk"
}
}
}
],
"pinData": {},
"settings": {},
"staticData": null,
"tags": [],
"triggerCount": 0,
"updatedAt": "2023-11-23T12:37:28.000Z",
"versionId": "3cb12fc4-f326-422e-a4ff-8ef1fcd38462"
}