Feature: history

What Happened to Each Machine, Kept for 90 Days

The activity log says who did what. The history says what happened to the machines: each state a tile went through, every power button pressed from the wall, every change of power seen, and the readings a machine reports.

Under the Picture

Last seen, uptime, the last day

Enlarged, a tile says when the machine was last seen and how much of this week it was online, and draws the last day of its temperatures and fans where it reports them.

  • Of watched timeOnline 99.2 % this week counts only the time the wall was watching; time it was stopped counts as neither online nor down
  • Said plainlywhere more than a tenth of the week was not watched, the line says how much was
  • Done to itbeside the graphs, an admin sees the last three things done to the machine
History
A server enlarged, with when it was last seen, its share online this week, and the last day of its temperatures and fans.
A server enlarged, with when it was last seen, its share online this week, and the last day of its temperatures and fans.

What It Keeps

States

A row when a tile's state changes, not at every look, and when the machine was last heard from.

Power events

Every power button pressed from the wall, at the moment it was pressed, and every change of power state the wall noticed.

Readings

A KVM's own temperature, every temperature and fan of a server: a sample a minute, sooner when a reading moves by a few degrees.

Nothing private

A row is a device's id, a time, a state, a reading or a button's name. No name, no address, no password, no text typed.

Kept, and How Much

How long
90 days and 200 MB by default, the oldest rows going first; both can be set, history_days from 1 to 3650 and history_mb from 10 to 100000.
How it looks
Every look anybody takes reaches it: a browser, the alerts, a collector. And qKVM looks once a minute by itself while it is unlocked, whether or not anybody has the wall open.
How much it grows
A server with forty readings writes about 2 MB a day; a KVM a few hundred kB.
Never in the way
Rows are written by a thread of their own. A file that cannot be read is moved aside, a fresh one is started, and the wall comes up either way.
Where it is
history.sqlite in the data folder, not sealed as the settings are. It is in no export; a backup takes it where With the history is ticked. A machine taken off the wall takes its history with it.
In the Desktop App
A qKVM server's machines show their history there too.

Read It From a Script

  1. Make a tokenSettings, Tokens: a viewer's is enough, for the machines it may see.
  2. Ask for a summaryFirst and last seen, seconds watched and online, and the share online.
  3. Or the rowsStates, power events or sensor samples, oldest first, up to 5000 a page.
  4. Or a seriesWith every=900, each sensor averaged per span, with its least and most.