REPORT_EVENT\&.CONF

Section: LIBREPORT MANUAL (5)
Updated: 06/28/2012
Index Return to Main Contents
 

NAME

report_event.conf - configuration file for libreport.  

DESCRIPTION

This configuration file specifies which programs should be run when the specified event occurs in problem directory lifetime.

It consists of directives and rules.

Directives start with a reserved word. Currently, there is only one directive, "include".

include FILE

This directive causes files which match FILE to be read and parsed as if they are inserted textually where this directive occurs. FILE can use shell pattern metacharacters (*,?,etc) to specify multiple files. Relative paths are interpreted relative to current file.

Rule starts with a line with non-space leading character. All subsequent lines which start with space or tab form one rule. Note that separating newline is retained.

Rules may be commented out with #. One # is sufficient to comment out even a multi-line rule (no need to comment out every line).

Rules specify which programs to run on the problem directory. Each rule may have conditions to be checked before the program is run.

Conditions have form VAR=VAL or VAL~=REGEX, where VAR is either word "EVENT" or a name of problem directory element to be checked (for example, "executable", "package", hostname" etc).

If all conditions match, the remaining part of the rule (the "program" part) is run in the shell. All shell language constructs are valid. All stdout and stderr output is captured and passed to ABRT and possibly to ABRTcqs frontends and shown to the user.

If the program terminates with nonzero exit code, the event processing is considered unsuccessful and is stopped. Last captured output line, if any, is considered to be the error message indicating the reason of the failure, and may be used by abrt as such.

If the program terminates successfully, next rule is read and processed. This process is repeated until the end of this file.  

EXAMPLES

EVENT=post-create analyzer=Python abrt-action-analyze-python

EVENT=post-create getent passwd "cat uid" | cut -d: -f1 >username  

SEE ALSO

abrtd(8)  

AUTHOR

Manual page written by Denys Vlasenko <m[blue]dvlasenk@redhat.comm[][1]>.  

NOTES

1.
dvlasenk@redhat.com
mailto:dvlasenk@redhat.com


 

Index

NAME
DESCRIPTION
EXAMPLES
SEE ALSO
AUTHOR
NOTES

This document was created by man2html, using the manual pages.
Time: 05:34:00 GMT, December 24, 2015