[Orca-users] modifying data for plots
Mark Parsisson
mark.parsisson at AurumIT.com
Wed Mar 24 13:17:08 PST 2004
I have a set of log files that contain data that is not 100% numeric.
For example, I have:
...
1080161171 Memory usage: total:497.54 Mb - used: 123.22 Mb (25%) -
free: 374.32 Mb (75%)
1080161461 Memory usage: total:497.54 Mb - used: 123.23 Mb (25%) -
free: 374.30 Mb (75%)
1080161761 Memory usage: total:497.54 Mb - used: 123.29 Mb (25%) -
free: 374.25 Mb (75%)
1080162071 Memory usage: total:497.54 Mb - used: 123.29 Mb (25%) -
free: 374.25 Mb (75%)
1080162371 Memory usage: total:497.54 Mb - used: 123.29 Mb (25%) -
free: 374.25 Mb (75%)
...
This is the memory usage for a single server. As you can see, the
percent used and percent free has extra characters. Is there a perl
expression I can use on the data line in the plot definition of
orcallator.cfg to strip off the (%) ?
Alternately, is there a way I can split the first number from the
"total:" and again get just a number to plot?
I need to understand if I can do this (using perl - although I don't
know perl) in the data line or if I need to find a way to modify my log
files (much more effort than it sounds like :-(
Thanks,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/orca-users/attachments/20040324/0da5542b/attachment.html>
More information about the Orca-users
mailing list