Files

2.8 KiB

Uptime Monitor

A lightweight Node.js dashboard for monitoring the availability of one or more HTTP/HTTPS endpoints.

The app checks configured targets at a regular interval, records outages and uptime statistics, tracks local/public IP changes, and displays the results in a browser-based dashboard.

Features

  • Monitor multiple HTTP and HTTPS URLs.
  • Configure target labels and check interval from the dashboard.
  • View current status, uptime percentage, outage count, and downtime.
  • Browse connectivity history for the last hour, 24 hours, 30 days, or all recorded time.
  • Pause and resume monitoring.
  • Track local IP, public IP, network adapter, and Wi-Fi network changes.
  • Persist settings and monitoring history in data.json.
  • Export uptime and outage data as JSON or CSV.

Requirements

  • Node.js 18 or newer
  • Network access to the endpoints you want to monitor

On Windows, Wi-Fi SSID detection also requires the netsh command, which is normally included with Windows. The rest of the monitoring functionality is platform-independent.

Getting started

Install dependencies:

npm install

Start the server:

npm start

Open http://localhost:3010 in your browser.

The first launch monitors https://www.google.com by default. Use Settings to add, remove, reorder, or relabel targets and to change the polling interval. The minimum interval is one second; the default is five seconds.

Data and persistence

Runtime state is stored in data.json in the project directory. This includes configured targets, outage history, uptime totals, IP history, and display settings.

The file is created or updated automatically. It is application data rather than source code, so avoid committing it if the monitor contains private URLs or other information you do not want to share.

HTTP endpoints

Endpoint Method Description
/ GET Dashboard UI
/api/status GET Current monitoring state and history
/api/settings GET Current settings and targets
/api/settings POST Update settings and targets
/api/monitor/pause POST Pause monitoring
/api/monitor/resume POST Resume monitoring
/export/json GET Download a JSON uptime report
/export/csv GET Download a CSV uptime report

Notes

  • Availability checks only confirm that an HTTP(S) request completes without a request error or timeout; they do not validate response content or status codes.
  • Public IP detection uses https://api.ipify.org every 30 seconds.
  • The server has no authentication or access control. Keep it on a trusted machine/network unless you add protection before exposing it externally.

Development

Run the application with:

npm start

There is currently no automated test script in package.json.