| 1 |
<?xml version="1.0"?> |
| 2 |
|
| 3 |
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" |
| 4 |
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> |
| 5 |
|
| 6 |
<refentry id="statgrab"> |
| 7 |
|
| 8 |
<refentryinfo> |
| 9 |
<date>$Date$</date> |
| 10 |
<releaseinfo>$Id$</releaseinfo> |
| 11 |
</refentryinfo> |
| 12 |
|
| 13 |
<refmeta> |
| 14 |
<refentrytitle>statgrab</refentrytitle> |
| 15 |
<manvolnum>3</manvolnum> |
| 16 |
<refmiscinfo>i-scream</refmiscinfo> |
| 17 |
</refmeta> |
| 18 |
|
| 19 |
<refnamediv> |
| 20 |
<refname>statgrab</refname> |
| 21 |
<refpurpose>get system statistics</refpurpose> |
| 22 |
</refnamediv> |
| 23 |
|
| 24 |
<refsynopsisdiv> |
| 25 |
<funcsynopsis> |
| 26 |
<funcsynopsisinfo>#include <statgrab.h></funcsynopsisinfo> |
| 27 |
|
| 28 |
<funcprototype> |
| 29 |
<funcdef>cpu_percent_t *<function>cpu_percent_usage</function></funcdef> |
| 30 |
<void/> |
| 31 |
</funcprototype> |
| 32 |
<funcprototype> |
| 33 |
<funcdef>cpu_states_t *<function>get_cpu_totals</function></funcdef> |
| 34 |
<void/> |
| 35 |
</funcprototype> |
| 36 |
<funcprototype> |
| 37 |
<funcdef>cpu_states_t *<function>get_cpu_diff</function></funcdef> |
| 38 |
<void/> |
| 39 |
</funcprototype> |
| 40 |
|
| 41 |
<funcprototype> |
| 42 |
<funcdef>diskio_stat_t *<function>get_diskio_stats</function></funcdef> |
| 43 |
<paramdef>int *<parameter>entries</parameter></paramdef> |
| 44 |
</funcprototype> |
| 45 |
<funcprototype> |
| 46 |
<funcdef>diskio_stat_t *<function>get_diskio_stats_diff</function></funcdef> |
| 47 |
<paramdef>int *<parameter>entries</parameter></paramdef> |
| 48 |
</funcprototype> |
| 49 |
|
| 50 |
<funcprototype> |
| 51 |
<funcdef>general_stat_t *<function>get_general_stats</function></funcdef> |
| 52 |
<void/> |
| 53 |
</funcprototype> |
| 54 |
|
| 55 |
<funcprototype> |
| 56 |
<funcdef>load_stat_t *<function>get_load_stats</function></funcdef> |
| 57 |
<void/> |
| 58 |
</funcprototype> |
| 59 |
|
| 60 |
<funcprototype> |
| 61 |
<funcdef>mem_stat_t *<function>get_memory_stats</function></funcdef> |
| 62 |
<void/> |
| 63 |
</funcprototype> |
| 64 |
<funcprototype> |
| 65 |
<funcdef>swap_stat_t *<function>get_swap_stats</function></funcdef> |
| 66 |
<void/> |
| 67 |
</funcprototype> |
| 68 |
|
| 69 |
<funcprototype> |
| 70 |
<funcdef>network_stat_t *<function>get_network_stats</function></funcdef> |
| 71 |
<paramdef>int *<parameter>entries</parameter></paramdef> |
| 72 |
</funcprototype> |
| 73 |
<funcprototype> |
| 74 |
<funcdef>network_stat_t *<function>get_network_stats_diff</function></funcdef> |
| 75 |
<paramdef>int *<parameter>entries</parameter></paramdef> |
| 76 |
</funcprototype> |
| 77 |
|
| 78 |
<funcprototype> |
| 79 |
<funcdef>page_stat_t *<function>get_page_stats</function></funcdef> |
| 80 |
<void/> |
| 81 |
</funcprototype> |
| 82 |
<funcprototype> |
| 83 |
<funcdef>page_stat_t *<function>get_page_stats_diff</function></funcdef> |
| 84 |
<void/> |
| 85 |
</funcprototype> |
| 86 |
|
| 87 |
<funcprototype> |
| 88 |
<funcdef>process_stat_t *<function>get_process_stats</function></funcdef> |
| 89 |
<void/> |
| 90 |
</funcprototype> |
| 91 |
|
| 92 |
<funcprototype> |
| 93 |
<funcdef>user_stat_t *<function>get_user_stats</function></funcdef> |
| 94 |
<void/> |
| 95 |
</funcprototype> |
| 96 |
|
| 97 |
</funcsynopsis> |
| 98 |
</refsynopsisdiv> |
| 99 |
|
| 100 |
<refsect1> |
| 101 |
<title>Description</title> |
| 102 |
<para> |
| 103 |
The statgrab library provides a cross platform interface to getting |
| 104 |
system statistics. Each of the function calls returns a structure |
| 105 |
containing statistics. See the manual page for each individual |
| 106 |
function for more details on usage. |
| 107 |
</para> |
| 108 |
<para> |
| 109 |
The library was originally written to support the i-scream central |
| 110 |
monitoring system, but has since become a standalone package. It |
| 111 |
has been ported to work on Linux, FreeBSD, and Solaris. |
| 112 |
</para> |
| 113 |
</refsect1> |
| 114 |
|
| 115 |
<refsect1> |
| 116 |
<title>See Also</title> |
| 117 |
|
| 118 |
<simplelist type="inline"> |
| 119 |
<member> |
| 120 |
<citerefentry> |
| 121 |
<refentrytitle>cpu_percent_usage</refentrytitle> |
| 122 |
<manvolnum>3</manvolnum> |
| 123 |
</citerefentry> |
| 124 |
<citerefentry> |
| 125 |
<refentrytitle>get_diskio_stats</refentrytitle> |
| 126 |
<manvolnum>3</manvolnum> |
| 127 |
</citerefentry> |
| 128 |
<citerefentry> |
| 129 |
<refentrytitle>get_general_stats</refentrytitle> |
| 130 |
<manvolnum>3</manvolnum> |
| 131 |
</citerefentry> |
| 132 |
<citerefentry> |
| 133 |
<refentrytitle>get_load_stats</refentrytitle> |
| 134 |
<manvolnum>3</manvolnum> |
| 135 |
</citerefentry> |
| 136 |
<citerefentry> |
| 137 |
<refentrytitle>get_memory_stats</refentrytitle> |
| 138 |
<manvolnum>3</manvolnum> |
| 139 |
</citerefentry> |
| 140 |
<citerefentry> |
| 141 |
<refentrytitle>get_network_stats</refentrytitle> |
| 142 |
<manvolnum>3</manvolnum> |
| 143 |
</citerefentry> |
| 144 |
<citerefentry> |
| 145 |
<refentrytitle>get_page_stats</refentrytitle> |
| 146 |
<manvolnum>3</manvolnum> |
| 147 |
</citerefentry> |
| 148 |
<citerefentry> |
| 149 |
<refentrytitle>get_process_stats</refentrytitle> |
| 150 |
<manvolnum>3</manvolnum> |
| 151 |
</citerefentry> |
| 152 |
<citerefentry> |
| 153 |
<refentrytitle>get_user_stats</refentrytitle> |
| 154 |
<manvolnum>3</manvolnum> |
| 155 |
</citerefentry> |
| 156 |
</member> |
| 157 |
</simplelist> |
| 158 |
</refsect1> |
| 159 |
|
| 160 |
<refsect1> |
| 161 |
<title>Website</title> |
| 162 |
|
| 163 |
<simplelist type="vert"> |
| 164 |
<member> |
| 165 |
<ulink url="http://www.i-scream.org">http://www.i-scream.org</ulink> |
| 166 |
</member> |
| 167 |
</simplelist> |
| 168 |
</refsect1> |
| 169 |
|
| 170 |
</refentry> |