Linux

Where Does Sensu Store Checks and Events?

Where self hosted Sensu keeps checks in database on Linux servers. Exact folders are covered below. More below.

Last updated

Sensu is monitoring with server storage. The database holds checks, handlers, and events. Agents cache results locally per run.

Same database means same monitoring. Exact paths vary by Docker versus package installs. Keep backups on schedule. One missing table restores checks without history. For moves, stop services first to avoid partial writes during copies. Check the in app storage readout when sizes look wrong on different releases. When in doubt, verify paths inside the app before trusting a remembered folder.

Where Sensu Monitoring stores this, by platform

Linux
/var/lib/sensu (database, paths vary by install)

Checks live in the server database with event history. Back up the database stopped. Match releases before restore. Agents cache locally.

Frequently asked questions

How do I migrate Sensu to a new server?

Back up the Sensu database plus config directory with services stopped, then install the same release on the new server before restore. Checks follow the database. Mixed releases can refuse old schemas, so match versions first.

Does Sensu back up event history?

Yes, in the server database per check with event history attached. The host holds a working copy plus agent cache. Views rebuild after restore. Export JSON checks from settings for records, since the data directory alone is working state.

Notice an outdated path? Let us know.