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/13 15:29] 127.0.0.1informatica:linux:generar_graficos [2015/04/13 20:19] (current) – external edit 127.0.0.1
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
-<code>+ 
 +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. 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.
-</code>+
   * CF= AVERAGE, MINIMUM, MAXIMUM, and LAST   * CF= AVERAGE, MINIMUM, MAXIMUM, and LAST
  
Line 106: 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.1292254198.txt.gz · Last modified: 2015/04/13 20:19 (external edit)