(check, check_name, check_desc)
Check handler

    This function takes a dictionary of check_desc,check_name and will
    iterate through them all.
Check handler
Check handler
def check_handler(check, check_name, check_desc):
    """Check handler

    This function takes a dictionary of check_desc,check_name and will
    iterate through them all.
    """
    tee("\n\n++++++++++  {}: {}  ++++++++++\n\n"
        .format(check_name, check_desc))
    tee("Starting module at {:%Y-%m-%d-%H.%M.%S}"
        .format(datetime.datetime.now()), box='ok')
    tee("\n")
    check()
    tee("\n")
    tee("Finished module at {:%Y-%m-%d-%H.%M.%S}\n"
        .format(datetime.datetime.now()), box='ok')
def check_handler ( check , check_name , check_desc ) : tee ( "\n\n++++++++++  {}: {}  ++++++++++\n\n" . format ( check_name , check_desc ) ) tee ( "Starting module at {:%Y-%m-%d-%H.%M.%S}" . format ( datetime . datetime . now ( ) ) , box = 'ok' ) tee ( "\n" ) check ( ) tee ( "\n" ) tee ( "Finished module at {:%Y-%m-%d-%H.%M.%S}\n" . format ( datetime . datetime . now ( ) ) , box = 'ok' )