NAME

XAS::Apps::Collector::Process - This module will process alerts

SYNOPSIS

use XAS::Apps::Collector::Process;

my $app = XAS::Apps::Collector::Process->new(
    -throws => 'xas-collector',
);

exit $app->run();

DESCRIPTION

This module will process alerts from the message queue. It inherits from XAS::Lib::App::Services.

CONFIGURATION

This module reads a configuration file. The default is <XAS_ROOT>/etc/<$0>.ini, this can be overridden with the --cfgfile cli option. The configuration file has the following format:

[collector: alert]
queue = /queue/alert
packet-type = xas-alert
module = XAS::Messaging::Collector::Alert

This uses the standard .ini format. The entries mean the following:

[controller: xxxx] - The beginning of the stanza.
queue              - The message queue to listen on, defaults to '/queue/xas'.
packet-type        - The message type expected.
module             - The module that handles that message type.

OPTIONS

This modules provides these additonal cli options.

--host

This is the host that the message queue is on.

--port

This is the port that it listens on.

SEE ALSO

sbin/xas-collector
XAS

AUTHOR

Kevin L. Esteb, <kevin@kesteb.us>

COPYRIGHT AND LICENSE

Copyright (c) 2014 Kevin L. Esteb

This is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. For details, see the full text of the license at http://www.perlfoundation.org/artistic_license_2_0.