DragonFly users List (threaded) for 2006-10
Re: getting cpu statistics - munin
Vladimir Mitiouchev wrote:
On 10/17/06, Csillag Tamas <cstamas@xxxxxxxxxxxxxxxxxxx> wrote:
for FreeBSD which queries kern.cp_time via sysctl.
But on DFlyBSD I get: sysctl: unknown oid 'kern.cp_time'.
What is the best way of doing this?
losalamos:...sources/src/sys$ iostat -C -t proc -d
us ni sy in id
14 0 6 2 78
It's the same info as kern.cp_time used to give.
Well it is not the *same* but good enough.
kern.cp_time is an always incrementing number and should be stored as
DERIVE in rrdtool
iostat gives percentage as a result, so this sophisticated algorithm is
not needed. It can be stored as GAUGE.
Thanks that's the thing I was looking for!
CSILLAG Tamas http://digitus.itk.ppke.hu