istro

Use

Inbox

What waits for you, what Bistro did by itself, and how alerts reach your phone.

The Inbox collects everything that needs a human: approvals, warnings and questions. Bistro keeps the list short and only adds what is true now.

#The Inbox Page

Open Inbox in the sidebar. The weekly review sits on top. Below it, each item has a level: Urgent, Warning, Question or Notice.

An item can carry a fix. Approve runs that fix and closes the item. Bistro only runs fixes from a fixed list.

FixWhat it does
Restart a serviceRestarts a failed service.
Clean junk filesRemoves junk, caches and old logs.
Install the updatesInstalls every pending update.
RebootRestarts the machine.

You can also dismiss an item, or snooze it for a number of hours.

bistro inbox                       # list what waits
bistro inbox approve ID            # run the fix, then close the item
bistro inbox approve-safe          # run every fix marked safe
bistro inbox dismiss ID
bistro inbox snooze ID 24          # hide for 24 hours

#Suggestions

Suggestions are things Bistro thinks you should do. They show as "Needs You" on the Dashboard. A suggestion only proposes. Nothing runs until you accept.

bistro suggest                     # list open suggestions
bistro suggest accept ID
bistro suggest dismiss ID          # never proposed again
bistro suggest sweep               # look at the machine now

The sweep proposes a suggestion only when one of these is true:

  • A service has failed.
  • A disk is over 85 percent full.
  • Security updates are waiting.
  • An app has a newer image.
  • The last backup snapshot is over 7 days old.
  • A Caddy certificate has 14 days or less left.

Bistro keeps at most 6 open suggestions. Accepting runs the stored command under the assistant's permissions, so the undo journal applies. See Packages.

#What Bistro Did by Itself

The bell in the top bar lists events: alarms, cleanups and restarts. The same list is on the command line.

bistro events 20                   # the last 20 events
bistro review                      # the weekly review

The review says what happened, what Bistro fixed alone, and the few decisions left. A weekly timer sends it to your alert channels. See self-management for the autopilot rules.

#Alerts on Your Phone

Set up alert channels on the Settings page. Bistro can send to ntfy, Gotify, a webhook (Discord, Slack, Mattermost, Matrix), email and browser push.

bistro notify                      # channels, quiet hours, queued alerts
bistro notify set NTFY_URL https://ntfy.sh/my-topic
bistro notify set QUIET_START 22:00
bistro notify set QUIET_END 07:00
bistro notify test                 # send a test to every channel

Other keys are GOTIFY_URL, GOTIFY_TOKEN, WEBHOOK_URL, EMAIL_TO, DIGEST and PUSH.

  • Info and warning alerts wait for an hourly digest when DIGEST is yes. Urgent alerts always go out at once.
  • Quiet hours hold everything except real outages.
  • bistro notify flush sends the queue now.

#Email and Push

Email alerts go through a send-only relay. Set the relay once, then set EMAIL_TO.

bistro mail relay set smtp.example.com 587 user@example.com
bistro mail relay show
bistro notify set EMAIL_TO me@example.com

For mail on your own domain, bistro mail setup DOMAIN makes the DKIM key and the DNS records. bistro mail check DOMAIN tells you which records are missing.

Browser push needs the dashboard open or installed in the browser. Turn it on with:

bistro push init                   # make the key
bistro notify set PUSH yes

#Notes and Plain Explanations

Notes and facts tell the assistant about your server. See Ask Bistro.

bistro notes append "The 4 TB disk holds movies"
bistro remember "disk sdb: the 4 TB disk is movies"
bistro facts                       # numbered list
bistro forget 2

Bistro can also explain a log, a file or a config in plain words. It hides passwords and keys before anything leaves the machine.

bistro explain log nginx.service
bistro explain config /etc/ssh/sshd_config --offline