check for failed_resources and output perfdata and text correctly

I fixed the perfdata name from failed_resources to failed_events and added failed_resources output. 
Now it should also check for failed resources like you intended and not failed events.