[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Where can I get the source code of top?
Thank you for your utility hint.
But I'll have to send email when cpu load meets a threshold.
I'll see if munin can help.
And thank you for pointing me to the website.
2008/4/6, Havard Eidnes <he%netbsd.org@localhost>:
> > Dear all,
> > I'm trying to write a utility for system monitor.
> > My netbsd version is 3.1.
> > It needs to gather information about the system cpu usage data like
> > cpu load in user mode, system mode, idle task and so on.
> > On linux, I have the file "/proc/stat".
> > But I don't have it on netbsd.
> > However, I find that top can get the information I want.
> > So which file should I rely on on netbsd?
> > Or where can I get the source code of top for netbsd?
> > Thanks in advance for any hint.
> You can take a look at some of the NetBSD-specific "plugins" to
> the munin system monitor, which does a number of the above
> things. It's in pkgsrc under sysutils/munin-node/.
> As for the source code of top in NetBSD, it's in src/usr.bin/top,
> and should be readily available via e.g. cvsweb.netbsd.org or via
> any of the other "get the NetBSD source" methods.
> Best regards,
> - Håvard
Main Index |
Thread Index |