Where Does Monit Store Configs and State?
Where Monit keeps configs and state on Linux servers. Full paths are listed below. More below. See below.
Last updated
Monit is service watching with file configs. Your controls live in monitrc files. State persists in its state file across restarts.
Same configs mean same watching on any machine with Monit installed. Exact file names are stable across late releases. Keep full backups before upgrading. For moves, copy the config files. Partial copies miss mail server settings that alerts depend on. Screenshots of settings help when support asks for reproduction steps later. Check the in app storage readout when sizes look wrong on different releases.
Where Monit Service stores this, by platform
/etc/monitrc (controls, state beside it)
Controls live in monitrc files with state beside them. Copy configs for moves. Match releases before importing old syntax. Alerts need mail settings too.
Frequently asked questions
How do I move Monit configs to a new server?
Copy the Monit config files to the new server over USB, since controls live there. State rebuilds from checks after restart. Match the release first, since syntax shifts between versions and refuses old files.
Does Monit back up service state?
Yes, in the state file per service with uptime attached. The host holds a working copy plus log cache. Views rebuild after restart. Export configs from files for records, since the state file alone is runtime, not backup.
Notice an outdated path? Let us know.