Important
Which StartOS versions are supported
| StartOS | startos-admin |
|---|---|
| 0.4.3 | v73 and newer (v74 tested on 0.4.3) |
| 0.4.0.3 – 0.4.2.x | v72 and newer (v72 tested on 0.4.2) |
| 0.4.0 – 0.4.0.2 | v72 and newer, except the Backup staleness alert, which needs 0.4.0.3 or newer — update StartOS |
| 0.3.5.x | not supported |
StartOS 0.4.3 changed backups: targets are added in System → Backups (drives included), and StartOS no longer sends a notification when a backup completes or fails. v72 and older list every target as "(unknown)", and their drive schedules and drive-watching staleness alerts stop working. v73 fixes these, offers at launch to switch drive schedules to the drive's new StartOS id, and adds Backup succeeded and Backup failed alerts to replace the lost notifications.
v71 and older: the Backup staleness alert stops working on StartOS 0.4.1 and newer
(0.4.1 changed how backup passwords are passed to start-cli). v72 fixes it and
offers to rebuild your installed alerts the first time you start it.
Any StartOS update removes the cron jobs, forwarders and alerts this tool installed. Save your configuration (option 11) before updating StartOS, and Load it afterwards.
Interactive administrative menu for StartOS servers. Run it over SSH to see disk, memory and system details, schedule backups and other recurring jobs, forward StartOS notifications to outside services, and set up alerts — all from a menu instead of hand-written commands.
Setting up automatic backups? Automating StartOS Backups is a step-by-step companion to this tool's Backup schedule option: test a manual backup first, create the schedule, confirm it ran, and later change or remove it safely.
Intended use
This tool is intended for StartOS Administrators who:
- Want additional functionality not currently (as of November 2026) available in the graphical user interface
- Prefer menu-driven administration over manual CLI use
- Have SSH access to their server
- For StartOS SSH information see: https://docs.start9.com/start-os/ssh.html
Requirements
- SSH access to your StartOS server as the Start9 user
- StartOS 0.4.0.3 or newer (most recently tested on 0.4.3). On 0.4.0–0.4.0.2 everything except the Backup staleness alert works. The Backup succeeded and Backup failed alerts need StartOS 0.4.3 or newer. StartOS 0.3.5.x is not supported.
- sudo privileges (the Start9 user has these by default)
start-cliavailable and authenticated (preinstalled on StartOS; most features use it)jq,curl, andopenssl(all preinstalled on StartOS; the script checks at startup)- bash 4.3 or newer (preinstalled on StartOS)
- Outbound internet access — only needed for update checks, stay-alive curls, and webhook forwarding; everything else works offline
Security considerations
This tool may be run with elevated privileges (including root). Treat it like any other privileged administrative code.
Key risks and cautions:
- Root-level impact: If you run this script as
root(or viasudo), it can modify system state (e.g., write to/usr/local/bin, create/edit cron entries, create state files, make outbound HTTP requests). Mistakes or malicious changes could cause system damage or data loss. - Not formally vetted or approved: This project has not been heavily security-audited, formally reviewed, or approved by Start9/StartOS. It may contain bugs or unsafe assumptions.
- Backup password storage: When you schedule a backup, your StartOS primary password is stored in a root-only file (
/root/.startos-admin/backup-pass-<target>, mode 600) that the cron job reads at backup time. It does not appear in the crontab. It is included, encrypted, in a saved configuration file (see Save / Load Configuration), so protect that file and its passphrase accordingly. Residual exposure: the password is briefly visible in the process list (ps) while a backup is running, and the file remains if you later delete the backup cron entry. To remove it permanently, delete it inside persistence mode (chroot-and-upgrade) as described in BACKUP-GUIDE.md — a plainsudo rmis undone at the next restart. Backups scheduled with versions ≤ 56 still have the password inline in the crontab — edit the schedule once to migrate it to the new format. Backup staleness alerts no longer use a password (v72); a password file stored for an older alert stays until you remove it, and a backup schedule to the same target still uses it. - Update integrity verification: Updates and configuration-load downloads are checked against a GPG signature (
startos-admin.sh.asc) before anything is installed, usinggpgvand the public key embedded in the script: GPG84FF9BB7F3E85F913CCF438E1A64936712ACCC07, "Jesse Markowitz (release signing)". A script that fails verification is never installed. Trust is anchored at first install (review the script you initially download); a compromised repository cannot push executable code without the private signing key, which is not stored in the repository.- Versions before v74 check an older key's signature (
startos-admin.sh.sig) instead. v74 and v75 carry both signatures, so an older copy updates normally. A copy still on v73 or older when v76 is released will report a signature failure: reinstall it once with the command under Install.
- Versions before v74 check an older key's signature (
- Input validation: Webhook/stay-alive URLs and keyword filters are restricted to conservative character sets, and notification titles/messages are shell-escaped, so user input cannot inject commands into the root crontab or generated forwarder scripts.
%is rejected in values that end up in cron lines (cron treats it as a newline). - Alert/post-action shell commands run as root: commands you configure for alerts and post-backup/cron actions execute as root via cron, by design. Only enter commands you trust — they have the same power as anything else you run with sudo.
- Outbound webhook/URL risk: Features that
curla URL or POST to a webhook can leak metadata (timestamps, service names, notification text). Only use endpoints you trust, and prefer HTTPS. - Use at your own risk: You are responsible for reviewing the code and deciding whether to run it in your environment.
Recommended best practices:
- Review the script content before running it.
- Test on a non-critical system first.
Install
SSH into your StartOS server and run:
curl -fsSL https://raw.githubusercontent.com/JesseMarkowitz/admintools-startos/refs/heads/main/startos-admin.sh -o startos-admin.sh && chmod +x startos-admin.sh && ./startos-admin.shThis will download the script from github, set it to executable and run it the first time. On first run it sees it is not installed yet and asks what to do:
- Install it — copies the script to
/usr/local/bin/startos-admin. The server restarts once. - Load a saved configuration — goes straight to Load (see 11. Save / Load Configuration): copy your saved file to the server, enter its passphrase, and everything comes back in one restart, the script included. Use this after a reflash, or after a StartOS update removed what the tool had installed.
- Not now — opens the menu without installing.
Once it is installed, each launch checks GitHub for a newer version and offers to install it. Downloaded updates are signature-verified against the public key embedded in the script before they are installed (see Update integrity verification above).
After the persistent install, run:
startos-adminfrom anywhere on the system.
Command-line usage
Besides the interactive menu, startos-admin can be used non-interactively:
startos-admin --version Print version and exit
startos-admin --help Usage summary
startos-admin --no-update-check Skip the startup update check this launch
startos-admin --update Check for a signed update (does NOT install)
startos-admin --update --yes Install a verified update (SERVER RESTARTS)
Show (read-only):
startos-admin status Server status (the menu's header lines)
startos-admin server-info System data → Server Info
startos-admin network System data → Network
startos-admin services System data → Service Status
startos-admin service <id> System data → Service Detail, for one service
startos-admin domains [svc] Every domain, with a DNS check (tab-separated)
startos-admin domains --names Just the domain names, one per line
startos-admin interfaces [svc] Service interface URLs (tab-separated)
startos-admin disk Disk usage by service
startos-admin memory Memory usage by service
startos-admin cron list The root crontab
startos-admin forwarders list Installed notification forwarders
startos-admin forwarders log <name> [lines]
startos-admin alerts list Installed alerts, each with its id
startos-admin alerts log <id> [lines]
startos-admin staged list Staged changes, numbered
startos-admin debug Debug mode: on or off
Change:
startos-admin notify [--service <id>] <info|success|warning|error> <title> <message>
startos-admin debug on|off Debug mode (until the next restart)
startos-admin staged drop <n>[,<n>...]
startos-admin staged clear
startos-admin alerts rebuild Stage the rebuild of alerts made by an older startos-admin
startos-admin alerts rebuild --apply --yes ...and apply it now (SERVER RESTARTS)
startos-admin staged apply --yes Apply all staged changes (SERVER RESTARTS)
Exit codes: 0 done · 1 failed · 2 usage error. --update also uses 10 update available (not installed) and 3 signature verification failure; staged apply without --yes lists the changes and exits 10. Updates installed with --update --yes are signature-verified first and include any staged changes in the same restart. Nothing on the command line restarts the server without --yes.
Output is plain text without color codes when piped, so it suits monitoring scripts, e.g. startos-admin interfaces vaultwarden | grep StartTunnel. Logs print their last 50 lines unless you give a count.
The interfaces columns are service, interface name, type, network, url, active|inactive, kind (ipv4, ipv6, mdns, public-domain or private-domain; added in v74, so scripts that read the first six columns keep working).
The domains columns are domain, service (startos for the web interface's own domains), interface, url, access (public/private), gateway, cert, state (active/inactive), dns (ok, elsewhere, missing or unchecked), resolved (the A records found), expected, resolver. There is one row per domain and interface URL; startos-admin domains | awk -F'\t' '$9 != "ok"' lists the problems.
The commands that change things (creating backup schedules, forwarders, alerts and cron jobs, Save / Load) are menu-only.
Persistence model
By default, StartOS does not persist changes across reboots. This lets users easily recover from almost all issues by rebooting the server and the base StartOS code will execute cleanly.
There are times when it is helpful to have your changes persist across reboots. This can be done by entering chroot edit mode with sudo /usr/lib/startos/scripts/chroot-and-upgrade. Changes made in this mode are preserved. When you exit this mode your StartOS server will automatically reboot. (The StartOS 0.4 docs do not currently cover this mode; an older 0.3.5.x guide shows it in use: https://docs.start9.com/0.3.5.x/misc-guides/ssh-tor.html.)
startos-admin has the capability built in to make changes persistent using the above approach.
What may be made persistent
Main script (optional persistent install):
- Installed to:
/usr/local/bin/startos-admin - After installation, this can be executed by running:
startos-admin
Cron jobs (created by scheduling actions):
- Backup schedules
- Stay-alive URL checks
- Notification forwarder poll schedules
Backup passwords (created by Schedule Backups):
- Stored root-only at
/root/.startos-admin/backup-pass-<target>(mode 600, persistent via chroot)
Alert monitors (created by Alerts):
- Monitor executables are installed in
/usr/local/bin/(persistent via chroot) - Alert state and log files are volatile — lost on reboot; an ongoing condition re-alerts once after a reboot
Notification Forwarders
- Forwarding executables are installed in
/usr/local/bin/(persistent via chroot) - Each forwarder maintains a state file between cron runs within a boot session
- State files are volatile: they are lost on reboot. The forwarder silently catches up on the first post-boot run; notifications during downtime are not forwarded.
- Log files are similarly volatile and reset each boot.
Mandatory reboots After making a change that will be persistent startos-admin will confirm you want to do this, then prompt again - reminding you that this will restart your StartOS server.
Staged changes (one reboot for many changes) Instead of applying immediately, any change can be staged. Staged changes queue up (root-only file, not yet active) and are applied together with a single restart from the Staged changes menu. The queue survives exiting the script but is lost if the server reboots before you apply.
The top of the main menu shows a short server status, the same facts the SSH login banner prints: hostname, StartOS version, uptime, NTP sync, services running out of installed, data drive used/total, memory used/total, and the last backup time (server time, with how long ago). It is refreshed each time you return to the main menu (at most every 30 seconds). While StartOS is starting up it says so instead.
The script presents an interactive menu with the following options, grouped into Display, Create, Manage, and Other. Changes made by Create/Manage actions can be applied immediately (one restart each) or staged and applied together (see Staged Changes).
1. Display Disk Used by Services
Displays disk usage using shell command 'du'
Displays:
- Total disk capacity
- Used space
- Available space
- Per-service disk usage breakdown
Use cases:
- Services consuming unexpected storage
- Backup growth over time
- Disk pressure before failures occur
2. Display System Data
Reads the full system database via start-cli db dump and presents it through several focused views.
Checks start-cli state first: while StartOS is initializing it serves a reduced API with no db.* methods, so a dump there fails with Method not found. The menu reports that the server is still starting up rather than surfacing the raw RPC error.
Sub-options:
1) Server Info — hostname, StartOS version, architecture, platform, last backup time. Architecture and platform come from start-cli server device-info; as of StartOS 0.4.0.1 they are no longer carried in the database dump.
2) Network — addresses, WiFi status, gateways (with LAN/WAN IPs), and DNS servers. Addresses are read per binding from serverInfo.network.host.bindings. Tor onion addresses are not listed: as of StartOS 0.4.0 Tor is a service the user installs and enables per interface, so there is no server-wide onion list in the database.
3) Service Status — desired state and health-check results for every installed service.
4) Service Detail — deep view of a single service: status, started time, last backup, registry, health checks, and dependencies. Last backup is the service's last successful backup to any target; StartOS records it from 0.4.0.3 on.
5) Service Interfaces — displays all externally reachable URLs for one or more services. Select individual services (comma-separated) or all at once.
6) Domains — every domain on the server in one list, so you don't have to open each service's interfaces in the web UI. It covers public and private domains on every service, plus the StartOS web interface's own. Each domain shows its access (public or private), its gateway, and every interface that uses it with the URL, the certificate (as the web UI names it: Let's Encrypt, Root CA, Self signed) and whether the address is switched on. A domain added to a host but used by no interface is still listed.
Every domain's DNS is checked each time:
- Public domains are looked up in public DNS (Cloudflare's 1.1.1.1, then Quad9's 9.9.9.9, then the server's own resolver if neither answers) and should resolve to the public IP StartOS records for their gateway. DNS ✓ means it does; points to X, not Y means the name resolves somewhere else (expected when a proxy or CDN sits in front of it); no A record means the name doesn't resolve at all.
- Private domains are answered by StartOS's own DNS server, on the gateway the domain is assigned to, and only for devices that use this server as their DNS server. The check asks that DNS server directly.
- The lookups ask for IPv4 (A) records only. The domain names are sent to the public resolver; they are public names already.
For each interface, shows:
- Interface type (
ui,api,p2p) - Interface name
- Network — the gateway's display name, matching the web UI (e.g.
Wired connection 1,StartTunnel) - Full URL with correct scheme and port
Interfaces are read from packageData.<pkg>.hosts.<host>.bindings.<port>.interfaces, where StartOS 0.4.0 moved them; the addresses shown are the enclosing binding's addresses.available.
Filtering:
- Excludes loopback (
lo) and internal bridge (lxcbr0) gateways - Excludes link-local IPv6 (
fe80::) addresses - Excludes bindings the service has disabled
- Wraps IPv6 addresses in brackets
- Prefers SSL when available; falls back to plain scheme or
tcp:///ssl://for interfaces without an explicit scheme (e.g. peer, ZeroMQ) - Omits the port when it is the scheme default (
:443for https,:80for http)
Addresses switched off in the web UI are still listed, dimmed and marked (off). This mirrors the UI's rule: a public IP:port is off unless it appears in the binding's addresses.enabled; a private IP or a domain is on unless it appears in addresses.disabled.
Use cases:
- Quickly find the URL for any service interface
- Verify which addresses are reachable on each network
- Input for automated testing or monitoring
3. Display Memory Used by Services
Displays memory usage using start-cli package stats
Displays:
- Per-service memory usage
- Percentage of total memory consumed by each service
Use cases:
- Diagnosing performance issues
- Identifying memory-heavy services
- Capacity planning
4. Create a StartOS Notification
Creates a one-time notification using StartOS command line interface start-cli.
This notification appears in the StartOS UI under the standard notification panel.
You may specify:
- Service name (optional)
- Priority level:
info,success,warning, orerror - Title
- Message
Use cases:
- Manual status reporting
- Custom system alerts
- Testing notification forwarders
5. Create a Backup Schedule
Creates a cron entry that triggers StartOS backups on a defined schedule using StartOS command line interface start-cli and cron. This requires the backup target(s) be configured (and preferably tested) in advance — on StartOS 0.4.3 and newer, in System → Backups, which is also where drives are added; the wizard lists only targets added there. For a full walkthrough, see Automating StartOS Backups.
Options:
- Add a new backup schedule
- Edit an existing backup schedule — change its target, services, schedule, password, or post-backup action
Configuration options:
- Backup target
- StartOS primary password (entered at a hidden prompt)
- Services (individual selection or all)
- Schedule — daily at 00:00, daily at 03:00, weekly on Sunday at 00:00, or a custom cron expression. Times are the server's clock, which on StartOS is UTC, not your local time; the wizard shows the server's current time. This applies to every schedule the tool installs (cron jobs, forwarders, alerts).
- Post-backup actions:
- Optional shell command — enter the full command, e.g.:
curl -d "Backup to CIFs-0 for Nextcloud and Vaultwarden started" https://ntfy.sh/StartOS-adjective-noun-Alerts - Optional StartOS standard UI notification
- Optional shell command — enter the full command, e.g.:
Your StartOS primary password is saved to a root-only file (/root/.startos-admin/backup-pass-<target>, mode 600) that the cron job reads at backup time — it does not appear in the crontab. If you change your StartOS password, edit the schedule and enter the new one. When a schedule is deleted or moved to another target, its password file is deleted at the next restart the tool makes, once no cron entry (active or commented out) refers to it. v72 and older left these files behind; v73 removes them the first time it applies a change.
A schedule that backs up only some services passes each one to start-cli as its own --package-ids flag. Versions before v70 joined them with commas instead (--package-ids a,b), which start-cli rejects, so a schedule with two or more selected services never ran — silently, since cron discards the error. Edit an existing backup schedule marks those entries; pick one and save it again to fix it.
Physical drives (USB etc.) — on StartOS 0.4.3 and newer, a drive added in System → Backups gets a permanent id (32 letters and digits), which StartOS ties to the drive's filesystem UUID; schedules use that id. Before 0.4.3, StartOS listed drives by device name (disk-/dev/sdb1), and device names change when drives are re-plugged or the server reboots — the same name can then point at a different drive. So on those versions a drive is saved by its filesystem UUID, shown as uuid-<UUID>, and the cron job looks it up by UUID each time it runs; if the drive is not connected, the backup fails rather than writing to another disk. A drive with no filesystem UUID cannot be scheduled.
StartOS 0.4.3 rejects the disk-/dev/… names those uuid-<UUID> schedules pass. After updating to 0.4.3, add each such drive in System → Backups (a drive that already holds backups keeps them). At launch, startos-admin then lists the schedules it can switch to the drive's id and does it in one restart, along with the password file; it also lists any drive still to be added. Loading a configuration saved on an older StartOS does the same switch for drives that are already added.
Note: StartOS 0.4.2 and older generate a notification when a backup completes; combining a kickoff notification with it shows how long backups take. StartOS 0.4.3 and newer record each backup in System → Backups → History instead and send no notification — add a Backup succeeded and a Backup failed alert (10. Alerts) to be told.
6. Create a Stay-Alive Curl
Creates a cron job that periodically uses curl to perform a HTTP request to a specified URL.
Configuration options:
- URL to send to
- Schedule (cron syntax)
Use cases:
- Monitoring services such as healthchecks.io
- Dead-man switch alerting systems
If your server goes offline (hardware failure, ISP outage, power loss), it cannot self-report. An external service can detect missed check-ins and alert you.
7. Manage Cron Jobs
Displays entire crontab file including comments with all root level cron jobs configured on the system. Gives options to delete, disable, or re-enable one or more jobs, as well as an option to add a job.
Options:
- View / edit existing cron entries:
- Delete — remove the job
- Disable — comment the job out, keeping it in the crontab
- Enable — uncomment a disabled job
- Add new entry (allows specification of schedule, command and post command notifications)
Post command notifications can be StartOS notifications or any shell command (e.g., curl with parameters to NTFY or a webhook).
There are tools online to assist with interpreting the cron scheduling - such as: crontab.guru.
Recommendation: only keep jobs that are actively required.
Use cases:
-
Schedule automated reminders
-
Schedule other recurring activities
NOTE: For scheduling backups and heartbeats specific actions are available, see above.
8. Manage Notification Forwarders
Creates persistent forwarders that forward StartOS notifications to external systems. Each forwarder periodically runs start-cli notification list, filters by level and/or keyword, and performs an HTTP request to forward matching entries.
Log files: /usr/local/share/startos-admin/startos-notif-poller-<name>.log
State files: /usr/local/share/startos-admin/startos-admin-poller-state-<name>
Multiple forwarders may be installed simultaneously (e.g., one for all warnings, one for backup-related errors only).
Limitations
- State is volatile: State and log files are stored in StartOS's runtime layer and are lost on each reboot. On first run after each reboot, the forwarder silently re-seeds its state from the current notification list.
- Notifications during downtime are not forwarded: If a notification occurs while the server is offline or rebooting, it will not be forwarded. Only notifications that arrive after the first post-boot cron run will be sent.
Options:
- Install a new forwarder
- Edit an existing forwarder
- List installed forwarders
- Remove a forwarder
- View forwarder log
- Manage forwarder state — for a chosen forwarder, either delete its state file (the next run silently catches up, forwarding nothing old) or set it to the newest notification (skip everything existing, forward only new ones)
Configuration options when installing / editing a forwarder:
- Name of Forwarder
- URL to send to
- Notification Level Filter
- Notification Keyword Filter
- Schedule (cron syntax)
Message format
Forwarded messages are sent as plain text:
2026.02.25 10:15:00 [Warning] btcpayserver | Backup Complete — Your backup completed, but some package(s) failed9. Staged Changes
Every change this tool makes (cron jobs, backup schedules, forwarders, alerts) requires a server restart to become persistent. Staging lets you queue several changes and apply them all with one restart.
At the end of each change wizard you choose Apply now (restart immediately — any staged changes are included in the same restart) or Stage for later (add to the queue, no restart yet).
From this menu you can:
- View the queue (each entry shows what it does and when it was staged)
- Apply all staged changes — one restart activates everything
- Delete staged change(s) — safe, they were never applied
Important: staged changes are NOT active until applied. Views (cron list, forwarder list) show only what is currently active. The queue survives exiting the script, but is lost if the server reboots before you apply.
The queue is stored root-only at /root/.startos-admin/staged-changes (it can contain backup-password material).
10. Alerts
Monitors that run on a cron schedule and alert you via a shell command (e.g. webhook), a StartOS notification, or both.
Options:
- Add an alert
- Edit an alert
- List installed alerts (with details)
- Remove alert(s)
- View alert log
Alert types:
- Disk usage alert — fires when disk usage reaches your percent threshold.
- Backup staleness alert — fires when any service has not been backed up within your day threshold. Services that have never been backed up count as stale; you can exclude services that are intentionally not backed up. One message lists all stale services, e.g.
Backup staleness: 2 service(s) exceed 7 day(s): nextcloud (9 days), vaultwarden (never). It reads each service's last successful backup time, to any target, from the StartOS database (packageData.<id>.lastBackup, recorded from StartOS 0.4.0.3 on), so it needs no backup password. Optionally it can also watch one backup target and alert when that target has not received a backup within the threshold (read fromstart-cli backup target list, also without a password) — useful when you back up to more than one place and want to know if one of them stops, e.g....; backup target cifs-0 last received a backup 9 days ago. Messages name the target, e.g.backup target cifs-0 (WinMini Daily) …. On StartOS 0.4.3 and newer the target is one added in System → Backups; before 0.4.3 a physical drive is stored by filesystem UUID (uuid-<UUID>), as for backup schedules, and is found under whatever device name it has that day. An alert watching such a drive keeps working after the update to 0.4.3 once the drive is added in System → Backups. A watched target that is not connected, can't be reached, or (on 0.4.3) hasn't been added or was removed counts as a failed check (see below); the per-service part still runs. Alerts made by v71 and older passed your backup password tobackup target info, which StartOS 0.4.1 no longer accepts; v72 offers to rebuild them at launch. - Backup succeeded alert and Backup failed alert (StartOS 0.4.3 and newer) — one notification for each finished backup, read from the backup history StartOS keeps in System → Backups → History. StartOS 0.4.3 stopped notifying you about backups, so these replace those notifications. The succeeded alert says where, when and how long, e.g.
Backup to WinMini Daily finished 2026-11-22 04:31 UTC after 31m: 19 service(s) backed up.The failed alert reports a backup that stopped with an error, or that finished with any service or shared volume reporting an error, with the messages, e.g.Backup to WinMini Weekly finished 2026-11-22 04:12 UTC with errors: bitcoind: No space left on device (os error 28). Default levels: info for succeeded, error for failed. Checked every 5, 15 or 30 minutes. A backup that hangs and never finishes produces no history entry, so neither alert fires — a Backup staleness alert catches that. Run ids already reported are kept in a volatile state file: after a restart, runs that finished more than 30 minutes before it count as already reported, so a restart within half an hour of a backup finishing can repeat its notification once. - Service health watchdog — fires when a service that should be running has failing health checks or is not running, only after the problem persists across two consecutive checks (avoids noise from restarts and updates).
- Drive health alert — fires when an NVMe drive reports trouble in its SMART health log: any critical warning from the drive itself (reliability degraded, read-only mode, temperature out of safe range, spare below threshold), spare capacity below the drive's own threshold, wear (percentage of rated endurance used) at or past your percent threshold, or media errors appearing or increasing. This is the early warning the StartOS UI does not provide — it shows disk usage and temperature, but nothing warns you a drive is wearing out or failing. Reads the SMART log directly from the kernel via a built-in helper (no extra packages installed on your server); the setup wizard shows your drives' current readings. NVMe drives only — SATA/USB drives are not monitored. All drives are checked by one alert; the message names the affected drive, e.g.
Drive health: Samsung SSD 970 EVO Plus 2TB (/dev/nvme0): 91% of rated endurance used (alert threshold 90%).
Shell command contract: the alert text is provided in the $MSG environment variable — e.g. curl -d "$MSG" https://ntfy.sh/Your-Topic. Commands run as root via cron (same trust level as your cron jobs).
Re-alert policy (all but the backup succeeded/failed alerts, which report each backup once): alert on first detection, immediately when the list of affected services changes, and at most one reminder per 24 hours while the condition persists. No recovery (all-clear) message is sent. Alert state is volatile — after a reboot, an ongoing condition re-alerts once.
Startup skip: the monitors that read from StartOS (backup staleness, backup succeeded/failed, service health) check start-cli state first and skip the run while StartOS is initializing, logging skipped — StartOS is still starting up. Without this a reboot produces a db dump error in the log on every scheduled run until the server finishes coming up, since the initializing server serves no db.* methods.
When a check can't run: an alert that can't do its check (StartOS unreachable or in diagnostic mode, db dump failing, an NVMe drive that won't answer, a watched backup target that is not connected) logs the error and counts it. After 3 failed runs in a row it sends one notification through its usual route, e.g. Backup Staleness Alert [daily]: the check has failed 3 times in a row, so this alert may miss problems until it is fixed. Last error: …, then stays quiet until a run succeeds, which resets the count. A server that is still starting up doesn't count. The List view shows an alert whose check is currently failing. The count is volatile, like alert state.
Rebuilding after an update: generated alert scripts carry a format number. When a new startos-admin version changes how alerts work, it lists the older alerts at launch and offers to rebuild them with their current settings in one restart (or stage it). Loading a configuration saved by an older version rebuilds its alerts the same way.
Named instances: you can install several alerts of the same type, each with its own name, threshold, notification route, and schedule — e.g. disk [warn50] sending an ntfy info at 50% plus disk [crit85] raising a StartOS error at 85%, or two backup staleness alerts watching different targets. Instances are fully independent: with disk at 87%, both of those example alerts are in alert state, each with its own daily reminder. Re-running an alert's wizard updates it; alerts installed before naming existed are migrated to a named instance the first time you edit them. Alerts are included in Save / Load configuration.
Files: scripts at /usr/local/bin/startos-monitor-<type>-<name>; state and logs (volatile) under /usr/local/share/startos-admin/.
11. Save / Load Configuration
Saves your installed cron jobs, notification forwarders, backup password files and alerts as a single AES-256 encrypted configuration file, and can load them back after an OS upgrade or reflash.
Save stores:
- All root cron entries
- All notification forwarder scripts (including embedded webhook URLs and schedules)
- All scheduled-backup password files (root-only secrets, carried inside the encrypted file)
- All alert monitor scripts (disk usage, backup staleness, backup succeeded/failed, service health, drive health)
Load reinstalls everything in a single reboot: cron jobs, notification forwarder scripts, backup password files, alert monitor scripts, and the startos-admin script itself (downloaded fresh from GitHub and signature-verified before install — if verification fails, the rest of the load proceeds but the script is not reinstalled).
Encryption: The configuration file is encrypted with AES-256-CBC (OpenSSL, PBKDF2 key derivation) and protected by an HMAC-SHA256 integrity check that detects tampering or corruption before any load begins. The passphrase you set when saving is required to load. There is no passphrase recovery option — a forgotten passphrase makes the file permanently unreadable. Files saved by versions ≤ 56 (no integrity check) can still be loaded; a warning is shown.
Transfer workflow:
After saving, the encrypted file is written to /tmp/startos-config-backup.enc and the full contents are printed to the terminal. An scp command is shown to pull the file off the server from your local machine:
scp start9@<server-ip>:/tmp/startos-config-backup.enc ./
Before loading, an scp command is shown to push the file back onto a freshly reflashed server:
scp ./startos-config-backup.enc start9@<server-ip>:/tmp/
Post-reflash load workflow:
- SSH into the fresh server
- Download
startos-admin.sh(see Install section above) - Run it and choose 2) Load a saved configuration (or, from the menu, 11) Save / Load configuration → 2) Load configuration)
- Follow the prompts; server restarts once with everything loaded, startos-admin included
Load installs the latest published startos-admin, signature-verified. If the server can't download it, Load installs the copy you are running instead.
12. Documentation
Built-in documentation for every menu action, in the same order as the main menu, plus pages on command-line usage and troubleshooting.
13. Debug Mode
Toggles debug mode on or off.
When enabled, shows extra output during operations and enables verbose logging for notification pollers.
Debug state persists within a boot session via a flag file. It is reset on reboot.
MIT. See LICENSE.