>>>>> "Caleb" == Caleb Case <caleb@...> writes:
Caleb> I'm pretty sure that I built db with --enable-cxx, at least
Caleb> I've checked and the library libdb_cxx.a is there. Would
Caleb> it be possible for me to get the version of OpenSNMP that
Caleb> you are running? I got the CVS version yesterday and it
Caleb> doesn't run (segmentation fault).
Well, if you have the CVS version, you have the version I'm
using. There is a couple minor changes to some test scripts that
aren't checked in (ucd_* scripts because the net-snmp command line
changed), but no other changes besides some debugging output ('cout <<
' lines). I'm still having DB problems occasionally (which I think are
ppc thread related at this point). But when I don't get those
problems, it's working fine (i.e. no seg-faults).
If you haven't tried this yet, you might try doing a 'make clean;
make' in the top directory. Sometimes, minor recompiles mess up
inter-dependencies and the entire source needs to be recompiled. If I
remember correctly, a symptom of this is seg-faulting.
Caleb> Mike, The computers have 256 MB of RAM and 3 GB of free
Caleb> memory on the partition that we are running OpenSNMP and
Caleb> DB. I think that the message may be coming from db, what
>> definitely more than enough memory.
Caleb> kind of problem have you been having with it? I'm using
Caleb> BerkeleyDB 3.3.11, I tried using the newer 4.X versions but
Caleb> I think they have changed something that made them
Caleb> incompatible with 3.X code ;o]
>> I'm currently using db 3.1.17. I believe that Robert tried the
>> 4.x stuff and found it didn't work either. I think that 3.3
>> should work though... yep, I just checked and 3.3.11 does work
>> for me.
>> another sanity check just occurred to me, did you build db with
>> The problem I'm generally getting from db is a crash at the
>> cr's startup with an assert error from, I think (I'm not that
>> familiar with opensnmp db code), the db getting opened multiple
>> times. The error is usually something like:
>> cr: snmpDatabaseObj.C:63: DbHelper::DbHelper(const char *):
>> Assertion `count == 1' failed.
>> I get this problem periodically, it mysteriously goes away
>> (making it very difficult to track down) after a compile or
>> after restarting once or twice, and then everything works fine,
Caleb> Hey guys, I've been having problems running opensnmp with
Caleb> authentication and privacy. When I run the script
Caleb> cg_authPriv_cr, either the cg or the cr stops saying "out
Caleb> of memory". Do you guys have a problem like this?
>> >> I haven't seen this error. The only regular problems I've
>> >> seen lately are db related. My first guess is that the
>> >> computer is really running out of memory. How much memory
>> >> (both hard drive and RAM) do you have on the machine?
>> >> Opensnmp can take up a good deal of space. Although by
>> >> today's standards (i.e. lots of RAM), it should be OK. Also,
>> >> I it still has a good sized memory leak that I was unable to
>> >> track down. I've found most of them, but there is one nasty
>> >> one still in there (possibly several smaller one's, but I
>> >> think it's one big one :) ). If it is running for a long
>> >> time, it can start adding up.