スナップショット API VPS Hostinger
上級
これはDevOps分野の自動化ワークフローで、20個のノードを含みます。主にSet, Wait, Filter, SplitOut, ManualTriggerなどのノードを使用。 Hostinger毎日VPSスナップショットとサーバーメトリクス
前提条件
- •特別な前提条件なし、インポートしてすぐに使用可能
使用ノード (20)
カテゴリー
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "veLZQlpr9v5pEgDx",
"meta": {
"instanceId": "4d636d76f504736fe1411740aa5378f35110bd722b6afb8e0cedb47992a97d30",
"templateCredsSetupCompleted": true
},
"name": "Snapshot API VPS Hostinger",
"tags": [
{
"id": "JCeTWzAG1RlEvpld",
"name": "Hostinger",
"createdAt": "2025-04-30T02:53:12.363Z",
"updatedAt": "2025-04-30T02:53:12.363Z"
}
],
"nodes": [
{
"id": "66922063-7f2a-46a3-9618-abae57e1ee8c",
"name": "「Test workflow」クリック時",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-100,
500
],
"parameters": {},
"typeVersion": 1
},
{
"id": "da6b9112-0bb3-4ac3-94ee-e067545568dc",
"name": "分割",
"type": "n8n-nodes-base.splitOut",
"position": [
500,
360
],
"parameters": {
"options": {},
"fieldToSplitOut": "response"
},
"typeVersion": 1
},
{
"id": "827df7d7-19ba-40b8-9e74-9c0c09b7bf88",
"name": "付箋6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-240,
-480
],
"parameters": {
"color": 4,
"width": 609,
"height": 496,
"content": "## Hostinger Snapshot with VPS Metrics\nAutomate the creation of snapshots of all your Hostinger VPS, receive success or failure alerts via WhatsApp, use in n8n self-hosting.\n\n### Prerequisites (Community Nodes):\nn8n-nodes-hostinger-api\nn8n-nodes-evolution-api (you can use another notification method, but copy first content message model)\n\n### Setup:\n1 - Install Community Nodes\n2 - Create Hostinger API Key: https://hpanel.hostinger.com/profile/api\n3 - Create credential in first node and set in next nodes;\n4 - Configure notifications Evolution API (WhatsApp) or other means;\n\nNote: Hostinger allows one snapshot per VPS and the previous one will always be replaced.\n\nWorkflow by [Leandro Melo]\nbuy me a coffe!☕😀\nPaypal/Pix: contato@sistemanaweb.com\n"
},
"typeVersion": 1
},
{
"id": "308532f7-edb5-48cf-bc52-e4af021c31b5",
"name": "項目ループ",
"type": "n8n-nodes-base.splitInBatches",
"position": [
1280,
360
],
"parameters": {
"options": {}
},
"typeVersion": 3
},
{
"id": "ab42fce7-ca08-41f8-be53-f1ae3ca085e9",
"name": "2秒待機",
"type": "n8n-nodes-base.wait",
"position": [
2340,
360
],
"webhookId": "51576f9f-ca59-499e-a510-23a568d7964d",
"parameters": {
"amount": 2
},
"typeVersion": 1.1
},
{
"id": "fc54f299-b001-4171-9433-6cf4c5d36814",
"name": "毎日 4:00",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-100,
260
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 4
}
]
}
},
"typeVersion": 1.2
},
{
"id": "6dbcc6a5-07a2-42d4-a41d-e5a81c2247a2",
"name": "Hostinger API VPS一覧取得",
"type": "n8n-nodes-hostinger-api.hostingerApi",
"position": [
300,
360
],
"parameters": {
"vpsAction": "listVms"
},
"credentials": {
"hostingerApi": {
"id": "jVddXbfl7TVKOktS",
"name": "Hostinger account 2"
}
},
"typeVersion": 1
},
{
"id": "6cf2b19c-079b-44e1-8491-42aaa0c207b0",
"name": "利用可能なVPS",
"type": "n8n-nodes-base.filter",
"position": [
660,
360
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "10bde94d-4ca9-479a-98d6-b39695fe7b78",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.state }}",
"rightValue": "running"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "242a2705-1d27-450c-a935-082b5388ee1b",
"name": "VPSメトリクス取得",
"type": "n8n-nodes-hostinger-api.hostingerApi",
"position": [
860,
360
],
"parameters": {
"date_to": "={{ $now.minus({ minute: 0 }).toISO() }}",
"date_from": "={{ $now.minus({ minute: 30 }).toISO() }}",
"vpsAction": "getVmMetrics",
"virtualMachineId": "={{ $('Avaliables VPS').item.json.id }}"
},
"credentials": {
"hostingerApi": {
"id": "jVddXbfl7TVKOktS",
"name": "Hostinger account 2"
}
},
"typeVersion": 1
},
{
"id": "fb71f5bc-41ba-4293-8967-53f5380752d2",
"name": "WhatsApp メッセージ(成功)",
"type": "n8n-nodes-evolution-api.evolutionApi",
"position": [
1560,
220
],
"parameters": {
"resource": "messages-api",
"remoteJid": "55119999999",
"messageText": "=💾 Info Snapshot Hostinger:\n\n🔹Status: {{ $('Create Snapshot').item.json.response.state === \"sent\" ? \"SUCCESS\" : $('Create Snapshot').item.json.response.state }}\n🔹Date: {{ $now.setZone(\"America/Sao_Paulo\").toFormat(\"dd/MM/yyyy HH:mm\") }}\n🔹Server: {{ $('Calculate metrics').item.json.plan }} / {{ $('Calculate metrics').item.json.hostname }}\n🔹IP: {{ $('Calculate metrics').item.json.IP }}\n\n⚙️ Métrics: \n🔹 {{ $('Calculate metrics').item.json.cpus }}vCPUs \n🔹 {{ $('Calculate metrics').item.json.ram_usage }} \n🔹 {{ $('Calculate metrics').item.json.disco }} \n🔹 {{ $('Calculate metrics').item.json.OS }}(SO) \n🔹 Uptime: {{ $('Calculate metrics').item.json.uptime }}",
"instanceName": "alertasinstance",
"options_message": {}
},
"credentials": {
"evolutionApi": {
"id": "aoptZJkDE26UU8y2",
"name": "Evolution account"
}
},
"typeVersion": 1
},
{
"id": "c9891a04-3b3b-48c6-b476-bf343940b8eb",
"name": "スナップショット作成",
"type": "n8n-nodes-hostinger-api.hostingerApi",
"onError": "continueErrorOutput",
"position": [
1880,
380
],
"parameters": {
"vpsAction": "createSnapshot",
"subcategory": "snapshots",
"virtualMachineId": "={{ $json.id }}"
},
"credentials": {
"hostingerApi": {
"id": "jVddXbfl7TVKOktS",
"name": "Hostinger account 2"
}
},
"typeVersion": 1
},
{
"id": "dfd2073c-c2c2-4b1c-b5a0-36f35eb5d269",
"name": "次のVPS",
"type": "n8n-nodes-base.noOp",
"position": [
2160,
360
],
"parameters": {},
"typeVersion": 1
},
{
"id": "c9cde1f1-38b0-4c9a-b018-9a0e794a908a",
"name": "WhatsApp メッセージ(エラー)",
"type": "n8n-nodes-evolution-api.evolutionApi",
"position": [
1560,
600
],
"parameters": {
"resource": "messages-api",
"remoteJid": "55119999999",
"messageText": "=🚨⚠️ Error Snapshot Hostinger:\n\n🔹Status: {{ $('Create Snapshot').item.json.response.state }}\n🔹Date: {{ $now.setZone(\"America/Sao_Paulo\").toFormat(\"dd/MM/yyyy HH:mm\") }}\n🔹Server: {{ $('Calculate metrics').item.json.plan }} / {{ $('Calculate metrics').item.json.hostname }}\n🔹IP: {{ $('Calculate metrics').item.json.IP }}",
"instanceName": "alertsinstance",
"options_message": {}
},
"credentials": {
"evolutionApi": {
"id": "aoptZJkDE26UU8y2",
"name": "Evolution account"
}
},
"typeVersion": 1
},
{
"id": "ad294b56-763b-4c6e-9561-05f4dac14939",
"name": "付箋",
"type": "n8n-nodes-base.stickyNote",
"position": [
400,
-320
],
"parameters": {
"width": 340,
"height": 340,
"content": "### VPS Metrics avaliables (send in messages):\n\n\n🔹Status: snapshot status\n🔹Date: snapshot date time\n🔹Server: server name\n🔹IP: external server IP\n\n⚙️ Métrics: \n🔹 Number of vCPUs \n🔹 Ram usage / avaliable \n🔹 Hard Disk usage / avaliable\n🔹 Operational Sys and version\n🔹 Uptime time (days, hours)"
},
"typeVersion": 1
},
{
"id": "37e8ea8c-731b-49a6-a82f-14c352134fbb",
"name": "付箋1",
"type": "n8n-nodes-base.stickyNote",
"position": [
240,
100
],
"parameters": {
"color": 6,
"width": 220,
"height": 680,
"content": "### Set Hostinger API credential"
},
"typeVersion": 1
},
{
"id": "1942c744-48b7-4774-8250-9bc4ff6d87c7",
"name": "付箋2",
"type": "n8n-nodes-base.stickyNote",
"position": [
800,
100
],
"parameters": {
"color": 6,
"width": 220,
"height": 680,
"content": "### Set Hostinger API credential"
},
"typeVersion": 1
},
{
"id": "a08c8234-15bc-4d75-b9a5-20b513a13d59",
"name": "付箋3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1820,
100
],
"parameters": {
"color": 6,
"width": 220,
"height": 680,
"content": "### Set Hostinger API credential"
},
"typeVersion": 1
},
{
"id": "2e8eece6-3f7e-4355-a52f-7ccdc088125b",
"name": "付箋4",
"type": "n8n-nodes-base.stickyNote",
"position": [
1440,
100
],
"parameters": {
"color": 4,
"width": 320,
"height": 680,
"content": "### Set destination alert message (use message model inside)"
},
"typeVersion": 1
},
{
"id": "9a1ccbac-1c25-403d-a67c-826ad8491387",
"name": "メトリクス計算",
"type": "n8n-nodes-base.set",
"position": [
1080,
360
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "08aea2dd-4226-46d5-ae08-3f1d764bd658",
"name": "id",
"type": "number",
"value": "={{ $('Avaliables VPS').item.json.id }}"
},
{
"id": "3115465b-24ed-4f9e-a9af-53e34d2db384",
"name": "plan",
"type": "string",
"value": "={{ $('Avaliables VPS').item.json.plan }}"
},
{
"id": "1611cd7b-cc97-4c12-822c-6e8da601c508",
"name": "hostname",
"type": "string",
"value": "={{ $('Avaliables VPS').item.json.hostname }}"
},
{
"id": "c1e1edd4-7c45-4f96-a7e0-2c67c6aa8968",
"name": "cpus",
"type": "number",
"value": "={{ $('Avaliables VPS').item.json.cpus }}"
},
{
"id": "78e6cf5e-979f-4e31-908c-f4c6b95cb316",
"name": "disk",
"type": "number",
"value": "={{ $('Avaliables VPS').item.json.disk }}"
},
{
"id": "58e18048-6200-40fc-8957-5022810c7474",
"name": "IP",
"type": "string",
"value": "={{ $('Avaliables VPS').item.json.ipv4[0].address }}"
},
{
"id": "e8f2e562-9a96-479f-b3ca-a0770296d343",
"name": "OS",
"type": "string",
"value": "={{ $('Avaliables VPS').item.json.template.name }}"
},
{
"id": "c18f9dc3-7190-4f38-b4b8-2068a1c89023",
"name": "cpu_usage",
"type": "string",
"value": "={{ $('Get VPS Metrics').item.json.response.cpu_usage.usage.values().last() }}%"
},
{
"id": "47607d2b-5980-4e27-9232-06e166c70193",
"name": "ram_usage",
"type": "string",
"value": "={{\n \"RAM: \" + \n ($('Get VPS Metrics').item.json.response.ram_usage.usage.values().last() / 1073741824).toFixed(2) + \n \" GB (\" + \n (($('Get VPS Metrics').item.json.response.ram_usage.usage.values().last() / ($('Avaliables VPS').item.json.memory * 1048576)) * 100).toFixed(2) + \n \"%) | Free: \" + \n (($('Avaliables VPS').item.json.memory - ($('Get VPS Metrics').item.json.response.ram_usage.usage.values().last() / 1048576)) / 1024).toFixed(2) + \n \" GB\"\n}}"
},
{
"id": "b2fd1374-1199-4020-a2b4-00b9d9496c77",
"name": "uptime",
"type": "string",
"value": "={{ \n \"Days: \" + Math.floor($('Get VPS Metrics').item.json.response.uptime.usage.values().last() / 86400) + \n \" | Hours: \" + Math.floor(($('Get VPS Metrics').item.json.response.uptime.usage.values().last() % 86400) / 3600)\n}}"
},
{
"id": "a6b3ecbf-e734-48cd-b1d0-9094cf52c7ec",
"name": "disco",
"type": "string",
"value": "={{ \"Used: \" + ($('Get VPS Metrics').item.json.response.disk_space.usage.values().last() / 1073741824).toFixed(2) + \" GB (\" + (($('Get VPS Metrics').item.json.response.disk_space.usage.values().last() / 1073741824) / ($('Avaliables VPS').item.json.disk / 1024) * 100).toFixed(2) + \"%) | Free: \" + ($('Avaliables VPS').item.json.disk / 1024 - $('Get VPS Metrics').item.json.response.disk_space.usage.values().last() / 1073741824).toFixed(2) + \" GB\" }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "b7e68847-f530-4df7-b7d1-1b557b1718c1",
"name": "付箋5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-240,
80
],
"parameters": {
"color": 3,
"width": 2840,
"height": 720,
"content": ""
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "3791c97d-8433-438e-a8c2-b0fae6926186",
"connections": {
"dfd2073c-c2c2-4b1c-b5a0-36f35eb5d269": {
"main": [
[
{
"node": "ab42fce7-ca08-41f8-be53-f1ae3ca085e9",
"type": "main",
"index": 0
}
]
]
},
"da6b9112-0bb3-4ac3-94ee-e067545568dc": {
"main": [
[
{
"node": "6cf2b19c-079b-44e1-8491-42aaa0c207b0",
"type": "main",
"index": 0
}
]
]
},
"ab42fce7-ca08-41f8-be53-f1ae3ca085e9": {
"main": [
[
{
"node": "308532f7-edb5-48cf-bc52-e4af021c31b5",
"type": "main",
"index": 0
}
]
]
},
"6cf2b19c-079b-44e1-8491-42aaa0c207b0": {
"main": [
[
{
"node": "242a2705-1d27-450c-a935-082b5388ee1b",
"type": "main",
"index": 0
}
]
]
},
"c9891a04-3b3b-48c6-b476-bf343940b8eb": {
"main": [
[
{
"node": "dfd2073c-c2c2-4b1c-b5a0-36f35eb5d269",
"type": "main",
"index": 0
}
],
[
{
"node": "c9cde1f1-38b0-4c9a-b018-9a0e794a908a",
"type": "main",
"index": 0
}
]
]
},
"242a2705-1d27-450c-a935-082b5388ee1b": {
"main": [
[
{
"node": "9a1ccbac-1c25-403d-a67c-826ad8491387",
"type": "main",
"index": 0
}
]
]
},
"308532f7-edb5-48cf-bc52-e4af021c31b5": {
"main": [
[
{
"node": "fb71f5bc-41ba-4293-8967-53f5380752d2",
"type": "main",
"index": 0
}
],
[
{
"node": "c9891a04-3b3b-48c6-b476-bf343940b8eb",
"type": "main",
"index": 0
}
]
]
},
"fc54f299-b001-4171-9433-6cf4c5d36814": {
"main": [
[
{
"node": "6dbcc6a5-07a2-42d4-a41d-e5a81c2247a2",
"type": "main",
"index": 0
}
]
]
},
"9a1ccbac-1c25-403d-a67c-826ad8491387": {
"main": [
[
{
"node": "308532f7-edb5-48cf-bc52-e4af021c31b5",
"type": "main",
"index": 0
}
]
]
},
"6dbcc6a5-07a2-42d4-a41d-e5a81c2247a2": {
"main": [
[
{
"node": "da6b9112-0bb3-4ac3-94ee-e067545568dc",
"type": "main",
"index": 0
}
]
]
},
"fb71f5bc-41ba-4293-8967-53f5380752d2": {
"main": [
[]
]
},
"66922063-7f2a-46a3-9618-abae57e1ee8c": {
"main": [
[
{
"node": "6dbcc6a5-07a2-42d4-a41d-e5a81c2247a2",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
上級 - DevOps
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
潜在顧客開掘とメールワーキングフロー
Google Maps、SendGrid、AIを使用してB2Bリード獲得とメールマーケティングを自動化
If
Set
Code
+
If
Set
Code
141 ノードEzema Kingsley Chibuzo
リード獲得
アクセルレーション隊スプリント計画の自動化
OpenAI、Googleカレンダー、Gmailを使ってアジャイルチームのスプリント計画を自動化
If
Set
Code
+
If
Set
Code
52 ノードWillemijn
プロダクト
n8nノードの探索(可視化リファレンスライブラリ内)
n8nノードを可視化リファレンスライブラリで探索
If
Ftp
Set
+
If
Ftp
Set
113 ノードI versus AI
その他
[テンプレート] AIペットショップ v8
AIペットショップアシスタント - GPT-4o、Googleカレンダー、WhatsApp/Instagram/Facebookを統合
If
N8n
Set
+
If
N8n
Set
244 ノードAmanda Benks
営業
AI エージェント レストラン [テンプレート]
🤖 WhatsApp、Instagram、MessengerのAIレストランアシスタント
If
N8n
Set
+
If
N8n
Set
239 ノードAmanda Benks
その他
Typebot ワークフローと GitHub を相互同期、Typebot API を使用
TypebotフローとGitHubを双方向に同期し、Typebot APIを使用
If
Set
Code
+
If
Set
Code
31 ノードMarcial Ambriz
DevOps
ワークフロー情報
難易度
上級
ノード数20
カテゴリー1
ノードタイプ11
作成者
Leandro Melo
@lsmeloSpecialist in data integration, artificial intelligence, SQL databases, accounting, financial services, IoT.
外部リンク
n8n.ioで表示 →
このワークフローを共有