[rrd-users] Re: Monitoring each CPU in a SMP server

Thomas Erskine erskine at sourceworks.com
Wed Jun 26 14:09:55 MEST 2002


At 13:25 2002-06-26 +0200, Iñaki Martínez wrote:
[snip]
>  My problems are (in order):
>
>  1) how to get data for each CPU
>     now i get via mpstat, a program that show each CPU status

"mpstat -P ALL" works for me under linux.

>  2) how to store data in rrd file
>
>  something like this??
>
>  DS:user0:GAUGE:600:U:U
>  DS:nice0:GAUGE:600:U:U
>  DS:system0:GAUGE:600:U:U
>  DS:idle0:GAUGE:600:U:U
>  DS:user1:GAUGE:600:U:U
>  DS:nice1:GAUGE:600:U:U
>  DS:system1:GAUGE:600:U:U
>  DS:idle1:GAUGE:600:U:U
>
>  and so on.... for more CPU's (i only have two)
>
>  3) how to graph ALL CPUs in the same graph, if possible
>     if NOT possible how to graph, one for each CPU???

Where's the difficulty?

rrdtool graph xyzzy.png \
         --start ... \
         DEF:user0=my.rrd:user0:AVERAGE
         DEF:user1=my.rrd:user1:AVERAGE
         ...
         LINE1:user0#ff0000
         LINE1:user1#00ff00
         ...

>  Thanks !!!
>
>--
>Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
>Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
>Archive     http://www.ee.ethz.ch/~slist/rrd-users
>WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list