Built to order

Desktop Service Uptime Monitor with Ping Checks and Alert History (Python)

This project builds a desktop service uptime monitor in Python that watches local services, TCP ports and HTTP endpoints with ICMP ping checks and records every outage in a searchable alert history. It shows live status, latency and uptime percentages over rolling windows on a status dashboard and exports the full check and alert history to CSV. Suitable for B.E./B.Tech final-year projects in Computer Science and Information Technology.

Chat on WhatsApp — get a quotation

Computer / IT PythonTkinter ttk desktop interfaceping3 ICMP ping checksrequests HTTP endpoint checksSQLite check and alert storageMatplotlib latency chartsCSV module history exportSoftware
Desktop Service Uptime Monitor with Ping Checks and Alert History (Python) — project thumbnail preview
More project photos (3)

The problem

Desktop Service Uptime Monitor with Ping Checks and Alert History (Python) answers a small but persistent question for anyone running services on a local machine or home lab: is everything actually up right now, and if something failed, when did it fail? A web server, a database or a file share can stop responding silently — the process may still appear in a task list while its port no longer answers, or a router reboot may leave a service bound to the wrong interface. Without a monitor, the first sign of trouble is usually a user complaint, and by then the start time, duration and pattern of the outage are already lost. This project closes that gap with a desktop application that probes each configured service on a schedule, records every result, and keeps a permanent alert history so outages can be reviewed, measured and explained instead of guessed at.

SYSTEM FLOW

5 components 4 connections

Live flow
Drag to explore
100%
controllerCheck scheduler

A background scheduler wakes once per configured interval, 60 seconds by default.

How it works

End to end, the monitor runs a simple loop: once per configured interval it works through the service list, probes each entry with the check type assigned to it, stamps the result with the time and latency, and compares the new state with the previous one. A service that answers becomes or stays Up; one that misses is rechecked before any alert is raised, so a single dropped packet only moves it to Degraded. When a confirmed state change occurs — Up to Down, or Down to Recovered — the monitor writes an alert entry to the history log and updates the dashboard. The dashboard recomputes uptime percentages from the stored results over each rolling window, and the operator can pause checks, add or edit services, filter the alert history and export everything to CSV at any point.

  1. The operator adds services in the dashboard: a name, a host or URL, a check type (ICMP ping, TCP port or HTTP) and, where relevant, a port or path.
  2. A background scheduler thread wakes once per configured interval (default 60 seconds) and runs the checks without freezing the desktop window.
  3. Each check uses its own mechanism: ping3 ping() for ICMP, socket.create_connection() for TCP ports, and requests.get() with a timeout for HTTP endpoints.
  4. A failed check is retried once after a short delay. Only a second consecutive failure moves the service to Down and creates an alert; a single miss leaves it Degraded.
  5. Every result is stored in SQLite with a timestamp, latency in milliseconds and status, and every confirmed state change is appended to the alert history.
  6. The dashboard recomputes uptime percentages from the stored results for the 24-hour, 7-day and 30-day windows and redraws the latency chart for the selected service.
  7. The operator can pause or resume checks, edit or remove services, filter the alert history by service or event, and export check and alert history to CSV.

Tech stack:

  • Python 3
  • Tkinter · ttk desktop interface
  • ping3 · ICMP ping checks
  • Python socket module · TCP port checks
  • requests · HTTP endpoint checks
  • SQLite · check and alert storage
  • Matplotlib · latency charts
  • CSV module · history export
Parameter Value
Check interval Default 60 seconds (configurable range 10–3600 seconds)
Check timeout Default 5 seconds (configurable)
Failure confirmation 2 consecutive failed checks before a Down alert (design target)
Uptime windows 24 hours · 7 days · 30 days (rolling)
Check types 3 types: ICMP ping · TCP port · HTTP status
HTTP success rule HTTP status code 200–299 treated as Up by default (configurable)
Storage SQLite database file (local, single file)
Dashboard refresh Approximately every 5 seconds (design target)
Export format CSV files for check history and alert history
Platform Windows · macOS · Linux desktops with Python 3 (expected)

Project features

