NAME

Apache::MONITOR - Implementation of the HTTP MONITOR method

SYNOPSIS

DESCRIPTION

This module implements a MONITOR HTTP method, which adds notifications to the World Wide Web.

CONFIGURATION

httpd.conf:

 PerlSetVar MonitorDataDir /home/httpd/monitors
 PerlSetVar MonitorUrlPrefix http://myserver/monitors/

 PerlPostReadRequestHandler Apache::MONITOR
 PerlHeaderParserHandler Apache::MONITOR::hp_handler

 <Location /monitors/>
   SetHandler perl-script
   PerlHandler Apache::MONITOR::moo
 </Location>

crontab:

# check for changes every 30 minutes
0,30 * * * * perl -MApache::MONITOR -e NOTIFY /home/httpd/monitors &>/dev/null

COMMANDLINE TOOLS

Subscribe:

perl -MApache::MONITOR -e SUBSCRIBE http://www.mopo.de mailto:joe@the.org

Show all subscriptions:

perl -MApache::MONITOR -e SHOW /path/to/monitors

Check for changes and notify:

perl -MApache::MONITOR -e NOTIFY /path/to/monitors

EXPORT

AUTHOR

Jan Algermissen, algermissen@acm.org