Пример #1
0
def show_graph():

    server_id=request.get_vars.server_id
    action=request.get_vars.action
    plugin=request.get_vars.plugin
    typegraph=request.get_vars.type
    plugin_instance=request.get_vars.plugin_instance
    host=request.get_vars.host
    timespan=request.get_vars.timespan
    start=request.get_vars.start
    end=request.get_vars.end

    result=Server.get_pathrdd_timezone_server(server_id,db)
    path_rrd=result.f_path_rrd
    time_zone=result.f_time_zone
  
    response.headers['Content-Type']="image/png" 
    return response.stream(Collection.get_graph(action, plugin, typegraph, host,\
                                                timespan, path_rrd, time_zone, start,\
                                                end, plugin_instance))