def check(self, data, server):
        alerts = False
        account_id = server.get('account_id', None)


        # System alerts
        rules = alerts_model.get_alerts(type='system', server=server)
        if rules:
            alerts = system_alerts.check(data=data, rules=rules, server=server)

            if alerts:
                alerts_model.save_system_occurence(alerts, server_id=server['_id'])


        # Global rules
        global_rules = alerts_model.get_global_alerts(account_id=account_id)
        if global_rules:
            alerts = system_alerts.check(data=data, rules=global_rules, server=server)
            if alerts:
                alerts_model.save_system_occurence(alerts, server_id=server['_id'])

        return alerts  # For the test suite