AutomationFlowsGeneral › Monitor Disk Usage & Alert via Twilio

Monitor Disk Usage & Alert via Twilio

Original n8n title: Execute a Command That Gives the Hard Disk Memory Used on the Host Machine

Execute a command that gives the hard disk memory used on the host machine. Uses executeCommand, twilio, noOp. Scheduled trigger; 5 nodes.

Cron / scheduled trigger★★☆☆☆ complexity5 nodesExecute CommandTwilio
General Trigger: Cron / scheduled Nodes: 5 Complexity: ★★☆☆☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "81",
  "name": "Execute a command that gives the hard disk memory used on the host machine",
  "nodes": [
    {
      "name": "Execute Command",
      "type": "n8n-nodes-base.executeCommand",
      "position": [
        670,
        300
      ],
      "parameters": {
        "command": "df -k / | tail -1 | awk '{print $5}'"
      },
      "typeVersion": 1
    },
    {
      "name": "Cron",
      "type": "n8n-nodes-base.cron",
      "position": [
        470,
        300
      ],
      "parameters": {
        "triggerTimes": {
          "item": [
            {
              "hour": 9
            },
            {
              "hour": 16
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "name": "IF",
      "type": "n8n-nodes-base.if",
      "position": [
        870,
        300
      ],
      "parameters": {
        "conditions": {
          "number": [
            {
              "value1": "={{parseInt($node[\"Execute Command\"].json[\"stdout\"])}}",
              "value2": 80,
              "operation": "larger"
            }
          ],
          "string": []
        }
      },
      "typeVersion": 1
    },
    {
      "name": "Twilio",
      "type": "n8n-nodes-base.twilio",
      "position": [
        1070,
        200
      ],
      "parameters": {
        "to": "+12345",
        "from": "+123",
        "message": "=Your hard disk space is filling up fast! Your hard disk is {{$node[\"Execute Command\"].json[\"stdout\"]}} full."
      },
      "credentials": {
        "twilioApi": "<your credential>"
      },
      "typeVersion": 1
    },
    {
      "name": "NoOp",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1070,
        400
      ],
      "parameters": {},
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {},
  "connections": {
    "IF": {
      "main": [
        [
          {
            "node": "Twilio",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "NoOp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Cron": {
      "main": [
        [
          {
            "node": "Execute Command",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute Command": {
      "main": [
        [
          {
            "node": "IF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Execute a command that gives the hard disk memory used on the host machine. Uses executeCommand, twilio, noOp. Scheduled trigger; 5 nodes.

Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

Get the price of BTC in EUR and send an SMS when the price is larger than EUR 9000. Uses coinGecko, twilio, noOp. Scheduled trigger; 5 nodes.

Coin Gecko, Twilio
General

Creating your first workflow. Uses openWeatherMap, twilio, noOp. Scheduled trigger; 5 nodes.

OpenWeatherMap, Twilio
General

Weekly forecast digest (Sunday 21:00 ET). Uses executeCommand. Scheduled trigger; 4 nodes.

Execute Command
General

Congratulations Workflow. Uses googleSheets, noOp, twilio. Scheduled trigger; 8 nodes.

Google Sheets, Twilio
General

💻 Schedule workflow activity time. Uses n8n, scheduleTrigger, stickyNote. Scheduled trigger; 13 nodes.

n8n