File / Directory Change
Detect changes to important files and folders compared with a stored baseline.
The File / Directory Change check is lightweight file-integrity monitoring. On its first run it stores a signature of the files and folders you specify as a baseline, and from then on it reports any deviation from it. This lets you notice, for example, when someone changes a configuration file, a hosts file or the contents of a program folder. The check runs through the octoja agent directly on the device, on Windows, Linux, and macOS (x64 and Arm64 each), every 60 minutes by default.
Steps
- Go to Devices and open the device.
- Click the Checks tab → Add Check → File / Directory Change.
- Under Paths to watch, enter the files and folders the check should monitor.
- Click Add Check.
Alternatively, assign the check with a config package.
Settings
Paths are used exactly as entered; wildcards such as * are not evaluated.
What is compared
The signatures of all paths are combined into one overall signature and compared with the baseline.
Results
The check details list each path with a shortened signature or the note missing.
Acknowledge a change
A detected change stays reported until you accept the new state — the check does not update the baseline on its own.
- In the check configuration, enable Accept current state (reset baseline) and save.
- Wait for the next run. The check stores the current state as the new baseline and reports OK.
- Disable the option again.
Warning: While Accept current state (reset baseline) is enabled, every run overwrites the baseline and reports OK. The check detects no changes during that time.
Notes
- A change that is made and reverted between two runs goes unnoticed.
- The agent stores the baseline locally on the device, separately for each combination of path list and Include subdirectories. If you change the paths or this option, the next run creates a new baseline and reports OK.
- Subfolders the agent cannot access are silently skipped in the folder signature.
- For large files, the check reads the entire content on every run to calculate the hash.
Related articles
Was this helpful?
More in Storage & files
Mount Point Free SpaceCeph Cluster HealthCeph Node DaemonsCeph Storage & PerformanceStill need help? Ask the team