Memory Usage
Patrick Lamaizière
patfbsd at davenulle.org
Sat Jan 3 13:29:48 UTC 2009
Le Fri, 2 Jan 2009 10:47:32 -0500,
"Grant Peel" <gpeel at thenetnow.com> a écrit :
> Hi all,
>
> Does anyone have scripts they may be willing to share the parses any
> FreeBSD utility (top, w, etc) suitable for using the output to use
> mrtg to show memory and disk usage?
Mrtg needs a script that returns four lines :
- the first value
- the second value (return 0 if only one value is used)
- the Uptime
- The legend
By example a little script to return the number of processus using ps
-xa
net:/<1>local/libexec/mrtg# ./pn2mrtg
193
0
12 days, 10:20
net
see http://user.lamaiziere.net/patrick/mrtg.tar.gz as examples.
(The scripts are quite uggly...)
http://lamaiziere.net/private/stat/net/ for the result
OTH, regards.
More information about the freebsd-questions
mailing list