Commit Graph

176 Commits

Author SHA1 Message Date
Doug MacEachern aa4e73c437 allow setting of sigar_strerror 2007-04-15 23:06:57 +00:00
Doug MacEachern 9a04924df3 fold java CurrentProcessSummary metric into sigar_proc_stat_t 2007-04-14 22:28:25 +00:00
Doug MacEachern 578b7607db fold sigar_proc_count into sigar_proc_stat_get 2007-04-14 21:28:17 +00:00
Doug MacEachern 405e95e6bb move sigar_proc_stat_get to sigar.c 2007-04-14 21:25:20 +00:00
Doug MacEachern 71829d95ce shuffle includes to fix freebsd compile 2007-04-06 18:01:50 +00:00
Doug MacEachern 1e45ce07e4 prefer ipv4 listen addresses 2007-04-06 16:22:24 +00:00
Doug MacEachern 4e9ee330df broaden inet_ntop support 2007-04-06 16:05:47 +00:00
Doug MacEachern c6cad78da2 fix net_listen caching 2007-04-06 15:20:09 +00:00
Doug MacEachern 66fe4fee09 format nit 2007-04-06 13:39:25 +00:00
Doug MacEachern f6f395d68e Add net_listen_address function to lookup bind address of a listen socket 2007-04-06 12:50:05 +00:00
Doug MacEachern fbaa233617 save listen port address as cache val for later use 2007-04-06 12:27:32 +00:00
Doug MacEachern 614fd63728 [SIGAR-4] Move to walk version of net_stat 2007-04-06 12:14:38 +00:00
Doug MacEachern 86deb1a2d9 Add net_stat_port function to provide metrics on specific port+address 2007-04-06 05:05:37 +00:00
Doug MacEachern e91faa5dbc change net_info to work if /etc/resolv.conf does not exist 2007-04-05 17:00:28 +00:00
Doug MacEachern a2572d9510 change net_interface_config_primary_get to likely interface if none have an ip (unplugged) 2007-04-05 16:56:42 +00:00
Doug MacEachern 2af66e050e return SIGAR_ENXIO if sigar_net_interface_config_primary_get fails 2007-04-05 15:55:59 +00:00
Doug MacEachern 7dab1f69a2 return SIGAR_ENOENT if sigar_net_interface_config_primary_get fails 2007-04-05 15:50:23 +00:00
Doug MacEachern 5ec635a1b4 change sigar_net_interface_config_get to return sigar_net_interface_config_primary_get if name == NULL 2007-04-05 15:41:43 +00:00
Doug MacEachern da7ea6cb29 add function to get primary net_interface_config 2007-03-13 03:49:08 +00:00
Doug MacEachern 93ef97aaa8 Implement native sigar_proc_cpu_get function 2007-03-11 21:46:41 +00:00
Doug MacEachern 123e14e283 add signal name lookup support 2007-03-01 06:15:23 +00:00
Doug MacEachern 70755f8018 use futmpx in sigar_who_list for sparc64 2007-01-17 18:48:36 +00:00
Doug MacEachern 07c0cb7ff0 make sigar_strerror usable internally w/o sigar_t 2007-01-03 22:47:00 +00:00
Doug MacEachern 4e45608ce0 improve fqdn_ip filters 2006-12-02 20:24:52 +00:00
Doug MacEachern f5d84d4f67 rename INET6_ADDRSTRLEN -> SIGAR_INET6_ADDRSTRLEN 2006-10-19 20:10:13 +00:00
Doug MacEachern 3633786fce save utsname.machine in sys_info.machine 2006-09-25 01:47:33 +00:00
Doug MacEachern 8b2ca20810 mv sigar_sys_info_get outside #ifndef WIN32 2006-09-25 00:08:50 +00:00
Doug MacEachern 84b8fff7b1 start port of OperatingSystem.java to sigar_sys_info C api 2006-09-24 18:23:04 +00:00
Doug MacEachern a0bce20fde more better logging in sigar_fqdn_get
fix sigar_fqdn_get H_ALIAS_MATCH to proper IS_FQDN_MATCH
2006-09-21 22:42:53 +00:00
Doug MacEachern 960c06659a [SIGAR-15] Fix sigar_fqdn_get so 'hostname' won't be resolved to 'localhost.localdomain'
improve debug logging in sigar_fqdn_get
2006-09-21 22:23:48 +00:00
Doug MacEachern a392baa3c3 remove unreachable statement 2006-08-05 02:10:37 +00:00
Doug MacEachern 41970562c9 [SIGAR-10] Fix sigar_net_info_get /etc/resolv.conf parsing 2006-07-16 00:01:25 +00:00
Doug MacEachern e472dc9d9a add copyright 2006-07-15 17:46:36 +00:00
Doug MacEachern 001ed4238d [SIGAR-4] native version of the Java NetStat metrics 2006-07-10 21:32:22 +00:00
Doug MacEachern 42e0842c54 add sigar_net_address_hash function 2006-07-10 20:42:16 +00:00
Doug MacEachern c2f0528538 changing hwaddr to sigar_net_address_t 2006-07-05 21:33:59 +00:00
Doug MacEachern 287af5e947 changing hwaddr to sigar_net_address_t 2006-07-05 21:12:10 +00:00
Doug MacEachern f410dfa739 sigar_inet_ntoa should only be used internally now 2006-07-05 18:11:25 +00:00
Doug MacEachern ee37d10b2c convert net_route to use net_address_t 2006-07-04 19:22:05 +00:00
Doug MacEachern c6f8805803 fix solaris compile 2006-07-04 17:38:14 +00:00
Doug MacEachern 86c4011c40 convert net_interface_config to use sigar_net_address_t 2006-07-04 17:32:08 +00:00
Doug MacEachern 8830e5e6ad fix net_stat decl for win32 2006-07-04 16:49:27 +00:00
Doug MacEachern e4303ee612 store net_connection addresses in binary rather than string 2006-07-04 16:35:27 +00:00
Doug MacEachern dc6429ad45 expose sigar_net_stat_get now that all platforms implement net_connection_walk 2006-07-01 19:14:32 +00:00
Doug MacEachern 13751fe221 all platforms use sigar.c:sigar_net_connection_list_get expect linux 2006-07-01 19:11:54 +00:00
Doug MacEachern 5f8da2ce15 net_connection_list_get needs decl for win32 2006-07-01 19:06:11 +00:00
Doug MacEachern b1798c3e2f move generic sigar_net_connection_list_get impl to sigar.c 2006-07-01 16:47:47 +00:00
Doug MacEachern 417ee0d439 implement net_stat_get 2006-06-20 00:30:17 +00:00
Doug MacEachern 071ca22aba [SIGAR-5] Fix netinfo default gateway 2006-06-09 17:42:46 +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 34f39da4d3 add gethostbyaddr_r wrapper 2006-03-03 01:33:07 +00:00
Doug MacEachern 8c9a822ecd backout last change 2006-03-03 01:12:41 +00:00
Doug MacEachern a676b8c845 revert to gethostbyname for the moment 2006-03-03 00:21:11 +00:00
Doug MacEachern 5c26b463d9 [HQ-93] un-clobber stack data in sigar_gethostbyname 2006-03-02 22:53:09 +00:00
Doug MacEachern 8342b063de un-static-ize sigar_gethostbyname 2006-02-27 01:21:07 +00:00
Doug MacEachern 2debe9948e aix/hpux gethostbyname_r 2006-02-23 05:15:10 +00:00
Doug MacEachern ddaba2182d solaris gethostbyname_r 2006-02-23 05:08:33 +00:00
Doug MacEachern 415f33a079 start reentrant gethostbyname impl 2006-02-23 05:02:11 +00:00
Doug MacEachern 526ee37bcb fix compile on freebsd 4.x 2005-12-31 18:43:09 +00:00
Doug MacEachern 2d831a99f4 net_interface_config.mtu for AIX, HPUX and Solaris 2005-12-19 22:00:39 +00:00
Doug MacEachern dc3eceb517 move self_path to the base sigar_t 2005-12-14 18:35:19 +00:00
Doug MacEachern ab3c15d2e7 constify nic types 2005-11-18 19:54:23 +00:00
Doug MacEachern bb478479b2 add support for IFF_SLAVE flag (used by vmnic) 2005-11-18 18:26:52 +00:00
Doug MacEachern 72841ad4c2 fillin net_interface_config.type 2005-11-18 18:08:19 +00:00
Doug MacEachern 35d2d7f5f8 on linux certain interfaces such as VMware vmnic
are not returned by ioctl(SIOCGIFCONF).
check /proc/net/dev for any ioctl missed.
2005-11-18 01:15:54 +00:00
Doug MacEachern 05624b41cb dont bail in net_interface_config_get if address query fails (e.g. vmnic1) 2005-11-17 02:50:37 +00:00
Doug MacEachern 100aed0cb3 integrate dmalloc.h 2005-11-09 18:26:10 +00:00
Doug MacEachern 54754b2711 add NULL checks to fqdn_get 2005-11-08 19:15:41 +00:00
Doug MacEachern 5f8fece190 log fixups 2005-10-03 16:26:56 +00:00
Doug MacEachern b22f20c335 hmm, getpwuid_r can return 0 but pw == NULL 2005-10-02 03:07:59 +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 c99f594008 fix sigar_who_net_sessions 2005-09-26 18:27:48 +00:00
Doug MacEachern 5ba12f568d fix who_list on aix, struct utmp is not binary compatible 2005-09-24 22:37:21 +00:00
Doug MacEachern 249015c01f need getpass function for netware, else unresolved symbol 2005-08-28 06:18:35 +00:00
Doug MacEachern f38169afa4 more netware linkage fixes 2005-08-28 05:59:53 +00:00
Doug MacEachern f243357717 add stubs for netware required to link 2005-08-28 05:47:48 +00:00
Doug MacEachern e44f7a857f compile on NETWARE 2005-08-18 04:22:53 +00:00
Doug MacEachern 707cb02db1 pid_t is int on cygwin 2005-07-24 06:03:07 +00:00
Doug MacEachern c5f3a8026a refactor so utmp reader can be used on windows 2005-07-24 06:00:13 +00:00
Doug MacEachern c545be8c5d use SESSIONNAME for win32 who.device 2005-07-24 05:34:21 +00:00
Doug MacEachern e04943ccb1 use CLIENTNAME for who.host 2005-07-24 05:20:39 +00:00
Doug MacEachern d229d838b1 fix network share who 2005-07-24 05:02:36 +00:00
Doug MacEachern db81786c26 add local logins to who_list on win32 2005-07-24 05:00:24 +00:00
Doug MacEachern ad1c00ef75 who_list impl for win32 2005-07-24 01:34:27 +00:00
Doug MacEachern 4eca5b0aa0 add pipe_size to resource_limit 2005-07-22 02:26:48 +00:00
Doug MacEachern 56aa4553f5 remove resource_limit.ulimited, switch to ResourceLimit.INFINITY 2005-07-21 23:34:36 +00:00
Doug MacEachern 76260ce6f3 RLIMIT_NPROC impl for non-linux 2005-07-21 22:46:57 +00:00
Doug MacEachern 2e5bc87f49 default unsupported to unlimited 2005-07-21 22:28:07 +00:00
Doug MacEachern 0523277687 scale resource limits same as the ulimit command 2005-07-21 22:19:03 +00:00
Doug MacEachern 962c8cfd1b set net_info.default_gateway 2005-07-14 01:01:32 +00:00
Doug MacEachern b3ca673da2 unix net_info.host_name 2005-07-11 22:45:50 +00:00
Doug MacEachern 62188b3ee0 start net_info impl for windows 2005-07-11 22:40:31 +00:00
Doug MacEachern 9e98a05fc7 rename net_info.domain to domain_name 2005-07-11 20:41:57 +00:00
Doug MacEachern b000f97bd3 sanity check getdomainname 2005-07-11 20:37:47 +00:00
Doug MacEachern b7c19ce5d3 add net_info.domain for unix 2005-07-11 20:29:38 +00:00
Doug MacEachern 6077527e24 start unix net_info impl 2005-07-11 20:21:13 +00:00
Doug MacEachern df369c99e6 no RLIMIT_NPROC on solaris 2005-07-08 01:51:00 +00:00
Doug MacEachern d45e112ba4 some windows rlimits 2005-07-08 01:49:18 +00:00