Thomas Erskine wrote: > > But for each CPU you have 4 lines (user,nice,system and idle) so could be > >very confused graph...... > > > > I think about stack areas, but with two CPUs you have a very big graph. > > Was this question "how do I make such a graph", or "how do I combine all > this information into a comprehensible graph"? I agree that cramming > multiple CPUs onto one 2D graph is going to be confusing. For 2 CPUs, you > could have one be positive and one negative, or one as stacked lines and > one as stacked areas. For more, I think that it'd be better to have one > graph per CPU and put up a page with all the different CPU graphs on one page.
One could also stack the numbers from the 1st CPU, then use an invisible area covering 100% and stack the numbers of the 2nd cpu on top of that one. Assuming all numbers are percentages: AREA:num1a#FF0000:"cpu 1 user" STACK:num1b#00FF00:"cpu 1 system" STACK:num1c#0000FF:"cpu 1 nice" STACK:num1d#000000:"cpu 1 idle\n" CDEF:hundred=num2a,POP,100 <----- trick to get a number only AREA:hundred <----- note: no color, no legend STACK:num2a#FFFF00:"cpu 2 user" STACK:num2b#00FFFF:"cpu 2 system" STACK:num2c#FF00FF:"cpu 2 nice" STACK:num2d#000000:"cpu 2 idle\n" If it is sure that 1a+1b+1c+1d add up to 100 exactly, the two lines with "hundred" aren't even necessary. HTH -- __________________________________________________________________ / [EMAIL PROTECTED] [EMAIL PROTECTED] \ | work private | | My employer is capable of speaking therefore I speak only for myself | +----------------------------------------------------------------------+ | Technical questions sent directly to me will be nuked. Use the list. | +----------------------------------------------------------------------+ | http://faq.mrtg.org/ | | http://rrdtool.eu.org --> tutorial | +----------------------------------------------------------------------+ -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
