1 <!--#include virtual="/doctype.inc" -->
4 i-scream libstatgrab homepage
6 <!--#include virtual="/style.inc" -->
11 <!--#include virtual="/header.inc" -->
14 i-scream libstatgrab homepage
19 <a href="#what">What is libstatgrab?</a>
22 <a href="#news">News</a>
25 <a href="#download">Downloading</a>
28 <a href="#bindings">Language Bindings</a>
31 <a href="#packages">Packages</a>
34 <a href="#development">Development</a>
37 <a href="#documentation">Documentation</a>
40 <a href="#screenshot">Screenshot</a>
44 <!--#include virtual="/bannerad.inc" -->
46 <a id="what">What is libstatgrab?</a>
49 libstatgrab is a library that provides cross platform
50 access to statistics about the system on which it's run.
51 It's written in C and presents a selection of useful
52 interfaces which can be used to access key system
53 statistics. The current list of statistics includes CPU
54 usage, memory utilisation, disk usage, process counts,
55 network traffic, disk I/O, and more.
58 The current list of platforms is Solaris 2.x, Linux
59 2.2/2.4/2.6, FreeBSD 4.x/5.x, NetBSD 1.6.x, OpenBSD 3.x,
60 DragonFly BSD 1.0, HP-UX, and Cygwin. The aim is to extend
61 this to include as many operating systems as possible.
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
79 To get notifications of new libstatgrab releases why not
80 subscribe to our project over on
81 <a href="http://freshmeat.net/projects/libstatgrab/">freshmeat</a>?
87 Version 0.15 of libstatgrab has been released.<br />
88 Download it from one of our <a href="/mirrors.xhtml">mirrors</a>.
91 This release fixes a regression introduced on OpenBSD in
92 the last release - memory statistics were reported
93 incorrectly. Some other minor changes have been made, see
94 the NEWS file for more information.
100 Version 0.14 of libstatgrab has been released.<br />
101 Download it from one of our <a href="/mirrors.xhtml">mirrors</a>.
104 This release contains mainly bugfixes - see the NEWS file
105 in the distribution for a full list. It also brings a new
106 feature in saidar: colour support, which can be activated
107 with the -c runtime flag.
113 Version 0.13 of libstatgrab has been released.<br />
114 Download it from one of our <a href="/mirrors.xhtml">mirrors</a>.
117 This release mainly includes a bunch of bug fixes, but
118 also brings preliminary support for WIN32. We've also
119 added a few lines to the header file to make C++ linking
120 easier. Please see the NEWS file in the distribution for
127 Version 0.12 of libstatgrab has been released.<br />
128 Download it from one of our <a href="/mirrors.xhtml">mirrors</a>.
131 This release has some new features, bug fixes, and a minor
132 API change. More details have been added to the file
133 system statistics, linux partition detection has been
134 reworked, and compile errors on Linux 2.6 have been fixed.
135 Support has been added for Solaris 10 and FreeBSD 7.
136 There are also manual pages for all the tools.
139 The duplex value in the network interface statistics has
140 changed name from "dup" to "duplex" - this breaks the API.
141 We plan to stabilise the API for a 1.0 release. As before,
142 the old name is available if SG_ENABLE_DEPRECATED is
146 Tuesday 26 April 2005
149 Official libstatgrab packages for Debian now
150 <a href="http://packages.debian.org/unstable/source/libstatgrab">available</a>.
153 Thanks to the work of
154 <a href="mailto:fenio@debian.org">Bartosz Fenski</a>
155 libstatgrab is now available on debian. This replaces our
156 unofficial debian packages which will no longer be
160 Thursday 3 March 2005
163 Version 0.11.1 of libstatgrab has been released.<br />
164 Download it from one of our <a href="/mirrors.xhtml">mirrors</a>.
167 This release fixes a handful of minor bugs. Duplex
168 settings were reported incorrectly on linux (half and
169 full duplex were swapped), saidar displayed negative
170 filesystem stats incorrectly, and NFS filesystems were
171 ignored. These have all been fixed.
174 Friday 12 November 2004
177 Version 0.11 of libstatgrab has been released.<br />
178 Download it from one of our <a href="/mirrors.xhtml">mirrors</a>.
181 This release brings support for HP-UX (version 11.11), and
182 also fixes a few other minor issues.
185 Wednesday 25 August 2004
188 Version 0.10.3 of libstatgrab has been released.<br />
189 Download it from one of our <a href="/mirrors.xhtml">mirrors</a>.
192 This release adds a handful of new features to statgrab, and
193 adds support for FreeBSD 6.0-CURRENT. See the NEWS file in
194 the tarball for more details.
200 Version 0.10.2 of libstatgrab has been released.<br />
201 Download it from one of our <a href="/mirrors.xhtml">mirrors</a>.
204 This release fixes a problem with the shared library
205 version number in the last release.
211 Version 0.10.1 of libstatgrab has been released.<br />
212 Download it from one of our <a href="/mirrors.xhtml">mirrors</a>.
215 This release consists almost entirely of bugfixes.
216 We've fixed compile-time errors for recent OpenBSD and
217 NetBSD platforms, and also a minor bug in statgrab
218 that broke network statistics on Solaris. New
219 variables have been added to the pkg-config file to
220 suggest ownership and permissions of binaries, and
221 we've added error reporting functions that store errno
222 values. There's also other minor fixes detailed in the
229 Version 0.10 of libstatgrab has been released.<br />
230 Download it from one of our <a href="/mirrors.xhtml">mirrors</a>.
233 This release concentrates heavily on standardising the names
234 of functions and structures throughout libstatgrab. Although
235 this will mean changes for existing programs, in the long run
236 we hope it'll make things both clearer and easier. However,
237 for those who still need the old functions we have provided
238 compatibility wrappers. See the NEWS file for details.
241 The other main change in this release is a new function to
242 provide full details on currently running processes. See the
243 documentation for sg_get_process_stats for details. Along with
244 this there are compare functions for use with qsort for sorting
245 process, network, and disk io statistics. We've also introduced
246 error reporting functions that allow calling applications to
247 see why libstatgrab has returned a failure. See sg_get_error.
250 Finally, we've added support for NetBSD 2.0 and tidied up lots
251 of areas of the code. This release does not include the python
252 bindings - they're now available as their own project called
253 <a href="/pystatgrab/">pystatgrab</a>.
259 pystatgrab, a new package containing a set of Python
260 bindings, has been released. Check out its
261 <a href="/pystatgrab/">project page</a>.
264 <a id="download">Downloading</a>
267 The latest version of libstatgrab can be downloaded from
268 our <a href="/mirrors.xhtml">mirror sites</a>.
269 All downloads are pgp signed using our
270 <a href="/pgpkey.xhtml">PGP Key</a>.
273 For installation instructions see the README and INSTALL
274 files contained within the archive.
277 <a id="bindings">Language Bindings</a>
281 <a href="/pystatgrab/">Python</a>
284 <a href="http://pecl.php.net/statgrab/">PHP (external)</a>
287 <a href="http://search.cpan.org/dist/Unix-Statgrab/">Perl (external)</a>
291 Here are links to bindings for higher level languages
292 that provide access to libstatgrab. If you've written
293 a binding for another language, please get
294 <a href="mailto:support@i-scream.org">in touch</a> so we
298 <a id="packages">Packages of libstatgrab</a>
302 <a href="http://www.freebsd.org/cgi/ports.cgi?query=statgrab&stype=all">FreeBSD</a>
305 <a href="http://packages.gentoo.org/search/?sstring=libstatgrab">Gentoo Linux</a>
308 <a href="http://www.blastwave.org/packages.php/libstatgrab">Solaris (Blastwave)</a>
311 <a href="http://www.sunfreeware.com/">Solaris (SunFreeware)</a>
314 <a href="http://packages.debian.org/unstable/source/libstatgrab">Debian</a>
317 <a href="ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/devel/libstatgrab/README.html">NetBSD</a>
320 <a href="http://software.opensuse.org/download/home:/anagappan/">RPMs for various Linux distributions</a>
323 <a href="http://www.openbsd.org/cgi-bin/cvsweb/ports/sysutils/libstatgrab/">OpenBSD</a>
327 These are various pre-packaged versions of libstatgrab
328 that you can get for your favourite operating system. If
329 we've missed any out, please let us know.
332 We've noticed that google throws up some RPM's relating
333 to Mandrake and Suse, but no webpage for them.
336 <a id="development">Development</a>
340 <a href="/cgi-bin/cvslog.cgi?period=thisweek&module=projects/libstatgrab">Commits this week</a>
344 We develop libstatgrab using the CVS revision control system.
345 Using this link you can see what changes we've made this week.
346 For more information on our CVS setup see our
347 <a href="/cvs.xhtml">CVS page</a>.
350 <a id="documentation">Documentation</a>
353 The only online documentation we have at the moment is the
354 manual pages converted in to HTML format. First are the
355 manual pages for the command line tools:
359 <a href="docs/saidar.1.html">saidar(1)</a>
362 <a href="docs/statgrab.1.html">statgrab(1)</a>
365 <a href="docs/statgrab-make-mrtg-config.1.html">statgrab-make-mrtg-config(1)</a>
368 <a href="docs/statgrab-make-mrtg-index.1.html">statgrab-make-mrtg-index(1)</a>
372 We also have an overview page for the library:
376 <a href="docs/statgrab.3.html">statgrab(3)</a>
380 Then we have the manual pages for each function:
384 <a href="docs/sg_get_cpu_stats.3.html">sg_get_cpu_stats(3)</a>
387 <a href="docs/sg_get_disk_io_stats.3.html">sg_get_disk_io_stats(3)</a>
390 <a href="docs/sg_get_fs_stats.3.html">sg_get_fs_stats(3)</a>
393 <a href="docs/sg_get_host_info.3.html">sg_get_host_info(3)</a>
396 <a href="docs/sg_get_load_stats.3.html">sg_get_load_stats(3)</a>
399 <a href="docs/sg_get_mem_stats.3.html">sg_get_mem_stats(3)</a>
402 <a href="docs/sg_get_network_iface_stats.3.html">sg_get_network_iface_stats(3)</a>
405 <a href="docs/sg_get_network_io_stats.3.html">sg_get_network_io_stats(3)</a>
408 <a href="docs/sg_get_page_stats.3.html">sg_get_page_stats(3)</a>
411 <a href="docs/sg_get_process_stats.3.html">sg_get_process_stats(3)</a>
414 <a href="docs/sg_get_user_stats.3.html">sg_get_user_stats(3)</a>
418 <a id="screenshot">Screenshot</a>
421 Here's what saidar looks like when it's running:
424 <img src="saidar.png" alt="saidar screenshot" />
427 <!--#include virtual="/footer.inc" -->
429 <!--#include virtual="/menu.inc" -->