RE: netsnmp_call_handlers() called illegally

2005-02-02 Thread Fong Tsui
Hi, David, I had the similar problem as you described below. Have you got solution for it? Thanks, Fong -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Sousa Coelho Sent: Tuesday, August 03, 2004 6:53 AM To: net-snmp-users@lists.sourceforge.net

net-snmp with freeBSD and all interfaces

2005-02-02 Thread Monil Patel (Sentient Internet)
Hi, I'm running net-snmp on "FreeBSD 4.10-RELEASE". I have edited snmpd.conf to work with my private communities and the snmpd can be accessed remotely without any problems. On FreeBSD, I have a number of 802.1q VLAN's created from ifconfig. Since the machine's last reboot, no information for a

Re: snmptrapd ld.so.1 false inking errors

2005-02-02 Thread Andy Ford
Hi Bruce, Robert I have now done ... rm -f /lib/*netsnmp* rm -f /usr/lib/*netsnmp* rm -f /usr/bin/snmp* rm -f /usr/sbin/snmp* rm -f /usr/local/lib/*netsnmp* rm -f /usr/local/bin/snmp* rm -f /usr/local/sbin/snmp* untar-ed a clean version of net-snmp set PATH=/usr/sbin:/usr/local/bin:/usr/ccs/

Re: use of scalar objects Newbie

2005-02-02 Thread Andres C
Hello Robert, > AC> 6. How can I define that the agent takes an > action > AC> when a variable is set to certain value? > > Again, it depends on external vs internal. External > monitoring/actions are > done via snmpd.conf. Internally, you check for that > value in your handler and > perform the

Re: Table index problem

2005-02-02 Thread Greg L Robillard
Robert, Thanks for the information. When I execute my get statements, I am returning the values that I am expecting. I would additionally like the snmpwalks to return the identical information which it is not. As you stated, I was not using the indexing as it was intended, but I still don't

Re: Table index problem

2005-02-02 Thread Greg L Robillard
Ok, I understand why it is showing a 0 for the first entry and am handling this ok, but as the walk continues through the table, it extracts index 1, the first entry, handles it, repeats returning once again index 1. Then it moves through the table correctly, grabbing the right row and column.

Re: use of scalar objects Newbie

2005-02-02 Thread Robert Story
On Mon, 31 Jan 2005 10:54:10 -0800 (PST) Andres wrote: AC> I generated the code with mib2c in a Windows AC> enviroment, with the help of the mib2c.scalar.conf AC> file. It generated the .c and .h files correctly. My AC> questions are: AC> AC> 1. How can I define where the data comes from? You ge

Re: snmptrapd ld.so.1 false inking errors

2005-02-02 Thread Robert Story
On Tue, 01 Feb 2005 17:54:19 + Andy wrote: AF> > On Tue, 2005-02-01 at 14:03 +, Andy Ford wrote: AF> > > I have installed the net-snmp (from cvs today) distribution AF> > > successfully on a SunOS 5.8 Generic_117000-01 sun4u sparc AF> > > SUNW,UltraAX-i2 box. Unfortunately, when I run snmpt

Re: Table index problem

2005-02-02 Thread Robert Story
On Wed, 02 Feb 2005 08:01:55 -0600 Greg wrote: GLR> I loop through the table GLR> for (request = requests; request; request=request->next) GLR> { .. GLR> table_info = netsnmp_extract_table_info(request) GLR> index= *(table_info->indexex->val.integer); GLR> } This doesn't loop through the t

Re: Table index problem

2005-02-02 Thread Greg L Robillard
Robert, Thanks for this info on the index 0. That solves one of my issues of trying to correctly extract information from my table. The other issue is this: I loop through the table for (request = requests; request; request=request->next) { .. table_info = netsnmp_extract_table_info(reques

RE: snmptrapd ld.so.1 false inking errors

2005-02-02 Thread Andy Ford
Truss doesn't seem to produce anything interesting either. Apologies for the detail... > truss -a -e -f -t all -v all /usr/local/sbin/snmptrapd 26550: execve("/usr/local/sbin/snmptrapd", 0xFFBEF7F4, 0xFFBEF7FC) argc = 1 26550: argv: /usr/local/sbin/snmptrapd 26550: envp: PWD=/tmp/net-snmp TZ=

RE: snmptrapd ld.so.1 false inking errors

2005-02-02 Thread Andy Ford
Hi Bruce Well, I installed the binutils package from sunfreeware. Set PATH=/usr/sbin:/usr/local/bin:/usr/ccs/bin:/usr/bin (as per my README.solaris file) and re-installed a fresh CVS copy of net-snmp. I am still seeing the same issues i.e... ld.so.1: /usr/local/sbin/snmptrapd: fatal: relocation e