Ejemplo n.º 1
0
def example_security():

    return render_template("example/security.html", 
        common          = sysLib.getCommonInfo({"username": session["username"]}, "security"),
        uptime          = sysLib.getUptime(),
        currUser        = {"username": session['username']},
        page            = "security",
    )
Ejemplo n.º 2
0
def dashboard():

    return render_template("dashboard.html",
        common          = sysLib.getCommonInfo({"username": session["username"]}, "dashboard"),
        uptime          = sysLib.getUptime(),
        currUser        = {"username": session['username']},
        page            = "dashboard",
        systems         = sysLib.getDashboardInfo()
    )
Ejemplo n.º 3
0
def example_dashboard():

    return render_template("example/dashboard.html",
        common          = sysLib.getCommonInfo({"username": session["username"]}, "dashboard"),
        uptime          = sysLib.getUptime(),
        currUser        = {"username": session['username']},
        page            = "dashboard",
        load_avg        = getLoadAvg(),
        cpu             = getCpuStats(),
        num_cpus        = getNumOfCores(),
        memory          = getMemoryStats(),
        net_interfaces  = getInterfaceStats(),
        disks           = getDiskStats(),
        swap            = getSwapStats(),
        theUsers        = sysLib.getUserStats()
    )