16 |
|
<div id="topnav"> |
17 |
|
<ul> |
18 |
|
<li> |
19 |
< |
<a href="#news">News</a> |
19 |
> |
<a href="#what">What is libstatgrab?</a> |
20 |
|
</li> |
21 |
|
<li> |
22 |
< |
<a href="#what">What is libstatgrab?</a> |
22 |
> |
<a href="#news">News</a> |
23 |
|
</li> |
24 |
|
<li> |
25 |
|
<a href="#download">Downloading</a> |
26 |
|
</li> |
27 |
|
<li> |
28 |
+ |
<a href="#bindings">Language Bindings</a> |
29 |
+ |
</li> |
30 |
+ |
<li> |
31 |
+ |
<a href="#packages">Packages</a> |
32 |
+ |
</li> |
33 |
+ |
<li> |
34 |
+ |
<a href="#development">Development</a> |
35 |
+ |
</li> |
36 |
+ |
<li> |
37 |
|
<a href="#documentation">Documentation</a> |
38 |
|
</li> |
39 |
|
<li> |
42 |
|
</ul> |
43 |
|
</div> |
44 |
|
<h2> |
45 |
+ |
<a id="what">What is libstatgrab?</a> |
46 |
+ |
</h2> |
47 |
+ |
<p> |
48 |
+ |
libstatgrab is a library that provides cross platform |
49 |
+ |
access to statistics about the system on which it's run. |
50 |
+ |
It's written in C and presents a selection of useful |
51 |
+ |
interfaces which can be used to access key system |
52 |
+ |
statistics. The current list of statistics includes CPU |
53 |
+ |
usage, memory utilisation, disk usage, process counts, |
54 |
+ |
network traffic, disk I/O, and more. |
55 |
+ |
</p> |
56 |
+ |
<p> |
57 |
+ |
The current list of platforms is Solaris 2.x, Linux |
58 |
+ |
2.2/2.4/2.6, FreeBSD 4.x/5.x, NetBSD 1.6.x, OpenBSD 3.x, |
59 |
+ |
DragonFly BSD 1.0, HP-UX, and Cygwin. The aim is to extend |
60 |
+ |
this to include as many operating systems as possible. |
61 |
+ |
</p> |
62 |
+ |
<p> |
63 |
+ |
The package also includes a couple of useful tools. The |
64 |
+ |
first, <a href="#screenshot">saidar</a>, provides a |
65 |
+ |
curses-based interface to viewing the current state of the |
66 |
+ |
system. The second, statgrab, gives a sysctl-style |
67 |
+ |
interface to the statistics gathered by libstatgrab. This |
68 |
+ |
extends the use of libstatgrab to people writing scripts or |
69 |
+ |
anything else that can't easily make C function calls. |
70 |
+ |
Included with statgrab is a script to generate an |
71 |
+ |
<a href="http://www.mrtg.org">MRTG</a> configuration file |
72 |
+ |
to use statgrab. |
73 |
+ |
</p> |
74 |
+ |
<h2> |
75 |
|
<a id="news">News</a> |
76 |
|
</h2> |
77 |
|
<p> |
80 |
|
<a href="http://freshmeat.net/projects/libstatgrab/">freshmeat</a>? |
81 |
|
</p> |
82 |
|
<h3> |
83 |
< |
Sunday 21 March 2004 |
83 |
> |
Tuesday 26 April 2005 |
84 |
|
</h3> |
85 |
|
<p> |
86 |
< |
pystatgrab, a new package containing a set of Python |
87 |
< |
bindings, has been released. Check out it's |
49 |
< |
<a href="/pystatgrab/">project page</a>. |
86 |
> |
Official libstatgrab packages for Debian now |
87 |
> |
<a href="http://packages.debian.org/unstable/source/libstatgrab">available</a>. |
88 |
|
</p> |
89 |
+ |
<p> |
90 |
+ |
Thanks to the work of |
91 |
+ |
<a href="mailto:fenio@debian.org">Bartosz Fenski</a> |
92 |
+ |
libstatgrab is now available on debian. This replaces our |
93 |
+ |
unofficial debian packages which will no longer be |
94 |
+ |
updated. |
95 |
+ |
</p> |
96 |
|
<h3> |
97 |
< |
Wednesday 10 March 2004 |
97 |
> |
Thursday 3 March 2005 |
98 |
|
</h3> |
99 |
|
<p> |
100 |
< |
Version 0.9 of libstatgrab has been released.<br /> |
101 |
< |
Download it |
57 |
< |
<a href="http://www.mirror.ac.uk/sites/ftp.i-scream.org/pub/i-scream/libstatgrab/libstatgrab-0.9.tar.gz"> |
58 |
< |
here</a>. |
100 |
> |
Version 0.11.1 of libstatgrab has been released.<br /> |
101 |
> |
Download it from one of our <a href="/mirrors.xhtml">mirrors</a>. |
102 |
|
</p> |
103 |
|
<p> |
104 |
< |
This release brings new features and new platforms. We've |
105 |
< |
added information about network interfaces (duplex, speed, |
106 |
< |
etc) along with further statistics such as i/o packets, i/o |
107 |
< |
errors, and collisions. Support has also been added for |
108 |
< |
OpenBSD and DragonFly BSD. Finally some work has been done |
66 |
< |
to reduce the platforms on which libstatgrab needs elevated |
67 |
< |
privileges. See the NEWS file for more information. |
104 |
> |
This release fixes a handful of minor bugs. Duplex |
105 |
> |
settings were reported incorrectly on linux (half and |
106 |
> |
full duplex were swapped), saidar displayed negative |
107 |
> |
filesystem stats incorrectly, and NFS filesystems were |
108 |
> |
ignored. These have all been fixed. |
109 |
|
</p> |
110 |
|
<h3> |
111 |
< |
Wednesday 11 February 2004 |
111 |
> |
Friday 12 November 2004 |
112 |
|
</h3> |
113 |
|
<p> |
114 |
< |
Version 0.8.2 of libstatgrab has been released.<br /> |
115 |
< |
Download it |
75 |
< |
<a href="http://www.mirror.ac.uk/sites/ftp.i-scream.org/pub/i-scream/libstatgrab/libstatgrab-0.8.2.tar.gz"> |
76 |
< |
here</a>. |
114 |
> |
Version 0.11 of libstatgrab has been released.<br /> |
115 |
> |
Download it from one of our <a href="/mirrors.xhtml">mirrors</a>. |
116 |
|
</p> |
117 |
|
<p> |
118 |
< |
The main focus of this release is adding support for |
119 |
< |
Solaris 6. We've also added Python bindings so you can use |
81 |
< |
libstatgrab directly from Python (see the extras |
82 |
< |
directory). Finally, we've tidied up a few bits of the |
83 |
< |
code. |
118 |
> |
This release brings support for HP-UX (version 11.11), and |
119 |
> |
also fixes a few other minor issues. |
120 |
|
</p> |
121 |
|
<h3> |
122 |
< |
Wednesday 21 January 2004 |
122 |
> |
Wednesday 25 August 2004 |
123 |
|
</h3> |
124 |
|
<p> |
125 |
< |
Version 0.8.1 of libstatgrab has been released.<br /> |
126 |
< |
Download it |
91 |
< |
<a href="http://www.mirror.ac.uk/sites/ftp.i-scream.org/pub/i-scream/libstatgrab/libstatgrab-0.8.1.tar.gz"> |
92 |
< |
here</a>. |
125 |
> |
Version 0.10.3 of libstatgrab has been released.<br /> |
126 |
> |
Download it from one of our <a href="/mirrors.xhtml">mirrors</a>. |
127 |
|
</p> |
128 |
|
<p> |
129 |
< |
This release primarily fixes bugs. On Linux a file |
130 |
< |
descriptor leak was fixed. On Solaris some significant |
131 |
< |
speed increases were made to the disk mapping code, along |
98 |
< |
with some bug fixes for Solaris 7 platforms. Also, the |
99 |
< |
library part of libstatgrab (but not the tools) is now |
100 |
< |
released under the LGPL instead of the GPL. |
129 |
> |
This release adds a handful of new features to statgrab, and |
130 |
> |
adds support for FreeBSD 6.0-CURRENT. See the NEWS file in |
131 |
> |
the tarball for more details. |
132 |
|
</p> |
133 |
|
<h3> |
134 |
< |
Tuesday 6 January 2004 |
134 |
> |
Tuesday 27 July 2004 |
135 |
|
</h3> |
136 |
|
<p> |
137 |
< |
Version 0.8 of libstatgrab has been released.<br /> |
138 |
< |
Download it |
108 |
< |
<a href="http://www.mirror.ac.uk/sites/ftp.i-scream.org/pub/i-scream/libstatgrab/libstatgrab-0.8.tar.gz"> |
109 |
< |
here</a>. |
137 |
> |
Version 0.10.2 of libstatgrab has been released.<br /> |
138 |
> |
Download it from one of our <a href="/mirrors.xhtml">mirrors</a>. |
139 |
|
</p> |
140 |
|
<p> |
141 |
< |
This release brings support for Linux 2.6 and partial |
142 |
< |
support for Cygwin. On Solaris libstatgrab now returns disk |
114 |
< |
names using cNtNdNsN names rather than the older sdN names. |
115 |
< |
There are also a bunch of fixes and optimisations in |
116 |
< |
various places. Finally, a new function has been added to |
117 |
< |
make it quicker to drop any elevated privileges libstatgrab |
118 |
< |
may require on some operating systems. |
141 |
> |
This release fixes a problem with the shared library |
142 |
> |
version number in the last release. |
143 |
|
</p> |
144 |
|
<h3> |
145 |
< |
Wednesday 22 October 2003 |
145 |
> |
Monday 26 July 2004 |
146 |
|
</h3> |
147 |
|
<p> |
148 |
< |
Version 0.7 of libstatgrab has been released.<br /> |
149 |
< |
Download it |
126 |
< |
<a href="http://www.mirror.ac.uk/sites/ftp.i-scream.org/pub/i-scream/libstatgrab/libstatgrab-0.7.tar.gz"> |
127 |
< |
here</a>. |
148 |
> |
Version 0.10.1 of libstatgrab has been released.<br /> |
149 |
> |
Download it from one of our <a href="/mirrors.xhtml">mirrors</a>. |
150 |
|
</p> |
151 |
|
<p> |
152 |
< |
The most significant change in this release is support for |
153 |
< |
NetBSD 1.6.x. Parts of the FreeBSD code have been |
154 |
< |
optimised, and an initialise function has been added to |
155 |
< |
allow programs to drop any extra privileges libstatgrab |
156 |
< |
needs. The list of known file systems has been increased, |
157 |
< |
and libstatgrab has been tested on even more platforms. |
158 |
< |
Finally, saidar has been tweaked to work even if it can't |
159 |
< |
get all the statistics. |
152 |
> |
This release consists almost entirely of bugfixes. |
153 |
> |
We've fixed compile-time errors for recent OpenBSD and |
154 |
> |
NetBSD platforms, and also a minor bug in statgrab |
155 |
> |
that broke network statistics on Solaris. New |
156 |
> |
variables have been added to the pkg-config file to |
157 |
> |
suggest ownership and permissions of binaries, and |
158 |
> |
we've added error reporting functions that store errno |
159 |
> |
values. There's also other minor fixes detailed in the |
160 |
> |
NEWS file. |
161 |
|
</p> |
162 |
|
<h3> |
163 |
< |
Saturday 18 October 2003 |
163 |
> |
Thursday 20 May 2004 |
164 |
|
</h3> |
165 |
|
<p> |
166 |
< |
Version 0.6.1 of libstatgrab has been released.<br /> |
167 |
< |
Download it |
145 |
< |
<a href="http://www.mirror.ac.uk/sites/ftp.i-scream.org/pub/i-scream/libstatgrab/libstatgrab-0.6.1.tar.gz"> |
146 |
< |
here</a>. |
166 |
> |
Version 0.10 of libstatgrab has been released.<br /> |
167 |
> |
Download it from one of our <a href="/mirrors.xhtml">mirrors</a>. |
168 |
|
</p> |
169 |
|
<p> |
170 |
< |
This release brings support for FreeBSD 5 on sparc 64, and |
171 |
< |
some bugfixes in FreeBSD memory statistics. Also, some |
172 |
< |
fixes to saidar, and statgrab. |
170 |
> |
This release concentrates heavily on standardising the names |
171 |
> |
of functions and structures throughout libstatgrab. Although |
172 |
> |
this will mean changes for existing programs, in the long run |
173 |
> |
we hope it'll make things both clearer and easier. However, |
174 |
> |
for those who still need the old functions we have provided |
175 |
> |
compatibility wrappers. See the NEWS file for details. |
176 |
|
</p> |
153 |
– |
<h3> |
154 |
– |
Friday 10 October 2003 |
155 |
– |
</h3> |
177 |
|
<p> |
178 |
< |
Version 0.6 of libstatgrab has been released.<br /> |
179 |
< |
You can download it from our mirror site |
180 |
< |
<a href="http://www.mirror.ac.uk/sites/ftp.i-scream.org/pub/i-scream/libstatgrab/libstatgrab-0.6.tar.gz"> |
181 |
< |
here</a>. |
178 |
> |
The other main change in this release is a new function to |
179 |
> |
provide full details on currently running processes. See the |
180 |
> |
documentation for sg_get_process_stats for details. Along with |
181 |
> |
this there are compare functions for use with qsort for sorting |
182 |
> |
process, network, and disk io statistics. We've also introduced |
183 |
> |
error reporting functions that allow calling applications to |
184 |
> |
see why libstatgrab has returned a failure. See sg_get_error. |
185 |
|
</p> |
186 |
|
<p> |
187 |
< |
This release includes some exciting new tools, support for |
188 |
< |
FreeBSD 5.1, and documentation in manpages. Plus some major |
189 |
< |
bugfixes and packaging enhancements. |
187 |
> |
Finally, we've added support for NetBSD 2.0 and tidied up lots |
188 |
> |
of areas of the code. This release does not include the python |
189 |
> |
bindings - they're now available as their own project called |
190 |
> |
<a href="/pystatgrab/">pystatgrab</a>. |
191 |
|
</p> |
192 |
|
<h3> |
193 |
< |
Tuesday 09 September 2003 |
193 |
> |
Sunday 21 March 2004 |
194 |
|
</h3> |
195 |
|
<p> |
196 |
< |
We're pleased to announce a new release of |
197 |
< |
libstatgrab.<br /> |
198 |
< |
You can download version 0.5.1 from |
174 |
< |
<a href="http://www.mirror.ac.uk/sites/ftp.i-scream.org/pub/i-scream/libstatgrab/libstatgrab-0.5.1.tar.gz"> |
175 |
< |
here</a>. |
196 |
> |
pystatgrab, a new package containing a set of Python |
197 |
> |
bindings, has been released. Check out it's |
198 |
> |
<a href="/pystatgrab/">project page</a>. |
199 |
|
</p> |
200 |
< |
<h3> |
201 |
< |
Monday 25 August 2003 |
202 |
< |
</h3> |
200 |
> |
<h2> |
201 |
> |
<a id="download">Downloading</a> |
202 |
> |
</h2> |
203 |
|
<p> |
204 |
< |
We're pleased to announce a new release of |
205 |
< |
libstatgrab.<br /> |
206 |
< |
You can download version 0.5 from |
207 |
< |
<a href="http://www.mirror.ac.uk/sites/ftp.i-scream.org/pub/i-scream/libstatgrab/libstatgrab-0.5.tar.gz"> |
185 |
< |
here</a>. |
204 |
> |
The latest version of libstatgrab can be downloaded from |
205 |
> |
our <a href="/mirrors.xhtml">mirror sites</a>. |
206 |
> |
All downloads are pgp signed using our |
207 |
> |
<a href="/pgpkey.xhtml">PGP Key</a>. |
208 |
|
</p> |
209 |
|
<p> |
210 |
< |
This release provides both documentation and examples, |
211 |
< |
which we hope will make the package more useable. Stay |
190 |
< |
tuned for the next release with some useful tools. |
210 |
> |
For installation instructions see the README and INSTALL |
211 |
> |
files contained within the archive. |
212 |
|
</p> |
213 |
|
<h2> |
214 |
< |
<a id="what">What is libstatgrab?</a> |
214 |
> |
<a id="bindings">Language Bindings</a> |
215 |
|
</h2> |
216 |
+ |
<ul> |
217 |
+ |
<li> |
218 |
+ |
<a href="/pystatgrab/">Python</a> |
219 |
+ |
</li> |
220 |
+ |
<li> |
221 |
+ |
<a href="http://pecl.php.net/statgrab/">PHP (external)</a> |
222 |
+ |
</li> |
223 |
+ |
<li> |
224 |
+ |
<a href="http://search.cpan.org/dist/Unix-Statgrab/">Perl (external)</a> |
225 |
+ |
</li> |
226 |
+ |
</ul> |
227 |
|
<p> |
228 |
< |
libstatgrab is a library that provides cross platform |
229 |
< |
access to statistics about the system on which it's run. |
230 |
< |
It's written in C and presents a selection of useful |
231 |
< |
interfaces which can be used to access key system |
232 |
< |
statistics. The current list of statistics includes CPU |
201 |
< |
usage, memory utilisation, disk usage, process counts, |
202 |
< |
network traffic, disk I/O, and more. |
228 |
> |
Here are links to bindings for higher level languages |
229 |
> |
that provide access to libstatgrab. If you've written |
230 |
> |
a binding for another language, please get |
231 |
> |
<a href="mailto:dev@i-scream.org">in touch</a> so we |
232 |
> |
can add a link here. |
233 |
|
</p> |
234 |
+ |
<h2> |
235 |
+ |
<a id="packages">Packages of libstatgrab</a> |
236 |
+ |
</h2> |
237 |
+ |
<ul> |
238 |
+ |
<li> |
239 |
+ |
<a href="http://www.freebsd.org/cgi/ports.cgi?query=statgrab&stype=all">FreeBSD</a> |
240 |
+ |
</li> |
241 |
+ |
<li> |
242 |
+ |
<a href="http://packages.gentoo.org/search/?sstring=statgrab">Gentoo Linux</a> |
243 |
+ |
</li> |
244 |
+ |
<li> |
245 |
+ |
<a href="http://www.blastwave.org/packages.php/libstatgrab">Solaris (Blastwave)</a> |
246 |
+ |
</li> |
247 |
+ |
<li> |
248 |
+ |
<a href="http://packages.debian.org/unstable/source/libstatgrab">Debian</a> |
249 |
+ |
</li> |
250 |
+ |
<li> |
251 |
+ |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/devel/libstatgrab/README.html">NetBSD</a> |
252 |
+ |
</li> |
253 |
+ |
</ul> |
254 |
|
<p> |
255 |
< |
The current list of platforms is Solaris 2.x, Linux |
256 |
< |
2.2/2.4/2.6, FreeBSD 4.x/5.x, NetBSD 1.6.x, OpenBSD 3.x, |
257 |
< |
DragonFly BSD 1.0, and Cygwin. The aim is to extend this to |
208 |
< |
include as many operating systems as possible. |
255 |
> |
These are various pre-packaged versions of libstatgrab |
256 |
> |
that you can get for your favourite operating system. If |
257 |
> |
we've missed any out, please let us know. |
258 |
|
</p> |
259 |
|
<p> |
260 |
< |
The package also includes a couple of useful tools. The |
261 |
< |
first, <a href="#screenshot">saidar</a>, provides a |
213 |
< |
curses-based interface to viewing the current state of the |
214 |
< |
system. The second, statgrab, gives a sysctl-style |
215 |
< |
interface to the statistics gathered by libstatgrab. This |
216 |
< |
extends the use of libstatgrab to people writing scripts or |
217 |
< |
anything else that can't easily make C function calls. |
218 |
< |
Included with statgrab is a script to generate an |
219 |
< |
<a href="http://www.mrtg.org">MRTG</a> configuration file |
220 |
< |
to use statgrab. |
260 |
> |
We've noticed that google throws up some RPM's relating |
261 |
> |
to Mandrake and Suse, but no webpage for them. |
262 |
|
</p> |
263 |
+ |
<p> |
264 |
+ |
Several attempts were made to submit a port to the |
265 |
+ |
OpenBSD folk, but they didn't seem interested in taking |
266 |
+ |
it. You can find it |
267 |
+ |
<a href="http://ftp.i-scream.org/pub/i-scream/tmp/libstatgrab-0.11-openbsd-port.tar.gz"> |
268 |
+ |
here</a>. |
269 |
+ |
</p> |
270 |
|
<h2> |
271 |
< |
<a id="download">Downloading</a> |
271 |
> |
<a id="development">Development</a> |
272 |
|
</h2> |
273 |
+ |
<ul> |
274 |
+ |
<li> |
275 |
+ |
<a href="/cgi-bin/cvslog.cgi?period=thisweek&module=projects/libstatgrab">Commits this week</a> |
276 |
+ |
</li> |
277 |
+ |
</ul> |
278 |
|
<p> |
279 |
< |
The latest version of libstatgrab can be downloaded from |
280 |
< |
our primary download |
281 |
< |
<a href="http://www.mirror.ac.uk/sites/ftp.i-scream.org/pub/i-scream/libstatgrab/"> |
282 |
< |
mirror</a>. All downloads are pgp signed using our |
230 |
< |
<a href="/pgpkey.xhtml">PGP Key</a>. |
279 |
> |
We develop libstatgrab using the CVS revision control system. |
280 |
> |
Using this link you can see what changes we've made this week. |
281 |
> |
For more information on our CVS setup see our |
282 |
> |
<a href="/cvs.xhtml">CVS page</a>. |
283 |
|
</p> |
232 |
– |
<p> |
233 |
– |
For installation instructions see the README and INSTALL |
234 |
– |
files contained within the archive. If you're using |
235 |
– |
<a href="http://www.freebsd.org">FreeBSD</a> you can make |
236 |
– |
use of the |
237 |
– |
<a href="http://www.freshports.org/devel/libstatgrab"> |
238 |
– |
devel/libstatgrab</a> port to install libstatgrab for you. |
239 |
– |
</p> |
284 |
|
<h2> |
285 |
|
<a id="documentation">Documentation</a> |
286 |
|
</h2> |
299 |
|
</p> |
300 |
|
<ul> |
301 |
|
<li> |
302 |
< |
<a href="cpu_percent_usage.html">cpu_percent_usage(3)</a> |
302 |
> |
<a href="sg_get_cpu_stats.html">sg_get_cpu_stats(3)</a> |
303 |
|
</li> |
304 |
|
<li> |
305 |
< |
<a href="get_diskio_stats.html">get_diskio_stats(3)</a> |
305 |
> |
<a href="sg_get_disk_io_stats.html">sg_get_disk_io_stats(3)</a> |
306 |
|
</li> |
307 |
|
<li> |
308 |
< |
<a href="get_general_stats.html">get_general_stats(3)</a> |
308 |
> |
<a href="sg_get_fs_stats.html">sg_get_fs_stats(3)</a> |
309 |
|
</li> |
310 |
|
<li> |
311 |
< |
<a href="get_load_stats.html">get_load_stats(3)</a> |
311 |
> |
<a href="sg_get_host_info.html">sg_get_host_info(3)</a> |
312 |
|
</li> |
313 |
|
<li> |
314 |
< |
<a href="get_memory_stats.html">get_memory_stats(3)</a> |
314 |
> |
<a href="sg_get_load_stats.html">sg_get_load_stats(3)</a> |
315 |
|
</li> |
316 |
|
<li> |
317 |
< |
<a href="get_network_iface_stats.html">get_network_iface_stats(3)</a> |
317 |
> |
<a href="sg_get_mem_stats.html">sg_get_mem_stats(3)</a> |
318 |
|
</li> |
319 |
|
<li> |
320 |
< |
<a href="get_network_stats.html">get_network_stats(3)</a> |
320 |
> |
<a href="sg_get_network_iface_stats.html">sg_get_network_iface_stats(3)</a> |
321 |
|
</li> |
322 |
|
<li> |
323 |
< |
<a href="get_page_stats.html">get_page_stats(3)</a> |
323 |
> |
<a href="sg_get_network_io_stats.html">sg_get_network_io_stats(3)</a> |
324 |
|
</li> |
325 |
|
<li> |
326 |
< |
<a href="get_process_stats.html">get_process_stats(3)</a> |
326 |
> |
<a href="sg_get_page_stats.html">sg_get_page_stats(3)</a> |
327 |
|
</li> |
328 |
|
<li> |
329 |
< |
<a href="get_user_stats.html">get_user_stats(3)</a> |
329 |
> |
<a href="sg_get_process_stats.html">sg_get_process_stats(3)</a> |
330 |
> |
</li> |
331 |
> |
<li> |
332 |
> |
<a href="sg_get_user_stats.html">sg_get_user_stats(3)</a> |
333 |
|
</li> |
334 |
|
</ul> |
335 |
|
<h2> |