Esempio n. 1
0
def aggregate_stats(in_downtime):
    try:
        status = glideFactoryMonitorAggregator.aggregateStatus(in_downtime)
        logSupport.log.debug("aggregateStatus status: %s" % str(status))
    except:
        # protect and report
        tb = traceback.format_exception(sys.exc_info()[0], sys.exc_info()[1], sys.exc_info()[2])
        logSupport.log.debug("aggregateStatus failed: %s" % "".join(tb))

    try:
        status = glideFactoryMonitorAggregator.aggregateLogSummary()
        logSupport.log.debug("aggregateLogSummary status: %s" % str(status))
    except:
        # protect and report
        tb = traceback.format_exception(sys.exc_info()[0], sys.exc_info()[1], sys.exc_info()[2])
        logSupport.log.debug("aggregateLogStatus failed: %s" % "".join(tb))

    try:
        status = glideFactoryMonitorAggregator.aggregateRRDStats()
        logSupport.log.debug("aggregateRRDStats status: %s" % str(status))
    except:
        # protect and report
        tb = traceback.format_exception(sys.exc_info()[0], sys.exc_info()[1], sys.exc_info()[2])
        logSupport.log.debug("aggregateRRDStats failed: %s" % "".join(tb))

    return
Esempio n. 2
0
def aggregate_stats(in_downtime):
    try:
        status = glideFactoryMonitorAggregator.aggregateStatus(in_downtime)
    except:
        # protect and report
        logSupport.log.exception("aggregateStatus failed: ")

    try:
        status = glideFactoryMonitorAggregator.aggregateLogSummary()
    except:
        # protect and report
        logSupport.log.exception("aggregateLogStatus failed: ")

    try:
        status = glideFactoryMonitorAggregator.aggregateRRDStats()
    except:
        # protect and report
        logSupport.log.exception("aggregateRRDStats failed: ")

    return