Date: Fri, 26 Mar 1999 14:03:02 -0500 From: Mike Tancsa <mike@sentex.net> To: KHamilton@Hunter.COM Cc: stable@FreeBSD.ORG Subject: Re: UCD SNMP on 3.1-STABLE Message-ID: <3.0.5.32.19990326140302.048dbea0@staff.sentex.ca> In-Reply-To: <Pine.LNX.4.04.9903261944090.4733-100000@ns.double-barrel.b e> References: <2105C00EC6FED11183F300A0C9C83B446BE554@mailbox.Hunter.COM>
next in thread | previous in thread | raw e-mail | index | archive | help
At 07:45 PM 3/26/99 +0100, Michael C. Vergallen wrote: >did you see those config files are installed ? >you may need to create those files from the samples provided. It will still barf with the .conf files installed. There was a patch that someone was kind enough to post along with a PR for this. I dont have the orignial author's name handy (see the PR filing for it), but I do have his/her patch that seems to fix the problem. ---Mike ----------------------------------- *** agent/mibgroup/mibII/tcp.c.orig Mon Nov 30 20:00:46 1998 --- agent/mibgroup/mibII/tcp.c Mon Nov 30 20:04:04 1998 *************** *** 818,823 **** --- 818,824 ---- if((klookup((unsigned long)next, (char *)&inpcb, sizeof (inpcb)) == 0)) { perror("TCP_Count_Connections - inpcb"); + break; } #if !(defined(freebsd2) || defined(netbsd1) || defined(openbsd2)) if (inpcb.INP_PREV_SYMBOL != prev) { /* ??? */ *************** *** 951,962 **** next = tcp_inpcb.INP_NEXT_SYMBOL; ! klookup((unsigned long)next, (char *)&tcp_inpcb, sizeof (tcp_inpcb)); #if !(defined(netbsd1) || defined(freebsd2)) || defined(openbsd2) if (tcp_inpcb.INP_PREV_SYMBOL != tcp_prev) /* ??? */ return(-1); /* "FAILURE" */ #endif /* !(defined(netbsd1) || defined(freebsd2) || defined(openbsd2)) */ ! klookup ( (int)tcp_inpcb.inp_ppcb, (char *)&tcpcb, sizeof (tcpcb)); *State = tcpcb.t_state; #else /* linux */ if (! tcp_prev) --- 952,965 ---- next = tcp_inpcb.INP_NEXT_SYMBOL; ! if (!klookup((unsigned long)next,(char *)&tcp_inpcb,sizeof(tcp_inpcb))) ! return 0; #if !(defined(netbsd1) || defined(freebsd2)) || defined(openbsd2) if (tcp_inpcb.INP_PREV_SYMBOL != tcp_prev) /* ??? */ return(-1); /* "FAILURE" */ #endif /* !(defined(netbsd1) || defined(freebsd2) || defined(openbsd2)) */ ! if (!klookup((int)tcp_inpcb.inp_ppcb, (char *)&tcpcb, sizeof (tcpcb))) ! return 0; *State = tcpcb.t_state; #else /* linux */ if (! tcp_prev) ------------------------------------------------------ >Michael >--- >Michael C. Vergallen A.k.A. Mad Mike, >Sportstraat 28 http://www.double-barrel.be/mvergall/ >B 9000 Gent ftp://ftp.double-barrel.be/pub/linux/ >Belgium tel : 32-9-2227764 Fax : 32-9-2224976 > >On Fri, 26 Mar 1999, Hamilton, Kent wrote: > >> Is anyone other than me having huge problems with snmpd on 3.1-STABLE? >> >> I've tried installing the package version, I've tried the ports version and >> I'm having the same problem with both. Oh, and I've tried it on 3 different >> STABLE systems with the same results. >> >> Here's the excerpt from the log files. >> >> 1999-03-26 12:23:39 UCD-SNMP version 3.5.3 >> snmpd: /usr/local/share/snmp/snmpd.local.conf: No such file or directory >> snmpd: /usr/local/lib/snmp/snmpd.conf: No such file or directory >> snmpd: /usr/local/lib/snmp/snmpd.local.conf: No such file or directory >> Opening port(s): 161 >> >> ... mgmt.interfaces query comes in. I've deleted the info for that from >> here. >> then we get to this point and: >> >> var_ip: ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaType.1.10.2.1.1 >> kvm_read(*, 3c7, 0xefbfb7f8, 96) = 0: kvm_read: Bad address >> TCP_Count_Connections - inpcb: Bad address >> kvm_read(*, 1bddb3, 0xefbfb73c, 188) = 0: kvm_read: Bad address >> TCP_Count_Connections - tcpcb: Bad address >> kvm_read(*, 3c7, 0x80654f0, 96) = 0: kvm_read: Bad address >> kvm_read(*, 1bddb3, 0xefbfb3f4, 188) = 0: kvm_read: Bad address >> kvm_read(*, 3c7, 0x80654f0, 96) = 0: kvm_read: Bad address >> kvm_read(*, 1bddb3, 0xefbfb3f4, 188) = 0: kvm_read: Bad address >> kvm_read(*, 3c7, 0x80654f0, 96) = 0: kvm_read: Bad address >> kvm_read(*, 1bddb3, 0xefbfb3f4, 188) = 0: kvm_read: Bad address >> kvm_read(*, 3c7, 0x80654f0, 96) = 0: kvm_read: Bad address >> kvm_read(*, 1bddb3, 0xefbfb3f4, 188) = 0: kvm_read: Bad address >> kvm_read(*, 3c7, 0x80654f0, 96) = 0: kvm_read: Bad address >> kvm_read(*, 1bddb3, 0xefbfb3f4, 188) = 0: kvm_read: Bad address >> kvm_read(*, 3c7, 0x80654f0, 96) = 0: kvm_read: Bad address >> kvm_read(*, 1bddb3, 0xefbfb3f4, 188) = 0: kvm_read: Bad address >> kvm_read(*, 3c7, 0x80654f0, 96) = 0: kvm_read: Bad address >> kvm_read(*, 1bddb3, 0xefbfb3f4, 188) = 0: kvm_read: Bad address >> >> This went on for about 5 minutes and 12MB of log file so..... >> >> Any help would be appreciated. >> >> >> To Unsubscribe: send mail to majordomo@FreeBSD.org >> with "unsubscribe freebsd-stable" in the body of the message >> > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-stable" in the body of the message > > ------------------------------------------------------------------------ Mike Tancsa, tel 01.519.651.3400 Network Administrator, mike@sentex.net Sentex Communications www.sentex.net Cambridge, Ontario Canada To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.19990326140302.048dbea0>