The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::Wubot::Plugin::PathLastUpdate - monitor the last modified time on a path

VERSION

version 0.3.8

SYNOPSIS

  ~/wubot/config/plugins/PathLastUpdate/scifri.yaml

  ---
  path: /path/to/file
  age: 1w
  delay: 15m

DESCRIPTION

Monitor the last modified time on a file or directory and send a notification if the last modified time is older than a configured threshold.

If the path is not found, a message will be sent containing the subject:

  path not found: {$path}

If the last modified date of the target path is older than the specified age, then a message will be sent containing the subject:

  path has not been updated in {$time}

HINTS

I developed this monitor after being repeatedly aggravated that iTunes will periodically stop updating a podcast if you do not regularly mark items in the podcast as being seen. This can be especially annoying when podcasts don't always carry all the archived items! Here is an example config file I use to monitor the sci-fri directory to let me know when the feed is not being updated:

  ---
  path: /Users/wu/Music/iTunes/iTunes Media/Podcasts/Science Friday Audio Podcast
  age: 1w1d
  delay: 15m

SUBROUTINES/METHODS

check( $inputs )

The standard monitor check() method.