[smokeping-users] Re: Scripting to summarize smokeping rrd data
Arnold Nipper
arnold at nipper.de
Fri Aug 5 17:50:19 MEST 2005
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
--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive http://lists.ee.ethz.ch/smokeping-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the smokeping-users
mailing list