From: SourceForge.net <no...@so...> - 2007-10-11 15:26:28
|
Bugs item #1810814, was opened at 2007-10-10 15:32 Message generated for change (Comment added) made by tanders You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1810814&group_id=12694 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: agent Group: solaris Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: 5.1/5.2/5.3/5.4 tcpTable report too few entries in Solaris Initial Comment: getMibstat does not return rows in sorted order. I try in Solaris 10 SPARC/x86/amd64 and Solaris 8 SPARC/x86, all theses box does not return in sorted order. In addition, TCPTABLE_LOCALPORT and TCPCONNREMOTEPORT are returned in host byte order. I write quick hack, which build sorted linked list in tcpTable_load. ---------------------------------------------------------------------- >Comment By: Thomas Anders (tanders) Date: 2007-10-11 17:26 Message: Logged In: YES user_id=848638 Originator: NO Argh, looks like --enable-mfd-rewrites does *not* enable the udp-mib and tcp-mib rewrites. Please rebuild again with ./configure --enable-mfd-rewrites --with-mib-modules="udp-mib tcp-mib" ... and report back. Sorry for the inconvenience. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2007-10-11 16:56 Message: Logged In: NO % net-snmp-config --version 5.4.1 % net-snmp-config --snmpd-module-list | tr ' ' '\n' snmpv3/snmpEngine snmpv3/snmpMPDStats snmpv3/usmStats snmpv3/usmConf snmpv3/usmUser mibII/system_mib mibII/sysORTable mibII/at mibII/ip mibII/snmp_mib mibII/tcp mibII/icmp mibII/udp mibII/vacm_vars mibII/setSerialNo ucd-snmp/proc ucd-snmp/versioninfo ucd-snmp/pass ucd-snmp/pass_persist ucd-snmp/disk ucd-snmp/loadave agent/extend ucd-snmp/errormib ucd-snmp/file ucd-snmp/dlmod ucd-snmp/proxy ucd-snmp/logmatch ucd-snmp/memory ucd-snmp/vmstat notification/snmpNotifyTable notification/snmpNotifyFilterProfileTable notification-log-mib/notification_log target/snmpTargetAddrEntry target/snmpTargetParamsEntry target/target target/target_counters agent/nsTransactionTable agent/nsModuleTable agent/nsDebug agent/nsCache agent/nsLogging agent/nsVacmAccessTable agentx/master agentx/subagent disman/event/mteScalars disman/event/mteTrigger disman/event/mteTriggerTable disman/event/mteTriggerDeltaTable disman/event/mteTriggerExistenceTable disman/event/mteTriggerBooleanTable disman/event/mteTriggerThresholdTable disman/event/mteTriggerConf disman/event/mteEvent disman/event/mteEventTable disman/event/mteEventSetTable disman/event/mteEventNotificationTable disman/event/mteEventConf disman/event/mteObjects disman/event/mteObjectsTable disman/event/mteObjectsConf disman/schedule/schedCore disman/schedule/schedConf disman/schedule/schedTable utilities/override utilities/execute utilities/iquery host/hr_system host/hr_storage host/hr_device host/hr_other host/hr_proc host/hr_network host/hr_print host/hr_disk host/hr_partition host/hr_filesys host/hr_swrun host/hr_swinst util_funcs kernel_sunos5 mibII/ipAddr mibII/var_route mibII/route_write mibII/tcpTable mibII/udpTable mibII/vacm_context mibII/vacm_conf header_complex snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable agentx/protocol agentx/client agentx/master_admin agentx/agentx_config if-mib/ifTable/ifTable if-mib/ifXTable/ifXTable hardware/memory/hw_mem hardware/memory/memory_solaris hardware/cpu/cpu hardware/cpu/cpu_kstat snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable_interface snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable_data_access if-mib/data_access/interface if-mib/ifTable/ifTable_interface if-mib/ifTable/ifTable_data_access if-mib/ifXTable/ifXTable_interface if-mib/ifXTable/ifXTable_data_access if-mib/data_access/interface_solaris2 % /usr/local/bin/snmpnetstat -c public -Ca -Cp tcp -Cn localhost Active Internet (tcp) Connections (including servers) Proto Local Address Remote Address (state) tcp *.* *.* CLOSED tcp *.60674 *.* LISTEN tcp *.61954 *.* LISTEN tcp 192.168.192.2.5632 172.24.6.90.51328 ESTABLISHED espresso% netstat -af inet -n -P tcp TCP: IPv4 Local Address Remote Address Swind Send-Q Rwind Recv-Q State -------------------- -------------------- ----- ------ ----- ------ ----------- *.* *.* 0 0 49152 0 IDLE *.749 *.* 0 0 49152 0 LISTEN *.111 *.* 0 0 49152 0 LISTEN *.* *.* 0 0 49152 0 IDLE *.754 *.* 0 0 49152 0 LISTEN *.7088 *.* 0 0 49152 0 LISTEN *.22 *.* 0 0 49152 0 LISTEN 192.168.192.2.22 172.24.6.90.32968 49490 0 49490 0 ESTABLISHED 127.0.0.1.25 *.* 0 0 49152 0 LISTEN 127.0.0.1.587 *.* 0 0 49152 0 LISTEN 192.168.192.2.22 172.24.6.90.32966 49490 0 49490 0 ESTABLISHED I think this problem caused solaris kernel does not return socket table in sorted order, but tcpTable_load expcets sorted. written comments in tcpTable.c tcpTable_load(): "Note that since getMibstat returns rows in sorted order," ---------------------------------------------------------------------- Comment By: Thomas Anders (tanders) Date: 2007-10-11 12:34 Message: Logged In: YES user_id=848638 Originator: NO What's the output of "net-snmp-config --snmpd-module-list"? ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2007-10-11 12:02 Message: Logged In: NO Thank you. But, my build configuration has --enable-mfd-rewrites already. I tried in 5.4.1, ./configure \ --with-ldflags=-R/usr/local/ssl/lib \ --with-zlib --with-db \ --enable-mfd-rewrites \ --enable-ucd-snmp-compatibility \ --with-default-snmp-version=1 \ --enable-ipv6 \ --with-cc=/opt/SUNWspro/bin/cc ---------------------------------------------------------------------- Comment By: Thomas Anders (tanders) Date: 2007-10-10 20:45 Message: Logged In: YES user_id=848638 Originator: NO Please rebuild 5.4.x with ./configure --enable-mfd-rewrites (to enable the new tcp-mib implementation) and report back. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1810814&group_id=12694 |