From 09b5c4b42e9c75c523f4dc3a2036c33dfb5f234b Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 10 May 2011 17:36:08 +0200 Subject: Add analyzer which collects /var/log/messages. Closes bz#565725 Signed-off-by: Denys Vlasenko --- src/plugins/ccpp_events.conf | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'src/plugins/ccpp_events.conf') diff --git a/src/plugins/ccpp_events.conf b/src/plugins/ccpp_events.conf index dc582486..ca9ac558 100644 --- a/src/plugins/ccpp_events.conf +++ b/src/plugins/ccpp_events.conf @@ -1,18 +1,26 @@ EVENT=post-create analyzer=CCpp - abrt-action-analyze-c && - abrt-action-list-dsos.py -m maps -o dsos + abrt-action-analyze-c && + abrt-action-list-dsos.py -m maps -o dsos + +EVENT=analyze_var_log_messages analyzer=CCpp + test -f /var/log/messages || { echo "No /var/log/messages"; exit 1; } + test -r /var/log/messages || { echo "Can't read /var/log/messages"; exit 1; } + executable=`cat executable` && + base_executable=${executable##*/} && + grep -e "$base_executable" /var/log/messages | tail -999 >var_log_messages && + echo "var_log_messages element saved" # TODO: can we still specify additional directories to search for debuginfos, # or was this ability lost with move to python installer? EVENT=analyze_LocalGDB analyzer=CCpp - abrt-action-analyze-core.py --core=coredump -o build_ids && - abrt-action-install-debuginfo --size_mb=4096 && - abrt-action-generate-backtrace && - abrt-action-analyze-backtrace + abrt-action-analyze-core.py --core=coredump -o build_ids && + abrt-action-install-debuginfo --size_mb=4096 && + abrt-action-generate-backtrace && + abrt-action-analyze-backtrace EVENT=analyze_RetraceServer analyzer=CCpp - abrt-retrace-client batch --dir "$DUMP_DIR" && - abrt-action-analyze-backtrace + abrt-retrace-client batch --dir "$DUMP_DIR" && + abrt-action-analyze-backtrace EVENT=report_Bugzilla analyzer=CCpp - abrt-action-bugzilla -c /etc/abrt/plugins/Bugzilla.conf + abrt-action-bugzilla -c /etc/abrt/plugins/Bugzilla.conf -- cgit