System uptime tracking tool that preserves historical uptime statistics across reboots
Tuptime is a system monitoring tool that tracks and reports historical uptime and downtime statistics across system reboots. Unlike the standard uptime command which only shows current session data, tuptime maintains a persistent SQLite database that records startup and shutdown events, preserving system uptime history even after restarts.
The tool provides multiple output formats including summary statistics (total system life, longest/average uptime, startup counts), tabular views of individual boot sessions, and list formats showing detailed startup/shutdown events. It tracks both normal shutdowns and unexpected failures, calculates system uptime percentages, and can report on specific time ranges or boot sessions.
Tuptime runs without requiring a persistent daemon - it only needs execution during system startup and shutdown events managed by the init system. A cron job handles periodic updates to account for unexpected shutdowns like power failures. The tool is designed to avoid false startup registrations that can occur due to NTP clock adjustments, virtualization issues, or high system load. System administrators can use tuptime to analyze system reliability patterns, track maintenance windows, and generate uptime reports for infrastructure monitoring.
# via Package Manager
Available via apt, yum, pacman - see distribution-specific repositories
# via One-liner Script
bash < <(curl -Ls https://git.io/tuptime-install.sh)
# via Manual Install
git clone --depth=1 https://github.com/rfmoz/tuptime.git && cp tuptime/src/tuptime /usr/bin/tuptime && chmod ugo+x /usr/bin/tuptime