Coda Distributed File System
Classes | Variables
gensrvstats Namespace Reference

Classes

class  Hell
 

Variables

string LOGDIR = "/var/log/smon2"
 
string IMGDIR = "/home/httpd/html/smon2"
 
string IMGURL = "/smon2/"
 
string RRDTOOL = "/usr/local/rrdtool-1.0.4/bin/rrdtool"
 
list srvmap
 
 stderr
 
dictionary statmap
 
dictionary timemap
 
 form = cgi.FieldStorage()
 
 servers = form["servers"]
 
 stats = form["stats"]
 
 period = form["period"]
 
string LOGSCALE = "--logarithmic "
 
string LAPP = "_l"
 
 rrdtool = os.popen("%s - > /dev/null 2>&1" % RRDTOOL, "w")
 
 srv = server.value
 
string img = "{}_{}{}.gif".format(srv, stat.value, LAPP)
 
 desc
 
 ops
 
tuple cmd
 

Variable Documentation

◆ cmd

tuple gensrvstats.cmd
Initial value:
1= (
2 "graph {}/{} -w 640 -h 200 {}".format(IMGDIR, img, period)
3 + LOGSCALE
4 + ops % vars()
5 + "\n"
6 )
format
Definition: make_certs.py:99

◆ desc

gensrvstats.desc

◆ form

gensrvstats.form = cgi.FieldStorage()

◆ img

string gensrvstats.img = "{}_{}{}.gif".format(srv, stat.value, LAPP)

◆ IMGDIR

string gensrvstats.IMGDIR = "/home/httpd/html/smon2"

◆ IMGURL

string gensrvstats.IMGURL = "/smon2/"

◆ LAPP

string gensrvstats.LAPP = "_l"

◆ LOGDIR

string gensrvstats.LOGDIR = "/var/log/smon2"

◆ LOGSCALE

string gensrvstats.LOGSCALE = "--logarithmic "

◆ ops

gensrvstats.ops

◆ period

dictionary gensrvstats.period = form["period"]

◆ RRDTOOL

string gensrvstats.RRDTOOL = "/usr/local/rrdtool-1.0.4/bin/rrdtool"

◆ rrdtool

gensrvstats.rrdtool = os.popen("%s - > /dev/null 2>&1" % RRDTOOL, "w")

◆ servers

list gensrvstats.servers = form["servers"]

◆ srv

gensrvstats.srv = server.value

◆ srvmap

list gensrvstats.srvmap
Initial value:
1= [
2 "verdi",
3 "mozart",
4 "marais",
5 "vivaldi",
6 "mahler",
7 "viotti",
8 "massenet",
9 "strauss",
10 "tye",
11 "tallis",
12 "haydn",
13 "holst",
14]

◆ statmap

dictionary gensrvstats.statmap

◆ stats

list gensrvstats.stats = form["stats"]

◆ stderr

gensrvstats.stderr

◆ timemap

dictionary gensrvstats.timemap
Initial value:
1= {
2 "1h": " -s-1h ",
3 "2h": " -s-2h ",
4 "4h": " -s-4h ",
5 "8h": " -s-8h ",
6 "1d": " -s-1d ",
7 "2d": " -s-2d ",
8 "w": " -s-1w ",
9 "m": " -s-1month ",
10 "y": " -s-1y ",
11}