Exemplo n.º 1
0
    def initialize(self, dataPath):
        """
    Initialize monitoring server
    """

        self.dataPath = dataPath
        self.plotCache = PlotCache(RRDManager(self.rrdPath, self.plotsPath))
        self.srvUp = True
        try:
            self.compmonDB = ComponentMonitoringDB()
        except Exception as e:
            gLogger.exception("Cannot initialize component monitoring db: %s" %
                              e)
Exemplo n.º 2
0
    def initialize(self, dataPath):
        """
    Initialize monitoring server
    """
        from DIRAC.FrameworkSystem.private.monitoring.PlotCache import PlotCache
        from DIRAC.FrameworkSystem.DB.ComponentMonitoringDB import ComponentMonitoringDB

        self.dataPath = dataPath
        self.plotCache = PlotCache(RRDManager(self.rrdPath, self.plotsPath))
        self.srvUp = True
        try:
            self.compmonDB = ComponentMonitoringDB()
        except Exception, e:
            gLogger.exception("Cannot initialize component monitoring db")
Exemplo n.º 3
0
    def initialize(self, dataPath):
        """
        Initializes monitoring server

        :type dataPath: string
        :param dataPath: The root path of the data directory.
        """

        self.dataPath = dataPath
        self.plotCache = PlotCache(RRDManager(self.rrdPath, self.plotsPath))
        self.srvUp = True
        try:
            self.compmonDB = ComponentMonitoringDB()
        except Exception as e:
            gLogger.exception("Cannot initialize component monitoring db: %s" % e)