NAME

xas-alert - send a XAS alert from the command line

SYNOPSIS

xas-alert "huston, there is a problem"

 options:
   --script       defines a script name
   --facility     defines a facility for the message
   --priority     defined a priority for the message
   --help         outputs simple help text
   --manual       outputs the procedures manual
   --version      outputs the apps version
   --debug        toogles debugging output
   --alerts       toogles alert notifications
   --log-file     name of the log file 
   --log-type     toggles the log type
   --log-facility changes the log facility

DESCRIPTION

This procedure will send an XAS alert from the command line. Useful when you want to send alerts from scripts.

OPTIONS AND ARGUMENTS

--script

Defines a script name. Defaults to 'xas-alert'.

--facility

Defines a facility for the message. Defaults to 'low'.

--priority

Defines a priority for the message. Defaults to 'systems'.

--help

Displays a simple help message.

--debug

Turns on debbuging.

--alerts

Togggles alert notification.

--log-type

Toggles the log type. Defaults to 'console'. Can be 'console', 'file', 'json' or 'syslog'.

--log-facility

Toggles the log facilty. Defaults to 'local6'. This follows syslog convention.

--log-file

Optional logfile. When specified the log type is set to 'file'.

--manual

The complete documentation.

--version

Prints out the apps version

EXIT CODES

 0 - success
 1 - failure

SEE ALSO

XAS

AUTHOR

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

COPYRIGHT AND LICENSE

Copyright (c) 2012-2015 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.