NAME

Monitoring::Sneck::Checks::mtime - checks file mtimes against a time

VERSION

Version 0.0.1

SYNOPSIS

old_nginx|perl:mtime -e le -m 2023-06-22T00:00 -f /usr/local/sbin/nginx
old_app|perl:mtime -m 2024-01-01 -f /usr/local/bin/app -f /usr/local/lib/libapp.so

DESCRIPTION

A file whose mtime compares true against --mtime is CRITICAL, so with le, the default, a file from --mtime or before is, for finding binaries older than a known good build. A file that is not there is UNKNOWN.

OPTIONS

- -m, --mtime :: The time, in any format Time::Piece::Guess knows, UTC if it has no zone. Required.

- -e, --equality :: lt, le, ge, or gt. Default :: le

- -f, --file :: A file. May be given more than once. Required.

METHODS

check

Does the check.