5 Aug 2005 17:50
Re: Scripting to summarize smokeping rrd data
Arnold Nipper <arnold <at> nipper.de>
2005-08-05 15:50:19 GMT
2005-08-05 15:50:19 GMT
On 05.08.2005 17:36 Tony.Cetera <at> thomson.com wrote
> Thank you. Now that I have the data, 2 questions.
>
> What is the best way to manipulate those numbers in exponential
> notation? I need them in decimal notation.
>
typically $language will already do for you.
> Those few lines of <gawk,perl,php,...> you speak of, can you point me
> the direction of some examples? It seems I don't need to do much more
> than sum the median column and divide by the # of rows.
First a warning: summing the median and dividing by numbers of summands
gives you what? imho only useless information. But anyway. A q&d awk
script would look like
/^[0-9]/ { s += $4; n++ }
END { print s/n }
If you really want to have the median of the last thirty days,
recalculate them for yourself.
Arnold
--
--
Arnold Nipper, AN45
RSS Feed