Home modules.gotpike.org
Username: Password: [Create Account]
[Forgot Password?]

Modules

ADT
Database
GTK2
GUI
IP
PiJAX
Public
Sql
Stdio
Subversion
System
Tools
Xosd
lua
v4l2
wx

Recent Changes

Public.Parser.XML2 1.50
Public.ZeroMQ 1.1
Public.Template.Mustache 1.0
Public.Protocols.XMPP 1.4
Sql.Provider.jdbc 1.0

Popular Downloads

Public.Parser.JSON2 1.0
Public.Parser.JSON 0.2
GTK2 2.23
Public.Web.FCGI 1.8
Public.Parser.XML2 1.48


Module Information
Public.Tools.RRDtool
Viewing contents of Public_Tools_RRDtool-1.4/.module.pmod.in.swp

b0VIM 6.4¾³’DŽAOriffrafflocalhost.localdomain~riffraff/src/Public_Tools_RRDtool-1.4/module.pmod.in3210#"! Utpÿ‹*ŒadK‹îíßÔÊ…cÀ¬ˆy^H-Û
È
§
–
v
e


âÑ± €o%ýê潪‹z.÷
æ
Î
¸
¦
”

d
V
8
*

þ	´	¤	œ	„	f	X	9	+	
	ÿßÑxY/æƸ™‹k]
ýõܾ°‚C3+öèÅ·—‰iöîèäáÆ¡“‘‚€Gì³¢’w^IE,þØÌÊÉ™iKJ  if (!zero_type(rraindex)) {  os+=({ filename });  array os=({ "first" });int first(string filename, int|void rraindex) {}  return m;  mapping m=rrd_fetch(sizeof(os),os);  }    os+=({ end });    os+=({ "--end" });  if (!zero_type(end)) {  }    os+=({ start });    os+=({ "--start" });  if (!zero_type(start)) {  os+=({ CF });    return ([]);  if (!has_value(({ "AVERAGE","MIN","MAX","LAST" }),CF))  os+=({ filename });  array os=({ "fetch" });	    string|void start, string|void end) {mapping fetch(string filename, string CF, int|void res,}void dump() {}  return res;  int res=rrd_create(sizeof(os),os);//  werror("os==%O\n",os);*/  }    }	break;	os+=({ res });	res+=sprintf("RRA:%s:%d:%d:%d:%d",vals->CF,vals->rows,vals->threshold,vals->winlen,vals->rranum);	if (!has_index(vals,"rranum"))	  return -1;	if (!has_index(vals,"winlen"))	  return -1;	if (!has_index(vals,"threshold"))	  return -1;	if (!has_index(vals,"rows"))      case "FAILURES":	break;	os+=({ res });	res=sprintf("RRA:%s:%d:%d",vals->CF,vals->rows,vals->rranum);	  return -1;	if (!has_index(vals,"rranum"))	  return -1;	if (!has_index(vals,"rows"))      case "DEVPREDICT":	break;	os+=({ res });	res=sprintf("RRA:%s:%d:%f:%d",vals->CF,vals->period,vals->gamma,vals->rranum);	  return -1;	if (!has_index(vals,"rranum"))	  return -1;	if (!has_index(vals,"gamma"))	  return -1;	if (!has_index(vals,"period"))      case "DEVSEASONAL":      case "SEASONAL":	break;	os+=({ res });	  res=sprintf("%s:%d",res,vals->rranum);	if (has_index(vals,"rranum"))	res=sprintf("RRA:%s:%f:%f:%d",vals->CF,vals->rows,vals->alpha,vals->beta,vals->period);	  return -1;	if (!has_index(vals,"period"))	  return -1;	if (!has_index(vals,"beta"))	  return -1;	if (!has_index(vals,"alpha"))	  return -1;	if (!has_index(vals,"rows"))      case "HWPREDICT":	break;	os+=({ res });	res=sprintf("RRA:%s:%f:%d:%d",vals->CF,vals->xff,vals->step,vals->rows);	  return -1;	if (!has_index(vals,"rows"))	  return -1;	if (!has_index(vals,"step"))	  return -1;	if (!has_index(vals,"xff"))      case "LAST":      case "MAX":      case "MIN":      case "AVERAGE":    switch (vals->CF) {      return -1;			"DEVSEASONAL","DEVPREDICT","FAILURES" }),vals->CF))    if (!has_value( ({ "AVERAGE","MIN","MAX","LAST","HWPREDICT","SEASONAL",      return -1;    if (!has_index(vals,"CF"))    string res="";  foreach (RRA; int ind; mapping vals) {  }    os+=({ res });		(string)vals->min,(string)vals->max);    res=sprintf("DS:%s:%s:%d:%s:%s",vals->name,vals->DST,vals->heartbeat,      return -1;    if (!has_index(vals,"max"))      return -1;    if (!has_index(vals,"min"))      return -1;    if (!has_index(vals,"heartbeat"))      return -1;    if (!has_value( ({ "GAUGE","COUNTER","ABSOLUTE","DERIVE" }),vals->DST))      return -1;    if (!has_index(vals,"DST"))      return -1;    if (!has_index(vals,"name"))    string res="";  foreach (DS; int ind; mapping vals) {/*  os+=RRA;  os+=DS;    os+=options;  if (!zero_type(options))  os+=({ filename });  array os=({ "create" });    return -1;  if (sizeof(RRA)<1)    return -1;  if (sizeof(DS)<1)int rrdtool_create(string filename, array DS, array RRA, array|void options) { */  *! RRA: array( mapping( CF: [AVERAGE|MIN|MAX|LAST], xff: , steps: , rows: ) )			  heartbeat: , min: , max: ) ) *! DS: array( mapping( name: ,DST: [GAUGE|COUNTER|DERIVE|ABSOLUTE], *! step: *! start:/*! filename:inherit @module@;ad˜T
*äÌÈ¥£¢y_E-õÓÇÅĨyWUT:87ÿ
þ
Ô
¹
£
—
s
q
p
W
U
T
S
}void xport(array opts) {}  return rrd_update(sizeof(os),os);  os+=vals;  os+=({ filename });  array os=({ "update" });int update(string filename, array vals) {}void tune(array opts) {}void restore(array opts) {}void resize(array opts) {}  return rrd_last(sizeof(os),os);  os+=({ filename });  array os=({ "last" });int last(string filename) {}  return k;  int k=rrd_graph(sizeof(os),os);  os+=DEFs;    os+=options;  if (!zero_type(options))  os+=({ outputfile });  array os=({ "graph" });	   array|void options) {int graph(string outputfile, array DEFs,}  return rrd_first(sizeof(os),os);  }    os+=({ rraindex });    os+=({ "--rraindex" });

gotpike.org | Copyright © 2004 - 2019 | Pike is a trademark of Department of Computer and Information Science, Linköping University