Skip to main content

Description

The file_check probe checks a file on the filesystem: existence, size, and age (modification time).

Config fields

FieldTypeRequiredDefaultDescription
typestringYesMust be "file_check"
filePathstringYesFile path to check
mustExistboolNotruetrue: file must exist → absent = down. false: absent file is up
minSizeBytesint64NoMinimum file size (bytes)
maxSizeBytesint64NoMaximum file size (bytes)
maxAgeSecondsint64NoMaximum file age (seconds since last modification)

Metrics

MetricTypeDescription
vms.file_check.statusstatusup or down

Example config

{
  "type": "file_check",
  "filePath": "/var/log/app/app.log",
  "mustExist": true,
  "maxAgeSeconds": 600
}