1 |
tdb |
1.1 |
# |
2 |
tdb |
1.3 |
# i-scream pystatgrab |
3 |
tdb |
1.1 |
# http://www.i-scream.org |
4 |
|
|
# Copyright (C) 2000-2004 i-scream |
5 |
|
|
# |
6 |
|
|
# This program is free software; you can redistribute it and/or |
7 |
|
|
# modify it under the terms of the GNU General Public License |
8 |
|
|
# as published by the Free Software Foundation; either version 2 |
9 |
|
|
# of the License, or (at your option) any later version. |
10 |
|
|
# |
11 |
|
|
# This program is distributed in the hope that it will be useful, |
12 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
|
|
# GNU General Public License for more details. |
15 |
|
|
# |
16 |
|
|
# You should have received a copy of the GNU General Public License |
17 |
|
|
# along with this program; if not, write to the Free Software |
18 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
19 |
|
|
# |
20 |
tdb |
1.5 |
# $Id: statgrab.py,v 1.4 2004/05/30 15:21:19 tdb Exp $ |
21 |
tdb |
1.1 |
# |
22 |
|
|
|
23 |
|
|
import _statgrab |
24 |
|
|
|
25 |
tdb |
1.5 |
def sg_init(): |
26 |
|
|
return _statgrab.py_sg_init() |
27 |
|
|
def sg_drop_privileges(): |
28 |
|
|
return _statgrab.py_sg_drop_privileges() |
29 |
|
|
def sg_get_host_info(): |
30 |
|
|
return _statgrab.py_sg_get_host_info() |
31 |
tdb |
1.4 |
def sg_get_cpu_stats(): |
32 |
|
|
return _statgrab.py_sg_get_cpu_stats() |
33 |
|
|
def sg_get_cpu_stats_diff(): |
34 |
|
|
return _statgrab.py_sg_get_cpu_stats_diff() |
35 |
|
|
def sg_get_cpu_percents(): |
36 |
|
|
return _statgrab.py_sg_get_cpu_percents() |
37 |
|
|
def sg_get_mem_stats(): |
38 |
|
|
return _statgrab.py_sg_get_mem_stats() |
39 |
|
|
def sg_get_load_stats(): |
40 |
|
|
return _statgrab.py_sg_get_load_stats() |
41 |
|
|
def sg_get_user_stats(): |
42 |
|
|
return _statgrab.py_sg_get_user_stats() |
43 |
|
|
def sg_get_swap_stats(): |
44 |
|
|
return _statgrab.py_sg_get_swap_stats() |
45 |
|
|
def sg_get_fs_stats(): |
46 |
|
|
return _statgrab.py_sg_get_fs_stats() |
47 |
|
|
def sg_get_disk_io_stats(): |
48 |
|
|
return _statgrab.py_sg_get_disk_io_stats() |
49 |
|
|
def sg_get_disk_io_stats_diff(): |
50 |
|
|
return _statgrab.py_sg_get_disk_io_stats_diff() |
51 |
|
|
def sg_get_network_io_stats(): |
52 |
|
|
return _statgrab.py_sg_get_network_io_stats() |
53 |
|
|
def sg_get_network_io_stats_diff(): |
54 |
|
|
return _statgrab.py_sg_get_network_io_stats_diff() |
55 |
|
|
def sg_get_network_iface_stats(): |
56 |
|
|
return _statgrab.py_sg_get_network_iface_stats() |
57 |
|
|
def sg_get_page_stats(): |
58 |
|
|
return _statgrab.py_sg_get_page_stats() |
59 |
|
|
def sg_get_page_stats_diff(): |
60 |
|
|
return _statgrab.py_sg_get_page_stats_diff() |
61 |
tdb |
1.5 |
def sg_get_process_count(): |
62 |
|
|
return _statgrab.py_sg_get_process_count() |
63 |
tdb |
1.2 |
|
64 |
tdb |
1.4 |
SG_IFACE_DUPLEX_FULL = _statgrab.py_SG_IFACE_DUPLEX_FULL |
65 |
|
|
SG_IFACE_DUPLEX_HALF = _statgrab.py_SG_IFACE_DUPLEX_HALF |
66 |
|
|
SG_IFACE_DUPLEX_UNKNOWN = _statgrab.py_SG_IFACE_DUPLEX_UNKNOWN |