ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/pystatgrab/statgrab.py
(Generate patch)

Comparing projects/pystatgrab/statgrab.py (file contents):
Revision 1.1 by tdb, Sat Mar 20 21:29:59 2004 UTC vs.
Revision 1.7 by tdb, Tue Aug 24 20:43:47 2004 UTC

# Line 1 | Line 1
1   #
2 < # i-scream central monitoring system
3 < # http://www.i-scream.org
2 > # i-scream pystatgrab
3 > # http://www.i-scream.org/pystatgrab/
4   # Copyright (C) 2000-2004 i-scream
5   #
6   # This program is free software; you can redistribute it and/or
# Line 22 | Line 22
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_set_error(code, arg=''):
30 >    return _statgrab.py_sg_set_error(code, arg)
31 > def sg_set_error_with_errno(code, arg=''):
32 >    return _statgrab.py_sg_set_error_with_errno(code, arg)
33 > def sg_get_error():
34 >    return _statgrab.py_sg_get_error()
35 > def sg_get_error_arg():
36 >    return _statgrab.py_sg_get_error_arg()
37 > def sg_get_error_errno():
38 >    return _statgrab.py_sg_get_error_errno()
39 > def sg_str_error(code):
40 >    return _statgrab.py_sg_str_error(code)
41 > def sg_get_host_info():
42 >    return _statgrab.py_sg_get_host_info()
43 > def sg_get_cpu_stats():
44 >    return _statgrab.py_sg_get_cpu_stats()
45 > def sg_get_cpu_stats_diff():
46 >    return _statgrab.py_sg_get_cpu_stats_diff()
47 > def sg_get_cpu_percents():
48 >    return _statgrab.py_sg_get_cpu_percents()
49 > def sg_get_mem_stats():
50 >    return _statgrab.py_sg_get_mem_stats()
51 > def sg_get_load_stats():
52 >    return _statgrab.py_sg_get_load_stats()
53 > def sg_get_user_stats():
54 >    return _statgrab.py_sg_get_user_stats()
55 > def sg_get_swap_stats():
56 >    return _statgrab.py_sg_get_swap_stats()
57 > def sg_get_fs_stats():
58 >    return _statgrab.py_sg_get_fs_stats()
59 > def sg_get_disk_io_stats():
60 >    return _statgrab.py_sg_get_disk_io_stats()
61 > def sg_get_disk_io_stats_diff():
62 >    return _statgrab.py_sg_get_disk_io_stats_diff()
63 > def sg_get_network_io_stats():
64 >    return _statgrab.py_sg_get_network_io_stats()
65 > def sg_get_network_io_stats_diff():
66 >    return _statgrab.py_sg_get_network_io_stats_diff()
67 > def sg_get_network_iface_stats():
68 >    return _statgrab.py_sg_get_network_iface_stats()
69 > def sg_get_page_stats():
70 >    return _statgrab.py_sg_get_page_stats()
71 > def sg_get_page_stats_diff():
72 >    return _statgrab.py_sg_get_page_stats_diff()
73 > def sg_get_process_stats():
74 >    return _statgrab.py_sg_get_process_stats()
75 > def sg_get_process_count():
76 >    return _statgrab.py_sg_get_process_count()
77 >
78 > SG_ERROR_NONE = _statgrab.py_SG_ERROR_NONE
79 > SG_ERROR_ASPRINTF = _statgrab.py_SG_ERROR_ASPRINTF
80 > SG_ERROR_DEVSTAT_GETDEVS = _statgrab.py_SG_ERROR_DEVSTAT_GETDEVS
81 > SG_ERROR_DEVSTAT_SELECTDEVS = _statgrab.py_SG_ERROR_DEVSTAT_SELECTDEVS
82 > SG_ERROR_ENOENT = _statgrab.py_SG_ERROR_ENOENT
83 > SG_ERROR_GETIFADDRS = _statgrab.py_SG_ERROR_GETIFADDRS
84 > SG_ERROR_GETMNTINFO = _statgrab.py_SG_ERROR_GETMNTINFO
85 > SG_ERROR_GETPAGESIZE = _statgrab.py_SG_ERROR_GETPAGESIZE
86 > SG_ERROR_KSTAT_DATA_LOOKUP = _statgrab.py_SG_ERROR_KSTAT_DATA_LOOKUP
87 > SG_ERROR_KSTAT_LOOKUP = _statgrab.py_SG_ERROR_KSTAT_LOOKUP
88 > SG_ERROR_KSTAT_OPEN = _statgrab.py_SG_ERROR_KSTAT_OPEN
89 > SG_ERROR_KSTAT_READ = _statgrab.py_SG_ERROR_KSTAT_READ
90 > SG_ERROR_KVM_GETSWAPINFO = _statgrab.py_SG_ERROR_KVM_GETSWAPINFO
91 > SG_ERROR_KVM_OPENFILES = _statgrab.py_SG_ERROR_KVM_OPENFILES
92 > SG_ERROR_MALLOC = _statgrab.py_SG_ERROR_MALLOC
93 > SG_ERROR_OPEN = _statgrab.py_SG_ERROR_OPEN
94 > SG_ERROR_OPENDIR = _statgrab.py_SG_ERROR_OPENDIR
95 > SG_ERROR_PARSE = _statgrab.py_SG_ERROR_PARSE
96 > SG_ERROR_SETEGID = _statgrab.py_SG_ERROR_SETEGID
97 > SG_ERROR_SETEUID = _statgrab.py_SG_ERROR_SETEUID
98 > SG_ERROR_SETMNTENT = _statgrab.py_SG_ERROR_SETMNTENT
99 > SG_ERROR_SOCKET = _statgrab.py_SG_ERROR_SOCKET
100 > SG_ERROR_SWAPCTL = _statgrab.py_SG_ERROR_SWAPCTL
101 > SG_ERROR_SYSCONF = _statgrab.py_SG_ERROR_SYSCONF
102 > SG_ERROR_SYSCTL = _statgrab.py_SG_ERROR_SYSCTL
103 > SG_ERROR_SYSCTLBYNAME = _statgrab.py_SG_ERROR_SYSCTLBYNAME
104 > SG_ERROR_SYSCTLNAMETOMIB = _statgrab.py_SG_ERROR_SYSCTLNAMETOMIB
105 > SG_ERROR_UNAME = _statgrab.py_SG_ERROR_UNAME
106 > SG_ERROR_UNSUPPORTED = _statgrab.py_SG_ERROR_UNSUPPORTED
107 > SG_ERROR_XSW_VER_MISMATCH = _statgrab.py_SG_ERROR_XSW_VER_MISMATCH
108 >
109 > SG_IFACE_DUPLEX_FULL = _statgrab.py_SG_IFACE_DUPLEX_FULL
110 > SG_IFACE_DUPLEX_HALF = _statgrab.py_SG_IFACE_DUPLEX_HALF
111 > SG_IFACE_DUPLEX_UNKNOWN = _statgrab.py_SG_IFACE_DUPLEX_UNKNOWN
112 >
113 > SG_PROCESS_STATE_RUNNING = _statgrab.py_SG_PROCESS_STATE_RUNNING
114 > SG_PROCESS_STATE_SLEEPING = _statgrab.py_SG_PROCESS_STATE_SLEEPING
115 > SG_PROCESS_STATE_STOPPED = _statgrab.py_SG_PROCESS_STATE_STOPPED
116 > SG_PROCESS_STATE_ZOMBIE = _statgrab.py_SG_PROCESS_STATE_ZOMBIE
117 > SG_PROCESS_STATE_UNKNOWN = _statgrab.py_SG_PROCESS_STATE_UNKNOWN

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines