linker errors on libnetsnmptrapd.so

2009-04-03 Thread Geoffrey Bays
Hi All: I am compiling a C++ wrapper of some net_snmp libs on a Red Hat machine. By adding -lwrap, -lrpm, and -lsensors I have reduced the errors to the following four: /usr/lib//libnetsnmptrapd.so: undefined reference to `dropauth' /usr/lib//libnetsnmptrapd.so: undefined reference to `event_inpu

Re: Segmentation fault(coredump)

2009-04-03 Thread Thomas Anders
down Load wrote: > 7)/usr/local/bin#./snmpget -v 1 -c public localhost hrStorageType.45 > Timeout: No Response from localhost. > 8)/usr/local/bin#ps -ef|grep snmpd > root 1134822 3330148 0 17:24:29 pts/1 0:00 grep snmpd > > 9)/usr/local/bin#uname -a > AIX sapdev 3 5 0008B7BED700 Sounds l

Get the value of a MIB variable in C code

2009-04-03 Thread Gómez González, Enrique
Hi, I code with mib2c.table_data.conf and I have a general question. I am in the cache_load function filling a table with data from a file. All is correct, but I have a scalar in my MIB that indicate me which file I must load. I don't know, in my C-code how O access to this OID that tell me w

Re: Segmentation fault(coredump)

2009-04-03 Thread down Load
Hi All, 1) #/usr/local/sbin/snmpd 2)#ps -ef|grep snmpd     root 1134820   1   0 17:15:09  -  0:00 /usr/local/sbin/snmpd     root 1146916 3330148   0 17:15:17  pts/1  0:00 grep snmpd 3)#cd /usr/local/bin 4)/usr/local/bin#./snmpgetnext -v 1 -c public localhost hrStorageIndex.44 HOST-RESOURCE

Re: Segmentation fault(coredump)

2009-04-03 Thread Thomas Anders
down Load wrote: > NET-SNMP version 5.4.2.1 What system/OS are you running net-snmp on? ("uname -a) What's the output of "net-snmp-config --configure-options"? +Thomas -- ___

Re: Segmentation fault(coredump)

2009-04-03 Thread Dave Shield
2009/4/3 down Load : > 2) i run snmpwalk and found > Received SNMP packet(s) from UDP: [0.0.0.0]->[127.0.0.1]:-26649 >   GETNEXT message >     -- HOST-RESOURCES-MIB::hrStorageType.44 > Segmentation fault(coredump) What is the next entry after row 44? I.e. what is the output of snmpgetnext .

Segmentation fault(coredump)

2009-04-03 Thread down Load
Hi All, 1) I run  #/usr/local/sbin/snmpd -d -f -L -c /usr/local/share/snmp/snmpd.conf NET-SNMP version 5.4.2.1 2) i run snmpwalk and found Received SNMP packet(s) from UDP: [0.0.0.0]->[127.0.0.1]:-26649   GETNEXT message     -- HOST-RESOURCES-MIB::hrStorageType.44 Segmentation fault(coredump)