User Tools

Site Tools


informatica:linux:generar_graficos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
informatica:linux:generar_graficos [2010/12/05 16:42] 127.0.0.1informatica:linux:generar_graficos [2015/04/13 20:19] (current) – external edit 127.0.0.1
Line 31: Line 31:
  
 Para crear la Base de Datos seguimos el siguiente formato: Para crear la Base de Datos seguimos el siguiente formato:
-  rrdtool create <fichero>.rrd --start <tiempo_inicio> --step=<tiempo_medicion> DS:<nombre_variable>:<DST>:<heartbeat>:<min>:<max>+  rrdtool create <fichero>.rrd --start <tiempo_inicio> --step=<tiempo_medicion> DS:<nombre_variable>:<DST>:<heartbeat>:<min>:<max>  RRA:CF:xff:step:rows
  
   * tiempo_inicio= tiempo de la primera medición en UNIX TIME   * tiempo_inicio= tiempo de la primera medición en UNIX TIME
Line 39: Line 39:
   * heartbeat= cada cuanto se fuerza la medida. Si por ejemplo son 300 segundos y el heartbeat es de 600, esperarà 600 segundos y sinó pondrá un UNKNOWN   * heartbeat= cada cuanto se fuerza la medida. Si por ejemplo son 300 segundos y el heartbeat es de 600, esperarà 600 segundos y sinó pondrá un UNKNOWN
   * min y max: si no se sabe se pone U y lo cálcula   * min y max: si no se sabe se pone U y lo cálcula
 +
 +Falta traducir y resumir de http://oss.oetiker.ch/rrdtool/tut/rrd-beginners.en.html
 +
 +  RRA:CF:xff:step:rows
 +
 +Lets have a look at the example above. For the first RRA, 12 (steps) PDPs (DS variables) are AVERAGEed (CF) to form one CDP. 24 (rows) of theses CDPs are archived. Each PDP occurs at 300 seconds. 12 PDPs represent 12 times 300 seconds which is 1 hour. It means 1 CDP (which is equal to 12 PDPs) represents data worth 1 hour. 24 such CDPs represent 1 day (1 hour times 24 CDPs). This means, this RRA is an archive for one day. After 24 CDPs, CDP number 25 will replace the 1st CDP. The second RRA saves 31 CDPs; each CPD represents an AVERAGE value for a day (288 PDPs, each covering 300 seconds = 24 hours). Therefore this RRA is an archive for one month. A single database can have many RRAs. If there are multiple DSs, each individual RRA will save data for all the DSs in the database. For example, if a database has 3 DSs and daily, weekly, monthly, and yearly RRAs are declared, then each RRA will hold data from all 3 data sources.
 +
 +  * CF= AVERAGE, MINIMUM, MAXIMUM, and LAST
  
 Ponemos que empieza 30 minutos antes que la primera medición: Ponemos que empieza 30 minutos antes que la primera medición:
Line 102: Line 110:
  
 Y se ejecuta: Y se ejecuta:
-  xgrpah fichero.txt+  xgraph fichero.txt
  
 {{informatica:linux:grafico_xgrap.png|}} {{informatica:linux:grafico_xgrap.png|}}
  
 ===== Salida en un fichero ===== ===== Salida en un fichero =====
 +Hay que bajarse la versión de la web http://www.xgraph.org
 +  # xgraph -pdf fichero.txt -out_file fichero.pdf
  
-Da error: +Da error con la versión de repositorios
   # xgraph -device ps -o prueba.ps pruebaxgraph.txt    # xgraph -device ps -o prueba.ps pruebaxgraph.txt 
   Fallo de segmentación   Fallo de segmentación
  
informatica/linux/generar_graficos.1291567349.txt.gz · Last modified: 2015/04/13 20:19 (external edit)