def manage_initial_service_status_brok(self, b):
        """Prepare the known services cache"""
        host_name = b.data['host_name']
        service_description = b.data['service_description']
        service_id = host_name+"/"+service_description
        logger.debug("got initial service status: %s", service_id)

        if host_name not in self.hosts_cache:
            logger.error("initial service status, host is unknown: %s.", service_id)
            return

        self.services_cache[service_id] = {
        }
        if 'customs' in b.data:
            self.services_cache[service_id]['_GRAPHITE_POST'] = \
                sanitize_name(b.data['customs'].get('_GRAPHITE_POST', None))

        logger.debug("initial service status received: %s", service_id)
def manage_initial_service_status_brok ( self , b ) : host_name = b . data [ 'host_name' ] service_description = b . data [ 'service_description' ] service_id = host_name + "/" + service_description logger . debug ( "got initial service status: %s" , service_id ) if host_name not in self . hosts_cache : logger . error ( "initial service status, host is unknown: %s." , service_id ) return self . services_cache [ service_id ] = { } if 'customs' in b . data : self . services_cache [ service_id ] [ '_GRAPHITE_POST' ] = sanitize_name ( b . data [ 'customs' ] . get ( '_GRAPHITE_POST' , None ) ) logger . debug ( "initial service status received: %s" , service_id )
Prepare the known services cache