Monitor Server Uptime & Get Email Alerts with Google Sheets

🌐 Web Server Monitor & Alert System

This automation pings web servers at regular intervals, logs their status, and sends email alerts if a server goes down. It’s perfect for maintaining visibility over server uptime β€” without complex monitoring tools. 🧠 How It Works

This workflow performs minute-by-minute checks on all listed servers in a Google Sheet and:

βœ… Logs all reachable servers in an β€œAlive” log.

πŸ”» Sends an email alert if a server is unreachable.

πŸ“„ Logs failed servers in a β€œDown” sheet with timestamps.

🧩 Key Components ⏰ 1. Schedule Trigger

Runs the workflow every minute for real-time monitoring. πŸ“„ 2. Web Servers List (Google Sheets)

Pulls server IPs or hostnames from a Google Sheet named Server_List. Each row = one server to monitor. This makes adding/removing servers effortless β€” just update the sheet. 🌐 3. Servers Alive Check (HTTP Request)

Performs an HTTP GET request to each server (e.g., http://your-server.com). If the request fails, it automatically triggers the error path (handled via continueOnFail). βœ… 4. Web Server Alive Log (Google Sheets)

Records successful pings in Server_Status_Alive with:

Timestamp

Server IP

Status = Alive

This log can be used for uptime reports or audits. πŸ“§ 5. Server Down Notification (Gmail)

If a server fails, this node sends an email to the admin. It includes:

Server address

Timestamp

Suggested action

πŸ“„ 6. Web Server Down Log (Google Sheets)

Logs failed pings in a separate sheet for historical tracking and debugging. βœ… Main Advantages

Live Server Monitoring
Stay informed about server health in near real-time.

No-Code Configuration
Add/remove servers from the Google Sheet β€” no need to touch the workflow.

Email Alerts on Failure
Proactively notifies you before users report the issue.

Audit-Ready Logging
Maintains logs for both healthy and failed checks for documentation or reporting.

Flexible & Scalable
Monitor 1 or 100 servers with the same template β€” just scale the list.

βš™οΈ Setup Steps πŸ”‘ Prerequisites

Google Sheet with server list (column name = β€œServer”)

Gmail OAuth2 Connection for alerts

n8n Instance running regularly

πŸ›  Configuration

Google Sheets

    Sheet 1 (Server_List): Your list of servers.

    Sheet 2 (Server_Status_Alive): Log for reachable servers.

    Sheet 3 (Server_Status_Down): Log for unreachable servers.

Gmail Integration

    Connect your Gmail account in the Server Down Notification node.

    Edit recipient email and message content as needed.

HTTP Check

    Adjust the HTTP request URL template if using port numbers or paths (e.g., http://{{Server}}:8080/status).

Schedule

    Default is every 1 minute. Change via Schedule Trigger if needed.

πŸ§ͺ Testing

Input a reachable server (e.g., example.com) and an unreachable IP.

Run the workflow manually or wait for the next scheduled run.

Check:

    Alive log updates correctly.

    Down log records failures.

    Email alert is received.

πŸš€ Deployment

Activate the workflow, and it will quietly run in the background, notifying you of any server downtime instantly while keeping logs for future review.

0
Downloads
2438
Views
9.34
Quality Score
beginner
Complexity
Created:8/14/2025
Updated:8/25/2025

πŸ”’ Please log in to import templates to n8n and favorite templates

Workflow Visualization

Loading...

Preparing workflow renderer

Comments (0)

Login to post comments