Exemplo n.º 1
0
def check_geoserver_log():
    logpath = _config["GEOSERVER_LOG"]
    logfile_model = get_logfile_model(logpath)
    with open(logpath) as f:
        result = read_next_sections(f, logfile_model)
        sections = result["sections"]
        logfile_model.offset_start = start = result["offset_start"]
        logfile_model.offset_end = end = result["offset_end"]
        logfile_model.checksum = checksum(sections, start, end)
        logfile_model.save()
    return [subcheck(fn, name, sections) for fn, name in [(_out_of_memory, "Out of Memory")]]
Exemplo n.º 2
0
def check_geoserver_log():
    logpath = _config['GEOSERVER_LOG']
    logfile_model = get_logfile_model(logpath)
    with open(logpath) as f:
        result = read_next_sections(f, logfile_model)
        sections = result['sections']
        logfile_model.offset_start = start = result['offset_start']
        logfile_model.offset_end = end = result['offset_end']
        logfile_model.checksum = checksum(sections, start, end)
        logfile_model.save()
    return [subcheck(fn, name, sections)
            for fn, name in [(_out_of_permgen_memory, 'Out of PermGen Memory'),
                             (_out_of_memory, 'Out of heap space')]]
Exemplo n.º 3
0
def get_layer_has_latlon_bbox():
    return [subcheck(_check_layer, l.typename, l)
            for l in Layer.objects.all().iterator()]
Exemplo n.º 4
0
def get_layer_capabilities():
    return [subcheck(_check_layer_capabilities, l.typename, l)
            for l in Layer.objects.all().iterator()]
Exemplo n.º 5
0
def get_layer_has_latlon_bbox():
    return [
        subcheck(_check_layer, l.typename, l)
        for l in Layer.objects.all().iterator()
    ]
Exemplo n.º 6
0
def get_layer_capabilities():
    return [
        subcheck(_check_layer_capabilities, l.typename, l)
        for l in Layer.objects.all().iterator()
    ]
Exemplo n.º 7
0
def disk_space():
    return [subcheck(check_space_for_path, path, path)
            for path in ('/', '/raid')]