The monitor's core capabilities are its three complementary check types, its rolling uptime arithmetic and its permanent alert history. ICMP ping checks confirm a host is reachable, TCP port checks confirm a specific service is actually listening, and HTTP checks confirm a web endpoint answers with an acceptable status code — three different answers to three different questions, so a host that pings but serves nothing is never reported as healthy. Uptime percentages are computed over rolling 24-hour, 7-day and 30-day windows from the stored check results, and every state change lands in the alert history with a timestamp, so a week's outages can be filtered, reviewed and exported rather than remembered. The status dashboard pulls all of this into one window: summary cards for overall uptime, a per-service table with live status badges, and a latency chart for the selected service, so the health of the whole lab is visible at a glance.

  • [ICMP ping checks] Each host is probed with an ICMP echo request using the ping3 library, whose ping() function returns the delay in seconds, None on timeout and False when the host cannot be resolved. A reply confirms the host is reachable on the network.
  • [TCP port checks] For services such as databases and mail servers, the monitor opens a TCP connection to the configured host and port with Python's socket module. A successful connection proves the service is listening, which a ping alone cannot show.
  • [HTTP endpoint checks] Web endpoints are requested with the requests library and judged by status code and response time. A 2xx response counts as Up by default, and the threshold is configurable for endpoints that legitimately return other codes.
  • [Configurable interval and timeout] The check interval defaults to 60 seconds and the timeout to 5 seconds, both adjustable per service. Shorter intervals catch brief outages; longer ones keep check traffic light on slow networks.
  • [Rolling uptime percentages] Uptime is computed from stored check results over rolling 24-hour, 7-day and 30-day windows. The percentage is simply successful checks divided by total checks in the window, multiplied by 100 — the dashboard shows the arithmetic, not a smoothed score.
  • [Alert history log] Every confirmed state change is written to SQLite with a timestamp, service name, event type and detail. The log is filterable by service and event, and it is never silently pruned in the base build.
  • [Status dashboard] A Tkinter desktop window shows summary cards, a per-service table with status badges and uptime bars, a latency chart for the selected service, and the alert log in one view.
  • [CSV export] Check history and alert history export to CSV files with one row per check or alert, so outages can be analysed in a spreadsheet or quoted in the report.

Builder note: the monitor confirms a failure twice before raising an alert — a single missed ping only moves a service to Degraded, so one dropped packet never creates an alert. This one choice removes the most common source of false alarms in a student monitor.

What is included

  • Complete Python source code for the desktop monitor (Tkinter dashboard, scheduler, check engines, SQLite store, CSV export)
  • Sample service configuration covering ping, TCP port and HTTP check types
  • Latency chart and status dashboard in the desktop window
  • Project report PDF (background, networking concepts, design decisions, methodology, results from a sample run)
  • PPT presentation for final review
  • Viva Q&A preparation document (ICMP vs TCP vs HTTP, sockets, threading, SQLite, uptime arithmetic)

Limitations & prerequisites

  • ICMP ping can be blocked by host or network firewalls; a blocked ping means "unreachable by ping", not proof the host is down, so TCP or HTTP checks should confirm important services.
  • The monitor runs on one desktop machine: if that machine sleeps, hibernates or loses power, checks pause until it resumes, and the gap appears in the history.
  • No email, SMS or chat alert delivery in the base build; alerts live in the on-screen history log and CSV export, with external notification as an optional customization.
  • Uptime percentages are only as fine-grained as the check interval: with the default 60-second interval, outages shorter than about 60 seconds may pass unnoticed.
  • An HTTP check validates the status code and response time only; it does not verify page content, so a server returning a generic error page with a 200 code reads as Up (a content check is an optional customization).
  • Measured latency reflects the path from the monitoring machine, not from any other user's machine or location.

Frequently Asked Questions

What does the monitor actually check?

It checks three different things, because each answers a different question: ICMP ping confirms a host is reachable, a TCP port check confirms a specific service is listening, and an HTTP check confirms a web endpoint answers with an acceptable status code. A host that pings but serves nothing is therefore never reported as healthy.

How does the monitor decide a service is down?

A service is marked Down only after 2 consecutive failed checks, so a single dropped packet or one slow response cannot trigger a false alert. The first failure moves the service to Degraded and starts a confirmation recheck; the alert history records both the Degraded step and the confirmed Down event with timestamps.

Does it send email or SMS alerts?

No, not in the base build — alerts are recorded in the on-screen alert history log and in the CSV export, which is the honest scope for a desktop student project. Email or chat notification can be added as an optional customization, for example by sending through an SMTP account the student provides.

Does the monitor need internet access?

No, not for local targets: ping and TCP checks against machines on the same network work entirely offline, and the dashboard, SQLite store and CSV export are all local. Internet is only needed when a monitored endpoint itself lives on the internet, such as a public website's HTTP check.

Can I add my own services to monitor?

Yes — services are added from the dashboard with a name, host or URL, check type and port or path, and the new service joins the next check interval automatically. The sample configuration ships with web, database, cache, API, mail and file-service examples that can be replaced with the student's own lab machines.

Is this project suitable for a final-year project?

Yes, for Computer Science and Information Technology programs, because it demonstrates real networking concepts rather than a toy interface: ICMP and TCP behaviour, socket programming, background threading, SQLite storage, desktop GUI design and the arithmetic behind uptime percentages, all in one working application.

Components & software requirements
  • Python 3
  • Tkinter · ttk desktop interface
  • ping3 · ICMP ping checks
  • Python socket module · TCP port checks
  • requests · HTTP endpoint checks
  • SQLite · check and alert storage
  • Matplotlib · latency charts
  • CSV module · history export
Delivery information

Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.

Support terms

Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.

Download free synopsis (PDF)

Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.

Get a quotation