site1.erralert.com

← all categories

File & folder monitoring

Watch specific files (modified time, existence) or folder contents (count, total size). Useful for backup verification, log-rotation health, and "did the export run?" pipelines.

powershell

Folder contents (count + size)

Counts files in a folder and reports total size, plus the size of the largest file. Useful for catching backup-folder bloat or pipelines that stopped pruning old data.

powershell

Multiple files + drive health

Reports the age of several named files at once plus the OS drive's free percentage. Pair with multiple capture.value checks — one per JSON path.

powershell

Newest backup file freshness

Finds the newest file matching a pattern (e.g. *.bak) in a folder and reports its age in seconds. Common pattern for 'did last night's SQL backup actually run?'.

powershell

Single file freshness

Posts the age (in seconds) of one file. Alerts if it's missing or hasn't been updated recently — handy for log files, generated reports, or backup .bak files.

powershell

SQL Server backup age (per database)

Queries msdb.dbo.backupset on a SQL Server instance and reports the age in seconds of each user database's most recent FULL backup. Plus the worst-age across all dbs for a single capture.value check that covers the whole instance.