Wubot::Plugin::PathLastUpdate - monitor the last modified time on a path
version 0.1_10
~/wubot/config/plugins/PathLastUpdate/scifri.yaml --- path: /path/to/file age: 1w delay: 15m
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}
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
To install Wubot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Wubot
CPAN shell
perl -MCPAN -e shell install Wubot
For more information on module installation, please visit the detailed CPAN module installation guide.