[collectd] cpu module and saving jiffies / OpenBSD

Michael Stapelberg michael at stapelberg.de
Mon Aug 11 17:02:30 CEST 2008


Hi octo,

* [11.08.08 16:55]:
> On Mon, Aug 04, 2008 at 05:39:28PM +0200, Michael Stapelberg wrote:
> > Not only it confuses some users, but using jiffies (or whatever the
> > equivalent is) just plainly does not work well on OpenBSD.
> 
> Why?
Because the values don't add up to 100 like on linux and I'd like to keep
using my simple rrdtool-calls to generate graphs instead of having to use a
frontend :-).

> > libstatgrab, which has to be used on OpenBSD for collecting these
> > values, ...
> The CPU plugin uses `sysctlbyname' which, apparently, is a FreeBSD
> thing. OpenBSD and NetBSD apparently use `sysctl' for that. If you want
> I can try to add that to the plugin, but I cannot test it. I'd need your
> help for that..
Did you notice the patch I've attached? It saves the values in percent in a
GAUGE and it works just fine.

Best regards,
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20080811/273c5c89/attachment.pgp 


More information about the collectd mailing list