added perfdata option and modified output text
merge from upstream/master
check for failed_resources and output perfdata and text correctly
Merge pull request #7 from xorpaul/discern_between_events_resources

check for failed_resources and output perfdata and text correctly