1 |
<!--#include virtual="/doctype.inc" --> |
2 |
<head> |
3 |
<title> |
4 |
libstatgrab homepage |
5 |
</title> |
6 |
<!--#include virtual="/style.inc" --> |
7 |
</head> |
8 |
<body> |
9 |
<div id="container"> |
10 |
<div id="main"> |
11 |
<!--#include virtual="/header.inc" --> |
12 |
<div id="contents"> |
13 |
<h1 class="top"> |
14 |
libstatgrab homepage |
15 |
</h1> |
16 |
<div id="topnav"> |
17 |
<ul> |
18 |
<li> |
19 |
<a href="#what">What is libstatgrab?</a> |
20 |
</li> |
21 |
<li> |
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> |
40 |
<a href="#screenshot">Screenshot</a> |
41 |
</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 supported and tested platforms |
58 |
includes FreeBSD, Linux, NetBSD, OpenBSD, Solaris, |
59 |
DragonFly BSD, HP-UX and AIX. We are always happy to |
60 |
accept patches to extend support to other operating |
61 |
systems. |
62 |
</p> |
63 |
<p> |
64 |
The package also includes a couple of useful tools. The |
65 |
first, <a href="#screenshot">saidar</a>, provides a |
66 |
curses-based interface to viewing the current state of the |
67 |
system. The second, statgrab, gives a sysctl-style |
68 |
interface to the statistics gathered by libstatgrab. This |
69 |
extends the use of libstatgrab to people writing scripts or |
70 |
anything else that can't easily make C function calls. |
71 |
Included with statgrab is a script to generate an |
72 |
<a href="http://www.mrtg.org">MRTG</a> configuration file |
73 |
to use statgrab. |
74 |
</p> |
75 |
<h2> |
76 |
<a id="news">News</a> |
77 |
</h2> |
78 |
<h3> |
79 |
Thursday 8 August 2013 |
80 |
</h3> |
81 |
<p> |
82 |
Version 0.90 of libstatgrab has been released.<br /> |
83 |
Download it from one of our <a href="/mirrors.xhtml">mirrors</a>. |
84 |
</p> |
85 |
<p> |
86 |
Please note that the API in 0.90 has changed, so |
87 |
applications using libstatgrab will need to be updated to |
88 |
support the changes. |
89 |
</p> |
90 |
<p> |
91 |
There are a large number of changes in this version of |
92 |
libstatgrab. Here is an overview: |
93 |
</p> |
94 |
<ul> |
95 |
<li>Thread safety and reentrant functions.</li> |
96 |
<li>API unification (every stats call is now able to |
97 |
return multiple entries).</li> |
98 |
<li>Complete rewrite of internal memory management (eases |
99 |
future extensions).</li> |
100 |
<li>Add experimental support for tracing using log4cplus.</li> |
101 |
<li>Complete the ports for AIX, HP-UX and most of the |
102 |
widely used BSD-based operating systems.</li> |
103 |
<li>Complete the port for Darwin/MacOS X including basic |
104 |
Mach.</li> |
105 |
<li>Clean up the FreeBSD and Solaris implementations.</li> |
106 |
<li>Clean up the FreeBSD and Solaris implementations.</li> |
107 |
</ul> |
108 |
<p> |
109 |
This release is the result of a significant amount of work |
110 |
by the newest member of the libstatgrab team - Jens |
111 |
Rehsack. Welcome to the team Jens! |
112 |
</p> |
113 |
<p> |
114 |
If you find any bugs in the release please report them |
115 |
over at our |
116 |
<a href="https://github.com/i-scream/libstatgrab/issues">Issue |
117 |
Tracker</a> on GitHub. |
118 |
</p> |
119 |
<h3> |
120 |
Sunday 21 February 2010 |
121 |
</h3> |
122 |
<p> |
123 |
Version 0.17 of libstatgrab has been released.<br /> |
124 |
Download it from one of our <a href="/mirrors.xhtml">mirrors</a>. |
125 |
</p> |
126 |
<p> |
127 |
This release adds support for FreeBSD 9 and other systems |
128 |
using utmpx. Also on FreeBSD it fixes an issue with large |
129 |
quantities of memory and adds support for dynamically |
130 |
getting a list of supported file systems. On Solaris ZFS |
131 |
file systems will now be detected. And finally on Linux CPU |
132 |
iowait information will be given where available. |
133 |
</p> |
134 |
<h3> |
135 |
Friday 30 May 2008 |
136 |
</h3> |
137 |
<p> |
138 |
Dag Odenhall got in touch today to let us know he's written |
139 |
<a href="http://statgrab.rubyforge.org/">Ruby bindings</a> |
140 |
for libstatgrab. Thanks Dag! |
141 |
</p> |
142 |
<h3> |
143 |
Monday 17 March 2008 |
144 |
</h3> |
145 |
<p> |
146 |
Version 0.16 of libstatgrab has been released.<br /> |
147 |
Download it from one of our <a href="/mirrors.xhtml">mirrors</a>. |
148 |
</p> |
149 |
<p> |
150 |
This release fixes some minor build problems on Solaris |
151 |
with Sun's compiler, and on the Debian "armel" port. Also |
152 |
a minor fix to statgrab-make-mrtg-config on machines with |
153 |
no swap, and added support for FreeBSD 8. |
154 |
</p> |
155 |
<h3> |
156 |
Saturday 14 July 2007 |
157 |
</h3> |
158 |
<p> |
159 |
Version 0.15 of libstatgrab has been released.<br /> |
160 |
Download it from one of our <a href="/mirrors.xhtml">mirrors</a>. |
161 |
</p> |
162 |
<p> |
163 |
This release fixes a regression introduced on OpenBSD in |
164 |
the last release - memory statistics were reported |
165 |
incorrectly. Some other minor changes have been made, see |
166 |
the NEWS file for more information. |
167 |
</p> |
168 |
<h3> |
169 |
Monday 8 January 2007 |
170 |
</h3> |
171 |
<p> |
172 |
Version 0.14 of libstatgrab has been released.<br /> |
173 |
Download it from one of our <a href="/mirrors.xhtml">mirrors</a>. |
174 |
</p> |
175 |
<p> |
176 |
This release contains mainly bugfixes - see the NEWS file |
177 |
in the distribution for a full list. It also brings a new |
178 |
feature in saidar: colour support, which can be activated |
179 |
with the -c runtime flag. |
180 |
</p> |
181 |
<h3> |
182 |
Monday 20 March 2006 |
183 |
</h3> |
184 |
<p> |
185 |
Version 0.13 of libstatgrab has been released.<br /> |
186 |
Download it from one of our <a href="/mirrors.xhtml">mirrors</a>. |
187 |
</p> |
188 |
<p> |
189 |
This release mainly includes a bunch of bug fixes, but |
190 |
also brings preliminary support for WIN32. We've also |
191 |
added a few lines to the header file to make C++ linking |
192 |
easier. Please see the NEWS file in the distribution for |
193 |
full details. |
194 |
</p> |
195 |
<h3> |
196 |
Sunday 31 July 2005 |
197 |
</h3> |
198 |
<p> |
199 |
Version 0.12 of libstatgrab has been released.<br /> |
200 |
Download it from one of our <a href="/mirrors.xhtml">mirrors</a>. |
201 |
</p> |
202 |
<p> |
203 |
This release has some new features, bug fixes, and a minor |
204 |
API change. More details have been added to the file |
205 |
system statistics, linux partition detection has been |
206 |
reworked, and compile errors on Linux 2.6 have been fixed. |
207 |
Support has been added for Solaris 10 and FreeBSD 7. |
208 |
There are also manual pages for all the tools. |
209 |
</p> |
210 |
<p> |
211 |
The duplex value in the network interface statistics has |
212 |
changed name from "dup" to "duplex" - this breaks the API. |
213 |
We plan to stabilise the API for a 1.0 release. As before, |
214 |
the old name is available if SG_ENABLE_DEPRECATED is |
215 |
defined. |
216 |
</p> |
217 |
<h3> |
218 |
Tuesday 26 April 2005 |
219 |
</h3> |
220 |
<p> |
221 |
Official libstatgrab packages for Debian now |
222 |
<a href="http://packages.debian.org/unstable/source/libstatgrab">available</a>. |
223 |
</p> |
224 |
<p> |
225 |
Thanks to the work of |
226 |
<a href="mailto:fenio@debian.org">Bartosz Fenski</a> |
227 |
libstatgrab is now available on debian. This replaces our |
228 |
unofficial debian packages which will no longer be |
229 |
updated. |
230 |
</p> |
231 |
<h3> |
232 |
Thursday 3 March 2005 |
233 |
</h3> |
234 |
<p> |
235 |
Version 0.11.1 of libstatgrab has been released.<br /> |
236 |
Download it from one of our <a href="/mirrors.xhtml">mirrors</a>. |
237 |
</p> |
238 |
<p> |
239 |
This release fixes a handful of minor bugs. Duplex |
240 |
settings were reported incorrectly on linux (half and |
241 |
full duplex were swapped), saidar displayed negative |
242 |
filesystem stats incorrectly, and NFS filesystems were |
243 |
ignored. These have all been fixed. |
244 |
</p> |
245 |
<h3> |
246 |
Friday 12 November 2004 |
247 |
</h3> |
248 |
<p> |
249 |
Version 0.11 of libstatgrab has been released.<br /> |
250 |
Download it from one of our <a href="/mirrors.xhtml">mirrors</a>. |
251 |
</p> |
252 |
<p> |
253 |
This release brings support for HP-UX (version 11.11), and |
254 |
also fixes a few other minor issues. |
255 |
</p> |
256 |
<h3> |
257 |
Wednesday 25 August 2004 |
258 |
</h3> |
259 |
<p> |
260 |
Version 0.10.3 of libstatgrab has been released.<br /> |
261 |
Download it from one of our <a href="/mirrors.xhtml">mirrors</a>. |
262 |
</p> |
263 |
<p> |
264 |
This release adds a handful of new features to statgrab, and |
265 |
adds support for FreeBSD 6.0-CURRENT. See the NEWS file in |
266 |
the tarball for more details. |
267 |
</p> |
268 |
<h3> |
269 |
Tuesday 27 July 2004 |
270 |
</h3> |
271 |
<p> |
272 |
Version 0.10.2 of libstatgrab has been released.<br /> |
273 |
Download it from one of our <a href="/mirrors.xhtml">mirrors</a>. |
274 |
</p> |
275 |
<p> |
276 |
This release fixes a problem with the shared library |
277 |
version number in the last release. |
278 |
</p> |
279 |
<h3> |
280 |
Monday 26 July 2004 |
281 |
</h3> |
282 |
<p> |
283 |
Version 0.10.1 of libstatgrab has been released.<br /> |
284 |
Download it from one of our <a href="/mirrors.xhtml">mirrors</a>. |
285 |
</p> |
286 |
<p> |
287 |
This release consists almost entirely of bugfixes. |
288 |
We've fixed compile-time errors for recent OpenBSD and |
289 |
NetBSD platforms, and also a minor bug in statgrab |
290 |
that broke network statistics on Solaris. New |
291 |
variables have been added to the pkg-config file to |
292 |
suggest ownership and permissions of binaries, and |
293 |
we've added error reporting functions that store errno |
294 |
values. There's also other minor fixes detailed in the |
295 |
NEWS file. |
296 |
</p> |
297 |
<h3> |
298 |
Thursday 20 May 2004 |
299 |
</h3> |
300 |
<p> |
301 |
Version 0.10 of libstatgrab has been released.<br /> |
302 |
Download it from one of our <a href="/mirrors.xhtml">mirrors</a>. |
303 |
</p> |
304 |
<p> |
305 |
This release concentrates heavily on standardising the names |
306 |
of functions and structures throughout libstatgrab. Although |
307 |
this will mean changes for existing programs, in the long run |
308 |
we hope it'll make things both clearer and easier. However, |
309 |
for those who still need the old functions we have provided |
310 |
compatibility wrappers. See the NEWS file for details. |
311 |
</p> |
312 |
<p> |
313 |
The other main change in this release is a new function to |
314 |
provide full details on currently running processes. See the |
315 |
documentation for sg_get_process_stats for details. Along with |
316 |
this there are compare functions for use with qsort for sorting |
317 |
process, network, and disk io statistics. We've also introduced |
318 |
error reporting functions that allow calling applications to |
319 |
see why libstatgrab has returned a failure. See sg_get_error. |
320 |
</p> |
321 |
<p> |
322 |
Finally, we've added support for NetBSD 2.0 and tidied up lots |
323 |
of areas of the code. This release does not include the python |
324 |
bindings - they're now available as their own project called |
325 |
<a href="/pystatgrab/">pystatgrab</a>. |
326 |
</p> |
327 |
<h3> |
328 |
Sunday 21 March 2004 |
329 |
</h3> |
330 |
<p> |
331 |
pystatgrab, a new package containing a set of Python |
332 |
bindings, has been released. Check out its |
333 |
<a href="/pystatgrab/">project page</a>. |
334 |
</p> |
335 |
<h2> |
336 |
<a id="download">Downloading</a> |
337 |
</h2> |
338 |
<p> |
339 |
The latest version of libstatgrab can be downloaded from |
340 |
our <a href="/mirrors.xhtml">mirror sites</a>. |
341 |
All downloads are pgp signed using our |
342 |
<a href="/pgpkey.xhtml">PGP Key</a>. |
343 |
</p> |
344 |
<p> |
345 |
For installation instructions see the README and INSTALL |
346 |
files contained within the archive. |
347 |
</p> |
348 |
<h2> |
349 |
<a id="bindings">Language Bindings</a> |
350 |
</h2> |
351 |
<ul> |
352 |
<li> |
353 |
<a href="/pystatgrab/">Python</a> |
354 |
</li> |
355 |
<li> |
356 |
<a href="http://pecl.php.net/statgrab/">PHP</a> |
357 |
</li> |
358 |
<li> |
359 |
<a href="http://search.cpan.org/dist/Unix-Statgrab/">Perl</a> |
360 |
</li> |
361 |
<li> |
362 |
<a href="http://statgrab.rubyforge.org/">Ruby</a> |
363 |
</li> |
364 |
</ul> |
365 |
<p> |
366 |
Here are links to bindings for higher level languages |
367 |
that provide access to libstatgrab. If you've written |
368 |
a binding for another language, please get in touch so we |
369 |
can add a link here. |
370 |
</p> |
371 |
<h2> |
372 |
<a id="packages">Packages of libstatgrab</a> |
373 |
</h2> |
374 |
<ul> |
375 |
<li> |
376 |
<a href="http://www.freebsd.org/cgi/ports.cgi?query=statgrab&stype=all">FreeBSD</a> |
377 |
</li> |
378 |
<li> |
379 |
<a href="http://packages.gentoo.org/search/?sstring=libstatgrab">Gentoo Linux</a> |
380 |
</li> |
381 |
<li> |
382 |
<a href="http://www.blastwave.org/packages.php/libstatgrab">Solaris (Blastwave)</a> |
383 |
</li> |
384 |
<li> |
385 |
<a href="http://www.sunfreeware.com/">Solaris (SunFreeware)</a> |
386 |
</li> |
387 |
<li> |
388 |
<a href="http://www.opencsw.org/packages/libstatgrab/">Solaris (OpenCSW)</a> |
389 |
</li> |
390 |
<li> |
391 |
<a href="http://packages.debian.org/unstable/source/libstatgrab">Debian</a> |
392 |
</li> |
393 |
<li> |
394 |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/devel/libstatgrab/README.html">NetBSD</a> |
395 |
</li> |
396 |
<li> |
397 |
<a href="http://software.opensuse.org/download/home:/anagappan/">RPMs for various Linux distributions</a> |
398 |
</li> |
399 |
<li> |
400 |
<a href="http://www.openbsd.org/cgi-bin/cvsweb/ports/sysutils/libstatgrab/">OpenBSD</a> |
401 |
</li> |
402 |
</ul> |
403 |
<p> |
404 |
These are various pre-packaged versions of libstatgrab |
405 |
that you can get for your favourite operating system. If |
406 |
we've missed any out, please let us know. |
407 |
</p> |
408 |
<p> |
409 |
We've noticed that Google throws up some RPM's relating |
410 |
to Mandrake and Suse, but no webpage for them. |
411 |
</p> |
412 |
<h2> |
413 |
<a id="documentation">Documentation</a> |
414 |
</h2> |
415 |
<em>These need updating for the 0.90 release.</em> |
416 |
<p> |
417 |
The only online documentation we have at the moment is the |
418 |
manual pages converted in to HTML format. First are the |
419 |
manual pages for the command line tools: |
420 |
</p> |
421 |
<ul> |
422 |
<li> |
423 |
<a href="docs/saidar.1.html">saidar(1)</a> |
424 |
</li> |
425 |
<li> |
426 |
<a href="docs/statgrab.1.html">statgrab(1)</a> |
427 |
</li> |
428 |
<li> |
429 |
<a href="docs/statgrab-make-mrtg-config.1.html">statgrab-make-mrtg-config(1)</a> |
430 |
</li> |
431 |
<li> |
432 |
<a href="docs/statgrab-make-mrtg-index.1.html">statgrab-make-mrtg-index(1)</a> |
433 |
</li> |
434 |
</ul> |
435 |
<p> |
436 |
We also have an overview page for the library: |
437 |
</p> |
438 |
<ul> |
439 |
<li> |
440 |
<a href="docs/statgrab.3.html">statgrab(3)</a> |
441 |
</li> |
442 |
</ul> |
443 |
<p> |
444 |
Then we have the manual pages for each function: |
445 |
</p> |
446 |
<ul> |
447 |
<li> |
448 |
<a href="docs/sg_comp_init.3.html">sg_comp_init(3)</a> |
449 |
</li> |
450 |
<li> |
451 |
<a href="docs/sg_get_cpu_stats.3.html">sg_get_cpu_stats(3)</a> |
452 |
</li> |
453 |
<li> |
454 |
<a href="docs/sg_get_disk_io_stats.3.html">sg_get_disk_io_stats(3)</a> |
455 |
</li> |
456 |
<li> |
457 |
<a href="docs/sg_get_error.3.html">sg_get_error(3)</a> |
458 |
</li> |
459 |
<li> |
460 |
<a href="docs/sg_get_fs_stats.3.html">sg_get_fs_stats(3)</a> |
461 |
</li> |
462 |
<li> |
463 |
<a href="docs/sg_get_host_info.3.html">sg_get_host_info(3)</a> |
464 |
</li> |
465 |
<li> |
466 |
<a href="docs/sg_get_load_stats.3.html">sg_get_load_stats(3)</a> |
467 |
</li> |
468 |
<li> |
469 |
<a href="docs/sg_get_mem_stats.3.html">sg_get_mem_stats(3)</a> |
470 |
</li> |
471 |
<li> |
472 |
<a href="docs/sg_get_network_iface_stats.3.html">sg_get_network_iface_stats(3)</a> |
473 |
</li> |
474 |
<li> |
475 |
<a href="docs/sg_get_network_io_stats.3.html">sg_get_network_io_stats(3)</a> |
476 |
</li> |
477 |
<li> |
478 |
<a href="docs/sg_get_page_stats.3.html">sg_get_page_stats(3)</a> |
479 |
</li> |
480 |
<li> |
481 |
<a href="docs/sg_get_process_stats.3.html">sg_get_process_stats(3)</a> |
482 |
</li> |
483 |
<li> |
484 |
<a href="docs/sg_get_user_stats.3.html">sg_get_user_stats(3)</a> |
485 |
</li> |
486 |
<li> |
487 |
<a href="docs/sg_init.3.html">sg_init(3)</a> |
488 |
</li> |
489 |
<li> |
490 |
<a href="docs/sg_internal-intro.3.html">sg_internal-intro(3)</a> |
491 |
</li> |
492 |
<li> |
493 |
<a href="docs/sg_intro.3.html">sg_intro(3)</a> |
494 |
</li> |
495 |
<li> |
496 |
<a href="docs/sg_lock_mutex.3.html">sg_lock_mutex(3)</a> |
497 |
</li> |
498 |
<li> |
499 |
<a href="docs/sg_set_error.3.html">sg_set_error(3)</a> |
500 |
</li> |
501 |
<li> |
502 |
<a href="docs/sg_vector_create.3.html">sg_vector_create(3)</a> |
503 |
</li> |
504 |
</ul> |
505 |
<h2> |
506 |
<a id="screenshot">Screenshot</a> |
507 |
</h2> |
508 |
<p> |
509 |
Here's what saidar looks like when it's running: |
510 |
</p> |
511 |
<p> |
512 |
<img src="saidar.png" alt="saidar screenshot" /> |
513 |
</p> |
514 |
</div> |
515 |
<!--#include virtual="/footer.inc" --> |
516 |
</div> |
517 |
<!--#include virtual="/menu.inc" --> |
518 |
</div> |
519 |
</body> |
520 |
</html> |