EVENT=post-create type=vmcore remote!=1
        (
        # If kdump machinery already extracted dmesg...
        if test -f vmcore-dmesg.txt; then
            # ...use that
            abrt-dump-oops -u $DUMP_DIR vmcore-dmesg.txt || exit $?
            #
            # Does "kernel" element exist?
            test -f kernel && exit 0
            #
            # Try creating it from vmcore-dmesg.txt:
            # MCE oopses don't have kernel version in them,
            # but it should be specified earlier in the log.
            k=`sed -n '/Linux version/ s/.*Linux version \([^ ]*\) .*/\1/p' vmcore-dmesg.txt | tail -n1`
            test "$k" != "" && printf "%s" "$k" >kernel
        else
            # No vmcore-dmesg.txt, do it the hard way:
            abrt-action-analyze-vmcore || exit $?
            #
            # Does "kernel" element exist?
            test -f kernel && exit 0
            #
            # Try creating it from dmesg_log (created by abrt-action-analyze-vmcore):
            test -f dmesg_log || exit 0
            k=`sed -n '/Linux version/ s/.*Linux version \([^ ]*\) .*/\1/p' dmesg_log | tail -n1`
            test "$k" != "" && printf "%s" "$k" >kernel
        fi
        )
        # Do not fail the event (->do not delete problem dir)
        # if check-oops-for-hw-error exits nonzero:
        { abrt-action-check-oops-for-hw-error || true; }
        { abrt-action-check-oops-for-alt-component || true; }

# analyze
EVENT=analyze_VMcore type=vmcore
        abrt-action-analyze-oops &&
        abrt-action-save-package-data

# If you want behavior similar to one provided by kerneloops daemon
# distributed by kerneloops.org - that is, if you want
# oopses to be reported automatically and immediately without
# user interaction, uncomment this line:
#EVENT=post-create type=vmcore
        reporter-kerneloops

# report
EVENT=report_Kerneloops type=vmcore
        reporter-kerneloops

EVENT=report_Bugzilla type=vmcore
        reporter-bugzilla -b \
                -F /etc/libreport/plugins/bugzilla_format_kernel.conf

# update ABRT database after successful report to bugzilla
EVENT=post_report type=vmcore
        reporter-ureport -A -B

# Send micro report
EVENT=report_uReport type=vmcore
        /usr/libexec/abrt-action-ureport

EVENT=report-gui type=vmcore
    report-gtk -- "$DUMP_DIR"

EVENT=report-cli type=vmcore
    report-cli -- "$DUMP_DIR"

EVENT=report_systemd-journal type=vmcore
    reporter-systemd-journal --message-id ebde29430d524b5fb043138098fd7e89 \
                             -F /etc/libreport/plugins/catalog_vmcore_format.conf
