1 |
|
# |
2 |
< |
# i-scream central monitoring system |
2 |
> |
# i-scream pystatgrab |
3 |
|
# http://www.i-scream.org |
4 |
|
# Copyright (C) 2000-2004 i-scream |
5 |
|
# |
22 |
|
|
23 |
|
import _statgrab |
24 |
|
|
25 |
< |
def get_cpu_totals(): |
26 |
< |
return _statgrab.py_get_cpu_totals() |
27 |
< |
def get_cpu_diff(): |
28 |
< |
return _statgrab.py_get_cpu_diff() |
29 |
< |
def cpu_percent_usage(): |
30 |
< |
return _statgrab.py_cpu_percent_usage() |
31 |
< |
def get_memory_stats(): |
32 |
< |
return _statgrab.py_get_memory_stats() |
33 |
< |
def get_load_stats(): |
34 |
< |
return _statgrab.py_get_load_stats() |
35 |
< |
def get_user_stats(): |
36 |
< |
return _statgrab.py_get_user_stats() |
37 |
< |
def get_swap_stats(): |
38 |
< |
return _statgrab.py_get_swap_stats() |
39 |
< |
def get_general_stats(): |
40 |
< |
return _statgrab.py_get_general_stats() |
41 |
< |
def get_disk_stats(): |
42 |
< |
return _statgrab.py_get_disk_stats() |
43 |
< |
def get_diskio_stats(): |
44 |
< |
return _statgrab.py_get_diskio_stats() |
45 |
< |
def get_diskio_stats_diff(): |
46 |
< |
return _statgrab.py_get_diskio_stats_diff() |
47 |
< |
def get_process_stats(): |
48 |
< |
return _statgrab.py_get_process_stats() |
49 |
< |
def get_network_stats(): |
50 |
< |
return _statgrab.py_get_network_stats() |
51 |
< |
def get_network_stats_diff(): |
52 |
< |
return _statgrab.py_get_network_stats_diff() |
53 |
< |
def get_network_iface_stats(): |
54 |
< |
return _statgrab.py_get_network_iface_stats() |
55 |
< |
def get_page_stats(): |
56 |
< |
return _statgrab.py_get_page_stats() |
57 |
< |
def get_page_stats_diff(): |
58 |
< |
return _statgrab.py_get_page_stats_diff() |
59 |
< |
def statgrab_init(): |
60 |
< |
return _statgrab.py_statgrab_init() |
61 |
< |
def statgrab_drop_privileges(): |
62 |
< |
return _statgrab.py_statgrab_drop_privileges() |
25 |
> |
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 |
> |
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 |
> |
def sg_get_process_count(): |
62 |
> |
return _statgrab.py_sg_get_process_count() |
63 |
> |
|
64 |
> |
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 |