Binding values part 2

2012-05-29 Thread Magda Stefan
    Hi Dave,     I chose to use a table for my data because the agent that I am making has to run on multiples computers, some of them having multiple interfaces. That's why my netSnmpPrvIndex is actually ifIndex (from ifTable). On the first column I have the local address, an on the others I w

Memory leak in vacm/disman?

2012-05-29 Thread dave
Hi, I am trying to set up disman restarts on a process. I am pretty sure I don't have acm set up properly, and as a result of this I see a memory leak every time I attempt, apparently, to run the daemon with the line that is commented out below enabled. When I run start the daemon with a -d op

Question about tinysnmp

2012-05-29 Thread Geoffrey Fournier
Hi! I have some problems with the size of net-snmp. I have heard about tinysnmp do u know if a stable version exist? Do you have already tested it? what do you think about it? have u got some links ? Thanks you -- Live Sec

Unexplained coverage results for snmpset w/invalid values

2012-05-29 Thread Kevin Stone
I’m starting to use lcov (a coverage tool) on one of our projects that has a net-snmp interface, and I’m getting some false-negatives with the SNMPSET handler code that I can’t explain. I _KNOW_ that the test vector script is exercising each read-write accessible parameter with several boundary co

Re: Problem with net-snmp, HOST-RESOURCES-MIB, solaris and zfs

2012-05-29 Thread Vladislav Simileac
Daniel Werner gmx.ch> writes: > > Hi > > I compiled net-snmp 5.7.1 without problems on Solaris 10. But > then I noticed that > snmpwalk -v2c -c public localhost HOST-RESOURCES-MIB::hrStorageDescr > doesn't return any ZFS filesystems at all. > .. > When I eliminated t

Re: Undefined reference to custom function in separate header and c files

2012-05-29 Thread Ricardo Hillbrecht
I´m already using --with-libs="-l", but it think it applies to standard libs, not worded to custom .c and .h files, and these files won´t be visible in the whole agent compilation, they are used by one single table. Maybe the correct is to use LDFLAGS of configure script, but I could´t find an

Re: Binding values

2012-05-29 Thread Dave Shield
On 29 May 2012 12:50, Magda Stefan wrote: >         I'm using a program that will write every 1 second in 2 files de > values that I need: eth0_delay.out and eth0_datarate.out.In those files it > is only one row that contains a string[15] that represent the measured > values from my interface. Th

Re: question on mib2c, tables, etc....follow up

2012-05-29 Thread Michael Dorin
Dave, Thanks for your reply. I must admit I did find the bug...and should have posted it..but was a bit ashamed since I had been doing the nasty habit of ignoring warnings! My variables table need something bigger than variable4...once I changed it to variable7 and REGISTER_MIBS in the init functi

Binding values

2012-05-29 Thread Magda Stefan
Hi Dave,     Thanks again for your support.     First of all I would like to tell you that my Perl version is: "v5.12.2 built for i386-linux-thread-multi".     Secondly I would like to describe the way I would like to bind the values to my columns: netSnmpPrvOWD and netSnmpPrvATR:         I'm

Re: Call "snmp_get"

2012-05-29 Thread Dave Shield
On 25 May 2012 07:03, Vincent Bernat wrote: >>> I would like to issue an  internal GET request. > >> Try >>        netsnmp_query_get( netsnmp_variable_list *list, >>                       netsnmp_session       *session) > I am unsure on  how to use it. If I use a  regular session, I will query >

Re: What is the correct encoding for SNMP type Unsigned32?

2012-05-29 Thread Dave Shield
On 29 May 2012 08:39, Jan Willamowius wrote: >> First question - are they actually different, >> or are they simply being reported differently? > > They actually are slighly different. > From Net-SNMP based agent: (decoded as Gauge32 by Wireshark) > > Received 48 byte packet from UDP: [192.168.1

Re: Undefined reference to custom function in separate header and c files

2012-05-29 Thread Dave Shield
On 23 May 2012 21:08, Ricardo Hillbrecht wrote: > When i call "make", to compile the custom MIB within the agent, I get > an "undefined reference" error: > > ./.libs/libnetsnmpmibs.so: undefined reference to `customFunction' > collect2: ld returned 1 exit status > > I think the .c and .h files wit

Re: sysObjectID difference between RedHat6.1 and Redhat5.3

2012-05-29 Thread Dave Shield
On 20 May 2012 13:20, Evgeny Rachlenko wrote: > I've upgraded my system from RH5.3 to 6.1 , then found changes in snmpd > request. > In the redhat 5.3 query for sysObjectID receive Value:   > 1.3.6.1.4.1.1619.20.25 > In the redhat 6.1 I get extra 3 symbols : 1.3.6.1.4.1.1619.20.25.10 Neither o

Re: question on mib2c, tables, etc....follow up

2012-05-29 Thread Dave Shield
On 18 May 2012 14:57, Michael Dorin wrote: > My question should have been more specific..the Table function is > invoked when a get request comes in... > and UPSALARMID  is built...but it never comes back for the remaining > columns.(At least that is how it seems to me)... > I thought it would com

Re: Problem installing a MIB

2012-05-29 Thread Dave Shield
On 18 May 2012 10:41, Jérôme BELLEGARDE wrote: > But :  snmpset -v2c -c tutset localhost: > NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 = 5 > Return me : Reason: wrong Length (The set value has an illegal length from > what the agent expects) > Failed object: NET-SNMP-TUTORIAL-MIB::nstAgen

Re: What is the correct encoding for SNMP type Unsigned32?

2012-05-29 Thread Jan Willamowius
Dave Shield wrote: > On 27 May 2012 08:46, Jan Willamowius wrote: > > The Unix implementation of the agent uses Net-SNMP and sets the OID as > > type ASN_UNSIGNED. When I look at the GET response with Wireshark, it > > decodes it as a "Gauge32" value. That made sense at first sight, > > because ac

Re: configuration files / loading a mib

2012-05-29 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 28 Ma