Automated Health Check for URLs
detail.loadingPreview
This workflow periodically checks the availability of a list of URLs from a Google Sheet and sends alerts via Telegram if issues are detected.
About This Workflow
This n8n workflow, named 'MAIA - Health Check', is designed to automate the process of monitoring the health of a list of URLs. It is triggered on a schedule, fetches URLs from a specified Google Sheet, and performs an HTTP request to each URL. If a URL is unresponsive or returns an error, an alert is sent to a Telegram chat. The workflow includes helpful sticky notes for initial setup guidance.
Key Features
- Scheduled Execution: Runs at a configurable interval (currently set to every minute).
- Google Sheets Integration: Reads a list of URLs to check from a designated Google Sheet.
- HTTP Request: Performs a GET request to each URL to verify its availability.
- Error Handling: Catches errors from HTTP requests and continues processing.
- Telegram Notifications: Sends alert messages to a specified Telegram chat ID upon detection of issues.
- Informative Sticky Notes: Provides setup instructions for the Google Sheet and Telegram integration.
How To Use
-
Google Sheet Setup:
- Create a new Google Sheet.
- In cell A1, add a title (e.g., 'URL to Check').
- Starting from cell A2, list all the URLs you want to monitor, one per row.
- Share the Google Sheet with the n8n Google Sheets service account credentials.
- In the
FetchUrlsnode (ID:a53fba9c-0f7e-4757-8bcd-e3622845e804), configure thedocumentIdandsheetNameto point to your created Google Sheet.
-
Telegram Setup:
- Ensure you have a Telegram bot and its API token.
- In the
Telegramnode (ID:ea7771ba-3d35-423a-9813-2a65448a15fc), configure thechatIdto the ID of the chat where you want to receive notifications. - Set up Telegram credentials in n8n if not already done.
-
Workflow Configuration:
- The
Schedule Triggernode (ID:bae03dc7-e35b-4760-8de8-151d2d97391b) is set to run every minute. Adjust this interval as needed. - The
Check URLnode (ID:c96a2070-953b-4a03-a308-dae92d841851) uses the{{ $json.URLS }}expression to get URLs from theFetchUrlsnode. If your Google Sheet column has a different header, update this expression accordingly. - The
onErrorproperty of theCheck URLnode is set tocontinueErrorOutput, meaning that if a URL check fails, the workflow will still attempt to send a Telegram message. - The
Telegramnode'stextparameter constructs the message. It includes{{ $json.URLS }}and{{ $json.error.code }}which might require adjustment based on the actual error output from thehttpRequestnode when an error occurs. You may want to inspect the output of theCheck URLnode to refine the Telegram message content for better error reporting.
- The
Apps Used
Workflow JSON
{
"id": "6af6780b-1f90-4edc-8396-7de4f2317394",
"name": "Automated Health Check for URLs",
"nodes": 25,
"category": "Monitoring",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 6af6780b-1f90...
About the Author
SaaS_Connector
Integration Guru
Connecting CRM, Notion, and Slack to automate your life.
Statistics
Related Workflows
Discover more workflows you might like
Get SSL Certificate Status and Notify on Expiry
Checks the SSL certificate validity for a given domain and sends an alert if it has expired.
Error Notification Workflow
Sends an email notification when any workflow encounters an error.
Automated Error Notification Workflow
Automatically notifies you via various channels when any of your n8n workflows encounter an error.