Data::Apache::mod_status - get values from Apache mod_status page
use Data::Apache::mod_status; my $mod_status = Data::Apache::mod_status->new( 'url' => $url, )->refresh; my $info = $mod_status->info; my $workers = $mod_status->workers;
This module fetches page generated by Apache mod_status, scrapes it's content and returns values in a object properties so that the values can be processed further.
Apache mod_status
See "mod_status-info" in script for commandline script which can return this data in a different formats - xml|data-dumper|ecsv|yaml|json|rrd.
xml|data-dumper|ecsv|yaml|json|rrd
URL where the apache mod status can be found
XML::LibXML::Document of the mod_info XML document. Loaded by refresh().
mod_info
refresh()
Data::Apache::mod_status::Info object
Data::Apache::mod_status::Workers object
Object constructor.
Fetches fresh mod_status page and stores xml in xml_dom.
mod_status
xml_dom
Called by refresh() to populate workers and info properties.
workers
info
Method that fetches mod_status page and returning it's content.
"rrd/" in examples folder for examples how to create, update and graph mod_status data using Data::Apache::mod_status and rrdtool.
Build-Depends: debhelper (>= 5), libmodule-build-perl, libtest-differences-perl, libtest-exception-perl, libfile-slurp-perl, tidy Depends: ${perl:Depends}, ${misc:Depends}, libxml-libxslt-perl, libdatetime-format-strptime-perl, libmoose-perl, libwww-perl, libcarp-clan-perl, libxml-libxml-perl, libipc-run3-perl, libmoose-perl, tidy
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Jozef Kutej
To install Data::Apache::mod_status, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Apache::mod_status
CPAN shell
perl -MCPAN -e shell install Data::Apache::mod_status
For more information on module installation, please visit the detailed CPAN module installation guide.