-
Notifications
You must be signed in to change notification settings - Fork 631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ABRT adaptor config #105
Conversation
@juliusmilan This is cool! Have you verified this config? |
@Random-Liu Thank you, yes verified for all kinds of ABRT messages present in config. |
LGTM. @juliusmilan So you run NPD in Kubernetes cluster and did see node events generated, right? |
Will merge after your confirmation. :) |
Thanks for the pr to extend the usability of NPD. |
@Random-Liu I tested it using netcat in following manner: following is what catched my netcat (so I knew config works well): POST /api/v1/namespaces/default/events HTTP/1.1 {"kind":"Event","apiVersion":"v1","metadata":{"name":"dhcp-24-175.brq.redhat.com.14aff755624bb494","namespace":"default","creationTimestamp":null},"involvedObject":{"kind":"Node","name":"dhcp-24-175.brq.redhat.com","uid":"dhcp-24-175.brq.redhat.com"},"reason":"UncaughtException","message":"Process 24711 (will_python_raise) of user 1000 encountered an uncaught ZeroDivisionError exception","source":{"component":"abrt-adaptor","host":"dhcp-24-175.brq.redhat.com"},"firstTimestamp":"2017-03-28T06:19:07Z","lastTimestamp":"2017-03-28T06:19:07Z","count":1,"type":"Warning"} {"status":{"conditions":[]}} I did similar test for all kinds of problems I added to the config/abrt-adaptor.json |
Cool~ LGTM |
@juliusmilan Merged! Thanks for the improvement! |
This config allows NPD to catch problems detected by ABRT, ABRT can find various problems (see the link) and log them to journalctl in format described here:
https://github.com/abrt/abrt/wiki/systemd-journal-catalog-messages
Work sequence:
This change is