def post_process(self, group, event, is_new, is_sample, **kwargs):
if not self.is_configured(group.project):<EOL><INDENT>return<EOL><DEDENT>host = self.get_option('<STR_LIT>', group.project)<EOL>port = int(self.get_option('<STR_LIT>', group.project))<EOL>prefix = self.get_option('<STR_LIT>', group.project)<EOL>hostname = self.get_option('<STR_LIT>', group.project) or socket.gethostname()<EOL>resolve_age = group.project.get_option('<STR_LIT>', None)<EOL>now = int(time.time())<EOL>template = '<STR_LIT>' % (prefix, group.project.slug)<EOL>level = group.get_level_display()<EOL>label = template % level<EOL>groups = group.project.group_set.filter(status=STATUS_UNRESOLVED)<EOL>if resolve_age:<EOL><INDENT>oldest = timezone.now() - timedelta(hours=int(resolve_age))<EOL>groups = groups.filter(last_seen__gt=oldest)<EOL><DEDENT>num_errors = groups.filter(level=group.level).count()<EOL>metric = Metric(hostname, label, num_errors, now)<EOL>log.info('<STR_LIT>', label, num_errors)<EOL>send_to_zabbix([metric], host, port)<EOL>
Process error.