Blame src/plugins/koops_event.conf

Packit Service 8a8a03
# Analyze
Packit Service 8a8a03
EVENT=post-create type=Kerneloops remote!=1
Packit Service 8a8a03
        # Honor dmesg_restrict -> bugzilla.redhat.com/1128400
Packit Service 8a8a03
        if [ "$(cat /proc/sys/kernel/dmesg_restrict)" == "0" ]; then
Packit Service 8a8a03
            # >> instead of > is due to bugzilla.redhat.com/854266
Packit Service 8a8a03
            # 'dmesg' file is required by check-oops-for-hw-error
Packit Service 8a8a03
            dmesg >>dmesg
Packit Service 8a8a03
            abrt-action-check-oops-for-hw-error
Packit Service 8a8a03
        fi
Packit Service 8a8a03
        {
Packit Service 8a8a03
        abrt-action-check-oops-for-alt-component || true
Packit Service 8a8a03
        } &&
Packit Service 8a8a03
        {
Packit Service 8a8a03
        # run abrt-action-analyze-oops only if check-hw-error didn't create the
Packit Service 8a8a03
        # required files
Packit Service 8a8a03
        if test ! -f uuid -a ! -f duphash; then
Packit Service 8a8a03
             abrt-action-analyze-oops || exit 1
Packit Service 8a8a03
        fi
Packit Service 8a8a03
        }
Packit Service 8a8a03
Packit Service 8a8a03
Packit Service 8a8a03
# If you want behavior similar to one provided by kerneloops daemon
Packit Service 8a8a03
# distributed by kerneloops.org - that is, if you want
Packit Service 8a8a03
# oopses to be reported automatically and immediately without
Packit Service 8a8a03
# user interaction, uncomment this line:
Packit Service 8a8a03
#EVENT=post-create type=Kerneloops
Packit Service 8a8a03
        reporter-kerneloops
Packit Service 8a8a03
Packit Service 8a8a03
# Report
Packit Service 8a8a03
#EVENT=report_Kerneloops type=Kerneloops
Packit Service 8a8a03
        reporter-kerneloops
Packit Service 8a8a03
Packit Service 8a8a03
EVENT=report_Bugzilla type=Kerneloops
Packit Service 8a8a03
        reporter-bugzilla -b \
Packit Service 8a8a03
                -F /etc/libreport/plugins/bugzilla_format_kernel.conf
Packit Service 8a8a03
Packit Service 8a8a03
# Send micro report
Packit Service 8a8a03
EVENT=report_uReport type=Kerneloops
Packit Service 8a8a03
        if [ ! -e mce ]; then
Packit Service 8a8a03
            /usr/libexec/abrt-action-ureport
Packit Service 8a8a03
        else
Packit Service 8a8a03
            echo "Not reportable, problem has hardware character (MCE)"
Packit Service 8a8a03
        fi
Packit Service 8a8a03
Packit Service 8a8a03
# Update ABRT database after successful report to bugzilla
Packit Service 8a8a03
EVENT=post_report type=Kerneloops
Packit Service 8a8a03
        reporter-ureport -A -B
Packit Service 8a8a03
Packit Service 8a8a03
# Automatic/simple GUI-based kernel oopses reporting will do this:
Packit Service 8a8a03
EVENT=report-gui type=Kerneloops mce!=non-fatal
Packit Service 8a8a03
        report-gtk -- "$DUMP_DIR"
Packit Service 8a8a03
Packit Service 8a8a03
EVENT=report-cli type=Kerneloops
Packit Service 8a8a03
        report-cli -- "$DUMP_DIR"
Packit Service 8a8a03
Packit Service 8a8a03
EVENT=report_systemd-journal type=Kerneloops
Packit Service 8a8a03
        reporter-systemd-journal --message-id 8ed36508c5a24d0ab2d633f330899e5f \
Packit Service 8a8a03
                                 -F /etc/libreport/plugins/catalog_koops_format.conf