Doug MacEachern
336c22d863
implement net_connection_walk for win32
2006-07-01 19:07:15 +00:00
Doug MacEachern
475ddf2428
remove mem.shared
2006-07-01 02:47:09 +00:00
Doug MacEachern
0aa428e669
proper check for GetUdpTable
2006-06-20 00:02:47 +00:00
Doug MacEachern
9f5ad58812
add net_interface_stat.speed
2006-03-07 01:08:23 +00:00
Doug MacEachern
372c09119d
back out last change
2006-03-07 00:59:03 +00:00
Doug MacEachern
be0dd1c35e
add net_interface_config.speed
2006-03-05 02:22:01 +00:00
Doug MacEachern
81a29ba2a2
Add net_interface_config.description
2006-03-04 22:28:09 +00:00
Doug MacEachern
61a2a98f67
try IFMIB first to get hwaddr and MTU
2006-03-04 22:12:18 +00:00
Doug MacEachern
e63e0ff456
remove proc_mem.{rss,vsize}
2006-03-04 02:48:58 +00:00
Doug MacEachern
a83dc21a87
proc_mem fixups
2006-03-04 02:23:02 +00:00
Doug MacEachern
55a1c28a1a
readability++
2005-12-21 04:58:02 +00:00
Doug MacEachern
70f18204dd
change get_if_table to take iftable arg
2005-12-21 02:49:18 +00:00
Doug MacEachern
cd375c7337
change get_adapters_info to take adapter arg
2005-12-21 02:45:38 +00:00
Doug MacEachern
361af1a2cf
re-use ifconf_buf for GetAdaptersInfo
2005-12-21 02:31:06 +00:00
Doug MacEachern
0d2a149924
refactor interaction with windows dlls
2005-12-20 23:09:34 +00:00
Doug MacEachern
e94cd5cdb0
get_if_entry=NULL on lookup failure
2005-12-20 00:10:57 +00:00
Doug MacEachern
39c1337f71
make GetIfTable wrapper reusable and re-use allocated buffer
2005-12-20 00:09:32 +00:00
Doug MacEachern
258ed193ca
add GetIfEntry pointer
2005-12-19 22:49:12 +00:00
Doug MacEachern
612c5ca97e
add proc_mem.page_faults
2005-11-23 17:51:19 +00:00
Doug MacEachern
ef15aa3434
stub proc_state.processor
2005-11-23 01:28:51 +00:00
Doug MacEachern
bb5aa9c263
add proc_state.threads
2005-11-22 21:48:52 +00:00
Doug MacEachern
147c931d7d
fail gracefully if no perf counters are found for disk i/o metrics
2005-11-08 18:16:03 +00:00
Doug MacEachern
6a47768169
proc_mem.rss = proc_mem.resident
2005-11-01 19:15:23 +00:00
Doug MacEachern
d146b6bb65
add proc_mem.resident for win32
2005-11-01 18:48:33 +00:00
Doug MacEachern
7588002069
fix who_wts
2005-10-10 17:00:30 +00:00
Doug MacEachern
4fe3373aa7
FreeLibrary for advapi32.dll
2005-10-03 21:01:51 +00:00
Doug MacEachern
5f8fece190
log fixups
2005-10-03 16:26:56 +00:00
Doug MacEachern
3974333f06
dlload ConvertStringSidToSid, does not exist on NT
2005-10-02 21:13:26 +00:00
Doug MacEachern
90c453d4ac
return NULL if no module handle in sigar_GetProcAddress
2005-10-02 20:37:52 +00:00
Doug MacEachern
7007a4740c
s/sigar_log_printf/sigar_log/
2005-10-02 06:03:36 +00:00
Doug MacEachern
8cd8f0f8bd
who_list fixes/cleanup
2005-10-02 05:52:33 +00:00
Doug MacEachern
bc26bd5029
add sanity checking/debug logs to WTS api usage
2005-09-27 19:10:46 +00:00
Doug MacEachern
f64b36c0bd
use terminal services api to query for RDP logins, adding to who_list
2005-09-27 01:18:54 +00:00
Doug MacEachern
1212c2f03e
move win32 specific who_list stuff to win32_sigar.c
2005-09-26 23:35:57 +00:00
Doug MacEachern
1cf65abe89
refactor so netif list/config codes can be used on netware too
2005-09-03 01:34:20 +00:00
Doug MacEachern
3ff4089db1
remove dhcp_server from net_info
2005-07-17 17:46:07 +00:00
Doug MacEachern
43da1c4ac4
add net_route.metric
2005-07-15 04:13:45 +00:00
Doug MacEachern
9c20564afa
set some route flags
2005-07-12 18:45:28 +00:00
Doug MacEachern
77a51da4b6
fix net_info
2005-07-11 23:54:39 +00:00
Doug MacEachern
6b238421e7
net_info dhcp_server and default_gateway for windows
2005-07-11 23:24:00 +00:00
Doug MacEachern
0a67c7fac2
fillin net_info.host_name
2005-07-11 22:44:13 +00:00
Doug MacEachern
62188b3ee0
start net_info impl for windows
2005-07-11 22:40:31 +00:00
Doug MacEachern
713e955063
fix ifstat->rx_frame
2005-05-14 00:02:33 +00:00
Doug MacEachern
33d320fcb2
use psapi instead of CreateToolSnapshot. it is possible for the latter to hang
...
on windows 2000 and the former also works on NT
2005-05-13 20:56:17 +00:00
Doug MacEachern
13466030b7
missing FreeLibrary call
2005-05-13 20:13:51 +00:00
Doug MacEachern
48097a4bb4
close the snapshot handle
2005-05-13 20:05:37 +00:00
Doug MacEachern
09b258d9fb
use sigar_inet_ntoa
2005-05-13 15:16:49 +00:00
Doug MacEachern
7a4580fc08
more cpu time to seconds conversion
2005-05-11 23:37:22 +00:00
Doug MacEachern
1146d10e26
convert cpu times to seconds
2005-05-11 23:17:39 +00:00
Doug MacEachern
f0f5c5646a
skip format for udp remote addr
2005-05-08 17:23:24 +00:00
Doug MacEachern
dbaa11385a
better defaults for udp remote addr:port (none)
2005-05-08 17:20:00 +00:00
Doug MacEachern
e451aa4da6
fix net_connection filters
2005-05-07 06:00:55 +00:00
Doug MacEachern
05aea8c508
disk i/o metrics for win2k
2005-04-27 18:54:42 +00:00
Doug MacEachern
22452e99fc
add file_system_usage_t.used field
2005-04-26 19:55:21 +00:00
Doug MacEachern
dbfda75b1b
fix disk queue metric
2005-04-07 02:11:00 +00:00
Doug MacEachern
34eda4866b
implement new disk fields
2005-04-07 01:23:49 +00:00
Doug MacEachern
2582ada2b9
ProcPort udp support
2005-03-20 03:20:28 +00:00
Doug MacEachern
0440707db7
check protocol in proc_port
2005-03-16 03:49:54 +00:00
Doug MacEachern
c31d2c5712
add protocol param to proc_port function
2005-03-16 02:44:52 +00:00
Doug MacEachern
b9144d1728
pass sigar_t* to sigar_os_error_string
2005-03-12 06:19:34 +00:00
Doug MacEachern
caed46facd
no net_connection queue metrics
2005-03-12 04:49:38 +00:00
Doug MacEachern
3c0527670c
fillin net_connection.state
2005-03-11 17:11:30 +00:00
Doug MacEachern
533e425c87
map tcp state
2005-03-11 04:45:09 +00:00
Doug MacEachern
3e3e117f18
fix key for disk metrics, but wtf it still worked fine
2005-02-18 20:18:40 +00:00
Doug MacEachern
311c1a2f1c
old NtQuerySystemInformation works as expected for cpu metrics, use it instead of perflib
2005-02-18 20:13:17 +00:00
Doug MacEachern
f7a1567a9f
old NtQuerySystemInformation works as expected for cpu metrics, use it instead of perflib
2005-02-18 20:03:52 +00:00
Doug MacEachern
7f15d07b45
fix win2003 crash
2005-01-28 16:33:12 +00:00
Doug MacEachern
9143abc140
fix windows 2003 perfdata registry/pdh.dll problem
2005-01-27 02:28:31 +00:00
Doug MacEachern
728fd6d75d
initialize disk metrics for all platforms
2004-12-05 23:42:23 +00:00
Doug MacEachern
dfdff8b635
use SIGAR_FIELD_NOTIMPL constant in place of -1 or 0 for fields which are not implemented for a given platform
2004-12-05 23:36:48 +00:00
Doug MacEachern
e5582816c6
start disk i/o metrics
2004-12-05 01:18:57 +00:00
Doug MacEachern
46ba56bc17
add cpu.wait metric
2004-11-22 01:51:34 +00:00
Doug MacEachern
fee5b18641
removing mem.{buffer,cached} fields.
...
replace with actual_{free,used} fields so we can portably adjust
-/+ buffers/cache on linux and perhaps on other platforms w/ different
semantics.
2004-11-20 02:08:16 +00:00
Doug MacEachern
84b4a376ae
thread_cpu impl
2004-11-17 04:56:00 +00:00
Doug MacEachern
2f5ccd9019
log message if we cant determine idle cpu time
2004-11-02 23:34:01 +00:00
Doug MacEachern
b1acfcf5e9
fix cpu idle metric for windows NT and 2000
2004-11-02 23:17:18 +00:00
Doug MacEachern
ed77b95632
fix possible crash in get_cpu_instance
2004-08-27 23:06:46 +00:00
Doug MacEachern
4736d77c87
add proc_time.total field (sum of user+sys)
2004-08-21 00:25:07 +00:00
Doug MacEachern
606275fc36
renaming proc_time.{utime,stime} to proc_time.{user,sys}
...
'utime' and 'stime' are common within system structures, but with lots of
other stuff in the structure unrelated to time. having 'time' in both the
structure/class name and the field at the sigar level is just lame.
2004-08-21 00:13:13 +00:00
Doug MacEachern
25887e0f4a
change get_proc_info to report 'No such process'
2004-08-10 22:24:12 +00:00
Doug MacEachern
b85eea0ff9
workaround issue seen on occasion w/ 2003 server in vmware.
...
for reasons unknown, the process perf object sometimes comes back with
the counter titles but no instances. this would crash the agent.
2004-08-10 21:51:13 +00:00
Doug MacEachern
948b456433
fix get_perf_object, ReqQuery was shrinking the sigar->perfbuf_size
2004-08-09 21:46:34 +00:00
Doug MacEachern
bbc1b99d32
fix proc_args when cmdline crosses first page boundry (seen w/ WebSphere)
2004-08-04 05:18:05 +00:00
Doug MacEachern
63924059e2
rid lousy getarg parser in favor of CommandLineToArgvW
2004-08-03 03:25:17 +00:00
Doug MacEachern
2e8f6226e3
some fixes and make command line parser reusable
2004-08-03 03:18:40 +00:00
Doug MacEachern
bb02117ef4
change proc_args to use CommandLineToArgvW parser
2004-08-03 03:06:25 +00:00
Doug MacEachern
042c38ae95
remove old code to get proc_args
2004-08-03 02:58:48 +00:00
Doug MacEachern
b8a09c70f0
increase peb cmdline buffer size
2004-08-03 02:45:26 +00:00
Doug MacEachern
df5e418f30
canonicalize proc_exe.{name,cwd}
2004-08-01 20:42:18 +00:00
Doug MacEachern
d939d1763c
use PEB to get the proc_exe.cwd
2004-08-01 20:31:42 +00:00
Doug MacEachern
3945733a4b
filter out the system Idle process from proc_list
2004-07-28 21:50:06 +00:00
Doug MacEachern
2fa069d068
change proc_args to use the PEB
2004-07-28 21:47:14 +00:00
Doug MacEachern
dc4168178d
removing uptime.idletime (only linux had this)
2004-07-21 21:56:55 +00:00
Doug MacEachern
ddc6f4c55c
missed api _list convention, cpu_infos -> cpu_info_list
2004-07-10 04:44:45 +00:00
Doug MacEachern
2168c3b578
adjust cpu model name
2004-07-02 01:27:04 +00:00
Doug MacEachern
77b2883e1e
prefer ProcessorNameString to Indentifier for cpu model name
2004-07-02 01:26:45 +00:00
Doug MacEachern
ddc2874791
fix winnt flag
2004-06-30 22:43:48 +00:00
Doug MacEachern
1c32c2acc9
fix off-by-one bug in proc_args
2004-06-30 21:20:19 +00:00
Doug MacEachern
f0b267957a
NT does not have a Processor _Total perf counter instance
2004-06-23 05:21:13 +00:00
Doug MacEachern
300094d65d
also remove 'Authentic' if vendor is AMD
2004-06-23 01:10:40 +00:00
Doug MacEachern
cb27ce6b1f
change cpu_info vendor to 'Intel' instead of 'GenuineIntel'
2004-06-23 01:00:51 +00:00
Doug MacEachern
903fabc3e4
remove malloc casts
2004-06-22 23:44:46 +00:00
Doug MacEachern
903c369671
dont hardcode 2 logical processors if ht_enabled
2004-06-22 19:22:50 +00:00
Doug MacEachern
003d416408
fix get_perf_object error handling.
...
morg experienced an ERROR_BUSY which crashed the agent, this is properly
handled now.
2004-06-22 17:51:38 +00:00
Doug MacEachern
a23ff178db
add winnt flag and use it in proc_modules
2004-06-22 17:15:10 +00:00
Doug MacEachern
aeeb51e25c
proc_modules impl
2004-06-22 06:12:51 +00:00
Doug MacEachern
dffe0da855
Initial revision
2004-06-21 22:37:04 +00:00