I need to graph data that's in a file. however, i only know of a way to graph data as it comes (meaning, as it is spat out by whatever process or job). i dont know how to graph data in a file.
im using rrdtool to graph data. and i was wondering if anyone know of a way to pass a file (the datafile), to the rrdtool so it graphs the necessary information.
the datafile contains several lines that look like this:
The first field is the epoch time, the timestamp. the numbers that needs to be graphed are the numbers in the second and third column.
the second column number is the pl, the third column number is the rtt. I can think of a while loop to use on this, but considering i intend to run this on a large datafile, i foresee that being inefficient.
below is a snippet of what i'm using:
so I was going to run my while loop to do something like this:
You'll be much more efficient if you do like
, but - are you going to call rrdtool for every single data pair?
for every line in the datafile, yes. which is what scares me. the most i would have to go in the data file is no more than a month.
so let's assume there's about 80,000 lines in the data file. i would have to run the rrdtool tool 80,000 times.
i found this snippet php code, which does something similar, but the information it is graphing is random information. not real data. it was a snippet code used as an example. was hoping i can use the logic behind this code, apply it to awk, and get it to do what I want:
There is one more good tool called GMT, if you are debain user you can install using sudo sudo apt-get install gmt once it's installed set GMT path in your bashrc like this export PATH=$PATH:/usr/lib/gmt/bin
there after you can do xy plot, contour plot, even 3D using this tool, this link may be useful to you http://gmt.soest.hawaii.edu/
Here I will give one small example of xy plot using gmt function psxy
I am here attaching output ps file if you feel this will helpful go through it
This User Gave Thanks to Akshay Hegde For This Post:
Hi All,
I have a file like this(having 2 column).
Column 1: like a,b,c....
Column 2: having numbers.
I want to segregate those numbers based on column 1.
Example:
file.
a 5
b 9
b 620
a 710
b 230
a 330
b 1910 (4 Replies)
so this is what i want to do. i have data that looks like this:
DATA:
Array: A
Interface Type: SAS
Unused Space: 0 MB
Status: Failed
Logical Drive: 2
Size: 279.4 GB
Fault Tolerance: RAID 1
Heads: 255
Sectors Per Track: 32... (2 Replies)
Hi,
I have a log file created from a load balancer showing connections to each member of a two member pool with the following format (where first field is source IP, second field is load balanced IP address and third field is destination member. I need to plot a graph by date/time and number of... (5 Replies)
Hello,
I have a very large text file with about 2 million lines.
Each of the lines starts like..
SNP_12345678 A 1212, 121, 343, ...
SNP_12345678 B 4567, 567, 454, ...
and so on.
I want to extract specific SNPs and plot them by GNUplot or excel.
The file is too large to be opened by text... (1 Reply)
Hi All
Anyone out there using any graphing tool for Solaris performance data taken either through SAR utility or iosatat, vmstat, nicstat etc. There are a couple on googling like statsview and rrdtool but not sure if anyone is really happy and satisfied with using any of the graphing tool.
... (1 Reply)
Hi All,
I am having trouble through, I am reading the input from tab delimited file containing several records,
e.g.
line1 field1 field2 field3 so on..
line2 field1 field2 field3 so on..
..
..
on the basis of certain fields for each record in input file, I have to retrieve... (1 Reply)
All,
I am looking for some open source database and graphing software to plot some MIB performance data on a Solaris server. Any suggestions would be appreciated.
Thanks,
Mike (0 Replies)