Apache::MONITOR - Implementation of the HTTP MONITOR method
This module implements a MONITOR HTTP method, which adds notifications to the World Wide Web.
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
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
Jan Algermissen, algermissen@acm.org
To install Apache::MONITOR, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::MONITOR
CPAN shell
perl -MCPAN -e shell install Apache::MONITOR
For more information on module installation, please visit the detailed CPAN module installation guide.