NAME

Data::Apache::mod_status - get values from Apache mod_status page

SYNOPSIS

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;

DESCRIPTION

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.

See "mod_status-info" in script for command line script which can return this data in a different formats - xml|data-dumper|ecsv|yaml|json|rrd.

PROPERTIES

url

URL where the apache mod status can be found

xml_dom

XML::LibXML::Document of the mod_info XML document. Loaded by refresh().

info

Data::Apache::mod_status::Info object

workers

Data::Apache::mod_status::Workers object

METHODS

new()

Object constructor.

refresh()

Fetches fresh mod_status page and stores xml in xml_dom.

_refresh_from_dom()

Called by refresh() to populate workers and info properties.

_fetch_mod_status_page()

Method that fetches mod_status page and returning it's content.

SEE ALSO

"rrd/" in examples folder for examples how to create, update and graph mod_status data using Data::Apache::mod_status and rrdtool.

DEBIAN

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

COPYRIGHT AND LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Jozef Kutej