--> ritesh has joined #net-snmp
[2004/04/02 03:25:04] #Net-SNMP <ritesh> how to create an own mib in net-snmp 5.x
--> FastJack has joined #net-snmp
--> Ward has joined #net-snmp
[2004/04/02 05:17:34] #Net-SNMP <Ward> Where can I find information about how to configure authentication for a group?
--> drPoggs has joined #net-snmp
[2004/04/02 05:18:37] #Net-SNMP <drPoggs> 'fternoon
[2004/04/02 05:38:32] #Net-SNMP <rstory> Ward: how do you mean?
[2004/04/02 05:38:38] #Net-SNMP <rstory> drPoggs: mornin'
[2004/04/02 05:39:33] #Net-SNMP <rstory> Ward: group of users, group of IPs? maybe an example of what you want to do would help
[2004/04/02 05:39:55] #Net-SNMP <Ward> well, i've got a private group which is defined as noauth, it 's a group of IP's
[2004/04/02 05:40:24] #Net-SNMP <Ward> but I dont know where I can find an example of how to configure auth
[2004/04/02 05:41:31] #Net-SNMP <drPoggs> hey robert
[2004/04/02 05:41:48] #Net-SNMP <rstory> are you using v3, old-style v1 (com2sec) or new-style v1 (rocommunity) access control?
[2004/04/02 05:42:03] #Net-SNMP <rstory> hey peter
[2004/04/02 05:42:15] #Net-SNMP <Ward> old-style v1
[2004/04/02 05:42:49] #Net-SNMP <Ward> but I can switch to new-style v1 if necessary
[2004/04/02 05:44:38] #Net-SNMP <rstory> do you need to restrict them to certain oids, or do you just want to restrict by ip?
[2004/04/02 05:45:04] #Net-SNMP <rstory> new-style isn't necessary, it's just a *lot* simpler.
[2004/04/02 05:48:19] #Net-SNMP <Ward> ristrict it to 1 ip
[2004/04/02 05:48:31] #Net-SNMP <Ward> everything, not to certain oids
[2004/04/02 05:48:44] #Net-SNMP <rstory> that's easy: 'rocommunity public 192.168.1.42'
[2004/04/02 05:49:29] #Net-SNMP <rstory> delete all that com2sec, access, group and view stuff.
[2004/04/02 05:50:24] #Net-SNMP <Ward> and how do I use authentication then?
[2004/04/02 05:50:37] #Net-SNMP <Ward> after the ip based check
[2004/04/02 05:53:06] #Net-SNMP <rstory> ok, if you want *real* authentication, then you need to use v3, not v1. see the README.snmpv3 file..
[2004/04/02 05:54:31] #Net-SNMP <Ward> hm, never mind then ;p
[2004/04/02 05:54:40] #Net-SNMP <Ward> ip based will do the job then
[2004/04/02 05:55:32] #Net-SNMP <rstory> the other option would be a vpn to do the authentication... IPSEC, SSH, etc
--> zells has joined #net-snmp
--> wes has joined #net-snmp
[2004/04/02 06:09:07] #Net-SNMP <drPoggs> hey wes
[2004/04/02 06:14:12] #Net-SNMP <zells> just curious if some of the openbsd specific bugs are fixed in the latest cvs?
[2004/04/02 06:18:55] #Net-SNMP <zells> one of them is CONFIGURE_OPTIONS "" --with-perl-modules --with-mib-modules=host""
[2004/04/02 06:19:39] #Net-SNMP <zells> in include/net-snmp/net-snmp-config.h
[2004/04/02 06:19:55] #Net-SNMP <wes> I'm not sure.
[2004/04/02 06:20:03] #Net-SNMP <wes> I don't have a openbsd box to try it on.
[2004/04/02 06:20:15] #Net-SNMP <wes> I vaguely recall someone fixing that, but I'm not positive.
[2004/04/02 06:20:43] #Net-SNMP <zells> k
[2004/04/02 06:21:29] #Net-SNMP <zells> I also had to add #undef MBSTAT_SYMBOL at line 136 in net-snmp/agent/mibgroups/host/hr_storage.c
[2004/04/02 06:22:05] #Net-SNMP <zells> tcptable doesn't compile as well, but I hear that that breaks a lot in other OS installs because its very OS specific
[2004/04/02 06:22:43] #Net-SNMP <zells> having a lot of problems with mibII..
[2004/04/02 06:22:59] #Net-SNMP <wes> most of the tables are OS specific. That's what makes maintaining the package so hard!
[2004/04/02 06:23:08] #Net-SNMP <zells> I bet
[2004/04/02 06:23:16] #Net-SNMP <zells> am I missing much if I just disable mibII?
[2004/04/02 06:23:17] #Net-SNMP <zells> :)
[2004/04/02 06:23:17] #Net-SNMP <wes> log the MBSTAT thing as a bug please.
[2004/04/02 06:23:29] #Net-SNMP <wes> well, what is it you want to use the package for?
[2004/04/02 06:23:47] #Net-SNMP <zells> well eventually I will be tracking a lot through netmrtg
[2004/04/02 06:25:00] #Net-SNMP <wes> yes, but what will you be tracking.
[2004/04/02 06:25:12] #Net-SNMP <wes> that's the only way I can know if you'd be missing something you wanted.
[2004/04/02 06:25:17] #Net-SNMP <zells> ah
[2004/04/02 06:25:57] #Net-SNMP <zells> well hopefully cpu, mem, network, hard disks
[2004/04/02 06:26:31] #Net-SNMP <wes> well, the host stuff would be most interesting then and the mibII stuff could probably suffer.
[2004/04/02 06:26:31] #Net-SNMP <zells> from multiple servers
[2004/04/02 06:26:49] #Net-SNMP <wes> --enable-mini-agent --with-mib-modules="host" might work for you.
[2004/04/02 06:27:00] #Net-SNMP <zells> yeah that was goign to be my last resort
[2004/04/02 06:27:39] #Net-SNMP <zells> ./configure --with-perl-modules --with-mib-modules=host --with-out-mib-modules=mibII/tcpTable
[2004/04/02 06:28:20] #Net-SNMP <zells> I guess I'll try the mini agent
[2004/04/02 06:32:16] #Net-SNMP <zells> thanks wes
[2004/04/02 06:32:29] #Net-SNMP <wes> np
[2004/04/02 06:34:18] #Net-SNMP <drPoggs> wes: is the current cvs broken? snmptrapd_handlers.c:34:46: agent/mibgroup/utilities/execute.h: No such file or directory
[2004/04/02 06:34:35] #Net-SNMP <wes> no, it should work.
[2004/04/02 06:34:46] #Net-SNMP <wes> what did the -I flags look like for the compilers.
[2004/04/02 06:35:50] #Net-SNMP <drPoggs> I as in India, or l as in lima?
[2004/04/02 06:35:53] #Net-SNMP <drPoggs> (crappy windows fonts)
[2004/04/02 06:36:08] #Net-SNMP <drPoggs> gcc -I../include -I. -I../agent -I../agent/helpers -I../agent/mibgroup -I../snmplib
[2004/04/02 06:37:04] #Net-SNMP <wes> Um, the current cvs doesn't have the execute.h file in it.
[2004/04/02 06:37:17] #Net-SNMP <wes> (ie, not invoked from snmptrapd_handlers.c)
[2004/04/02 06:37:29] #Net-SNMP <wes> Opps.
[2004/04/02 06:37:37] #Net-SNMP <wes> looking at the wrong file.
--> konrad_ has joined #net-snmp
--> konrad_ has joined #net-snmp
[2004/04/02 06:38:08] #Net-SNMP <wes> try changing the file to have ../agent in it and see if that fixes it.
[2004/04/02 06:38:11] #Net-SNMP <wes> (should)
[2004/04/02 06:46:21] #Net-SNMP <Ward> hm, i've got an "exec somescript /usr/bin/somescript.pl" which provide me a single line with 4 numbers, but I can not find this numbers in snmpwalk?
[2004/04/02 06:47:30] #Net-SNMP <rstory> should be seen with a walk of .1.3.6.1.4.1.2021.8.1
[2004/04/02 06:47:53] #Net-SNMP <Ward> didnt give me any output
[2004/04/02 06:48:51] #Net-SNMP <rstory> test with something simple like 'exec test /bin/echo test' and see if that works
[2004/04/02 06:49:33] #Net-SNMP <Ward> also doesnt give any output
[2004/04/02 06:51:06] #Net-SNMP <rstory> hmm.. did you restart snmpd after adding these entries to snmpd.conf?
[2004/04/02 06:52:59] #Net-SNMP <Ward> yes
[2004/04/02 06:54:13] #Net-SNMP <drPoggs> wes: will try in a sec, $BOSS looming :D
[2004/04/02 06:54:47] #Net-SNMP <Ward> rstory: snmpd is started with /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd.pid
[2004/04/02 06:55:05] #Net-SNMP <wes> no problem.
[2004/04/02 06:55:10] #Net-SNMP <wes> I actually get the error now too.
[2004/04/02 06:55:20] #Net-SNMP <wes> rstory messed up the makefile ;-)
[2004/04/02 06:55:24] #Net-SNMP <wes> ACTION pokes rstory for fun.
[2004/04/02 06:56:36] #Net-SNMP <wes> rstory: by the way, if you haven't checked out "ccache" do so.
[2004/04/02 06:56:40] #Net-SNMP <wes> very very cool.
[2004/04/02 06:56:45] #Net-SNMP <wes> (and fast)
[2004/04/02 06:57:38] #Net-SNMP <wes> drPoggs: btw, make sure you configured using --enable-embedded-perl if you want to check out the new perl module.
[2004/04/02 06:57:47] #Net-SNMP <konrad> ACTION chuckles
[2004/04/02 06:58:02] #Net-SNMP <konrad> Ward: You SNMP daemon is running on LSD!
[2004/04/02 06:58:32] #Net-SNMP <Ward> konrad: hm?
[2004/04/02 06:58:47] #Net-SNMP <konrad> Ward: snmpd -Lsd
[2004/04/02 06:58:54] #Net-SNMP <Ward> ah
[2004/04/02 06:59:20] #Net-SNMP <rstory> Ward: try running in the foreground to look for errors: '/usr/sbin/snmp -Le -f'
[2004/04/02 06:59:40] #Net-SNMP <wes> ACTION is going afk for a bit (breakfast time)
[2004/04/02 06:59:48] #Net-SNMP <rstory> wes: which makefile?
[2004/04/02 07:00:56] #Net-SNMP <Ward> rstory: it doesnt give any output
[2004/04/02 07:01:34] #Net-SNMP <rstory> not even startup messages? what version are you running?
[2004/04/02 07:01:38] #Net-SNMP <Ward> OMG
[2004/04/02 07:01:41] #Net-SNMP <Ward> I'm so stupid
[2004/04/02 07:02:09] #Net-SNMP <Ward> i took the wrong IP for snmpwalk
[2004/04/02 07:04:09] #Net-SNMP <rstory> doh
[2004/04/02 07:04:20] #Net-SNMP <Ward> sorry
[2004/04/02 07:04:25] #Net-SNMP <rstory> i hate it when that happens!
[2004/04/02 07:04:49] #Net-SNMP <Ward> :)
[2004/04/02 07:09:17] #Net-SNMP <drPoggs> right, $BOSS has gone to $COFFEE_BAR
[2004/04/02 07:18:56] #Net-SNMP <wes> rstory: I fixed it already. don'tworry about it.
[2004/04/02 07:19:56] #Net-SNMP <drPoggs> wes: the " try changing the file to have ../agent in it and see if that fixes it." - which file?
[2004/04/02 07:20:28] #Net-SNMP <drPoggs> oh, got it
[2004/04/02 07:25:30] #Net-SNMP <rstory> wes: any ideas on how to fix the perl stuff so it could be built outside of the source dir?
[2004/04/02 07:28:15] #Net-SNMP <wes> It can now.
[2004/04/02 07:28:40] #Net-SNMP <wes> not sure why you think there is a problem.
[2004/04/02 07:28:42] #Net-SNMP <wes> you have to have done a make install first.
[2004/04/02 07:28:47] #Net-SNMP <wes> Ohhh... you mean vpath problems?
[2004/04/02 07:31:22] #Net-SNMP <rstory> no... when I run make:
[2004/04/02 07:31:22] #Net-SNMP <rstory> /bin/sh: line 1: cd: perl: No such file or directory
[2004/04/02 07:31:22] #Net-SNMP <rstory> Can't open perl script "Makefile.PL": No such file or directory
[2004/04/02 07:31:22] #Net-SNMP <rstory> make: *** [perlmakefiles] Error 2
[2004/04/02 07:31:53] #Net-SNMP <wes> I don't think it can be don.
[2004/04/02 07:32:16] #Net-SNMP <wes> quicky skimming the documentation for the ExtUtils::MakeMaker module doesn't seem to look like it supports virtual paths.
[2004/04/02 07:32:37] #Net-SNMP <wes> IE, if you want perl I think you must build in the same directory.
[2004/04/02 07:32:51] #Net-SNMP <wes> (the other option would be to auto-copy the sources. Ick)
[2004/04/02 07:36:19] #Net-SNMP <drPoggs> wes: Your gettable > my gettable
[2004/04/02 07:37:32] #Net-SNMP <wes> ?
[2004/04/02 07:37:52] #Net-SNMP <wes> Oh, I dropped (currently) the passing in of a varbind.
[2004/04/02 07:37:54] #Net-SNMP <drPoggs> Your reworking of gettable is a huge improvement, i.e. it actually works
[2004/04/02 07:38:12] #Net-SNMP <wes> I'm not sure a varbind makes much sense to pass in, but there is no reason we couldn't support it.
[2004/04/02 07:38:54] #Net-SNMP <drPoggs> I think its important to support several methods of "input" - somebody may deal purely in VarBinds in their perl, and not want to have to convert them to a scalar every time they call gettable
[2004/04/02 07:41:32] #Net-SNMP <wes> but why would someone do that if the API didn't support it. They're not getting the varbinds from somewhere else (like get/getnext/set where you frequently do). Thus, they must construct them right before the API call and then internally to gettable they're done away with. I'm not sure what this buys you?
[2004/04/02 07:46:07] #Net-SNMP <drPoggs> Hm, OK - I've become confused on the best way to handle SNMP data within my code. I started off by holding everything in scalars, but then discovered VarBinds so worked with those...
[2004/04/02 07:46:30] #Net-SNMP <rstory> wes: have you ever looked at Module::Build? "Module::Build is the official heir apparent to MakeMaker"
[2004/04/02 07:46:44] #Net-SNMP <wes> well, varbinds make sense for the rest of the functions because that's what it uses internally.
[2004/04/02 07:47:51] #Net-SNMP <wes> IE, the get/set/etc routines deal on the level of varbinds, so that makes sense. However, gettable is operating at a much higher level than varbinds, so, IMHO, it doesn't make sense to pass one in (not that you couldn't, I just don't understand why you would))
[2004/04/02 07:48:20] #Net-SNMP <drPoggs> Gotcha.
[2004/04/02 07:48:21] #Net-SNMP <wes> rstory: no. It isn't around by default and it seems silly to have people download a new module that isn't there by default if it isn't needed.
[2004/04/02 07:48:35] #Net-SNMP <wes> It'd have to be a big win to make me want to switch.
[2004/04/02 07:55:39] #Net-SNMP <drPoggs> oh, that's what I've been meaning to ask - how do I get snmptranslate to output an OID numerically?
[2004/04/02 07:55:56] #Net-SNMP <wes> -On
[2004/04/02 07:56:24] #Net-SNMP <drPoggs> that's what I've been trying repeatedly:
[2004/04/02 07:56:27] #Net-SNMP <drPoggs> pwh@gbrmgmt1:/usr/local/netman/bridge$ snmptranslate -IR -On sysUpTime.0
[2004/04/02 07:56:27] #Net-SNMP <drPoggs> DISMAN-EVENT-MIB::sysUpTimeInstance
[2004/04/02 07:56:40] #Net-SNMP <drPoggs> I remember Dave posted something to the list when I asked him about it ages ago, but I can't find the mail
[2004/04/02 08:00:31] #Net-SNMP <wes> % snmptranslate -IR -On sysUpTime.0
[2004/04/02 08:00:32] #Net-SNMP <wes> .1.3.6.1.2.1.1.3.0
[2004/04/02 08:00:39] #Net-SNMP <wes> what version are you using?
[2004/04/02 08:00:50] #Net-SNMP <drPoggs> 5.1 on Debian unstable
[2004/04/02 08:00:59] #Net-SNMP <wes> very odd.
[2004/04/02 08:01:18] #Net-SNMP <drPoggs> I thought I was missing something, but it could be Debian's snmp.conf
[2004/04/02 08:01:23] #Net-SNMP <rstory> drPoggs: do you have any mib related options in your ~/.snmp/snmp.conf?
[2004/04/02 08:01:40] #Net-SNMP <drPoggs> rstory: I don't have an snmp.conf in ~
[2004/04/02 08:02:10] #Net-SNMP <wes> does it have a "printNumericOids" token in the snmp.conf file?
[2004/04/02 08:02:32] #Net-SNMP <wes> run snmptranslate -Dread_config and see if it is reading one
[2004/04/02 08:03:29] #Net-SNMP <drPoggs> yup, "printnumericoids yes" in /etc/snmp/snmp.conf
[2004/04/02 08:03:46] #Net-SNMP <drPoggs> read_config: /etc/snmp/snmp.conf:60 examining: printnumericoids yes
[2004/04/02 08:03:46] #Net-SNMP <drPoggs> read_config: Found a parser. Calling it: printnumericoids / yes
[2004/04/02 08:06:12] #Net-SNMP <wes> try, um, "env SNMPCONFPATH=/xxxyyy snmptranslate -IR -On sysUpTime.0"
--> whitten_ has joined #net-snmp
[2004/04/02 08:07:58] #Net-SNMP <drPoggs> yup, that works
[2004/04/02 08:08:26] #Net-SNMP <drPoggs> only if I do SNMPCONFPATH=/
[2004/04/02 08:09:17] #Net-SNMP <wes> sounds like a bug.
[2004/04/02 08:09:23] #Net-SNMP <wes> printnumericoids yes should work.
[2004/04/02 08:09:41] #Net-SNMP <drPoggs> a bug in the Debian packaging?
[2004/04/02 08:11:03] #Net-SNMP <wes> I don't know. I'd need to run snmptranslate in a debugger and put a break point at default_store.c:344
[2004/04/02 08:11:56] #Net-SNMP <drPoggs> I can do that for you on a box here if you like?
[2004/04/02 08:15:55] #Net-SNMP <wes> well, feel free...
[2004/04/02 08:16:19] #Net-SNMP <wes> hit next a few times to make sure it gets to line that says itmp = 1
[2004/04/02 08:16:44] #Net-SNMP <drPoggs> uhm, can you prompt me for what to do?
[2004/04/02 08:17:16] #Net-SNMP <rstory> drPoggs: do you have ddd?
[2004/04/02 08:18:04] #Net-SNMP <drPoggs> i will do in 15s!
[2004/04/02 08:18:48] #Net-SNMP <drPoggs> got it
[2004/04/02 08:19:47] #Net-SNMP <rstory> ddd `which snmptranslate`
[2004/04/02 08:22:16] #Net-SNMP <drPoggs> done
[2004/04/02 08:22:27] #Net-SNMP <drPoggs> after VNC-ing back to home and installing it there
[2004/04/02 08:23:48] #Net-SNMP <rstory> in the gdb window, 'list netsnmp_ds_handle_config' (wes jump in any time, i'm not sure exactly where you were looking)
[2004/04/02 08:24:10] #Net-SNMP <drPoggs> okie, it says:
[2004/04/02 08:24:21] #Net-SNMP <drPoggs> No line number information available for address 0x4007eef0
[2004/04/02 08:24:26] #Net-SNMP <drPoggs>
[2004/04/02 08:24:28] #Net-SNMP <drPoggs> (gdb)
[2004/04/02 08:25:01] #Net-SNMP <rstory> ok, you don't have debug info compile in. so unless you want to rebuild from source, you can't help...
[2004/04/02 08:25:16] #Net-SNMP <drPoggs> d'oh.
[2004/04/02 08:25:35] #Net-SNMP <drPoggs> i'm off in a couple of minutes anyway, i'll go home and recompile from source
[2004/04/02 08:28:20] #Net-SNMP <drPoggs> gone.
--> miike has joined #net-snmp
--> animall has joined #net-snmp
[2004/04/02 10:30:41] #Net-SNMP <rstory> hmmm.. when did SF change their ftp directory layout? would have been nice to get an announcement..
[2004/04/02 10:33:24] #Net-SNMP <rstory> holy toledo! nothing like finding a new, close *fast* mirror!!! (10 hops, 5.776 ms 5.499 ms 5.434 ms)
[2004/04/02 10:34:31] #Net-SNMP <wes> :-)
[2004/04/02 10:41:51] #Net-SNMP <rstory> are we intentionally requiring perl now, for our RPMs?
[2004/04/02 10:41:51] #Net-SNMP <rstory> rpm -Uvh net-snmp-5.1.1-1.rh9.i686.rpm
[2004/04/02 10:41:51] #Net-SNMP <rstory> error: Failed dependencies:
[2004/04/02 10:41:51] #Net-SNMP <rstory> perl(Tk) is needed by net-snmp-5.1.1-1
[2004/04/02 10:42:02] #Net-SNMP <wes> yes.
[2004/04/02 10:42:10] #Net-SNMP <wes> Add --nodeps
[2004/04/02 10:42:27] #Net-SNMP <wes> rpm is sort of lame with respect to perl dependencies.
[2004/04/02 10:42:33] #Net-SNMP <wes> A) it forces it on you.
[2004/04/02 10:42:45] #Net-SNMP <wes> B) we do our own detcetion, but they don't care (sigh)
[2004/04/02 10:44:48] #Net-SNMP <wes> (if someone asks for a non-perl version we could certainly produce one)
--> AgentDev has joined #net-snmp
[2004/04/02 11:19:17] #Net-SNMP <AgentDev> rstory: You there?
[2004/04/02 11:24:45] #Net-SNMP <AgentDev> Anyone around?
[2004/04/02 11:25:01] #Net-SNMP <wes> whats up?
[2004/04/02 11:25:23] #Net-SNMP <AgentDev> Hey...I've a question about send_easy_trap. Can you help?
--> drPoggs has joined #net-snmp
[2004/04/02 11:28:21] #Net-SNMP <zells> gcc -I../../include -I../../include -I. -I../.. -I. -I./../.. -I./../../snmplib -I./.. -I.. -g -O2 -Dopenbsd3 -c agentx/client.c -fPIC -DPIC -o agentx/.libs/client.lo
[2004/04/02 11:28:21] #Net-SNMP <zells> agentx/client.c:49: net-snmp/agent/agent_index.h: No such file or directory
[2004/04/02 11:28:21] #Net-SNMP <zells> *** Error code 1
[2004/04/02 11:28:26] #Net-SNMP <zells> anyone else get that error?
[2004/04/02 11:28:53] #Net-SNMP <drPoggs> *ding* up
[2004/04/02 11:28:54] #Net-SNMP <drPoggs> er, yup
[2004/04/02 11:29:12] #Net-SNMP <drPoggs> one sec
[2004/04/02 11:29:15] #Net-SNMP <zells> thanks
[2004/04/02 11:29:34] #Net-SNMP <zells> mibII/var_route I think was missing a header as well
[2004/04/02 11:29:40] #Net-SNMP <zells> I just configured it without mibII/var_route
[2004/04/02 11:32:16] #Net-SNMP <drPoggs> gimme a sec, just make-ing here
[2004/04/02 11:32:22] #Net-SNMP <zells> ok
[2004/04/02 11:32:27] #Net-SNMP <zells> are you compiling on openbsd?
[2004/04/02 11:33:11] #Net-SNMP <drPoggs> nah, linux
[2004/04/02 11:33:15] #Net-SNMP <zells> k
[2004/04/02 11:33:17] #Net-SNMP <drPoggs> but i had the same problem earlier
[2004/04/02 11:33:21] #Net-SNMP <drPoggs> wes spotted it
[2004/04/02 11:34:15] #Net-SNMP <wes> no, thats a different problem.
[2004/04/02 11:34:30] #Net-SNMP <wes> Probably another problem with the makefiles but I didn't get that one.
[2004/04/02 11:34:41] #Net-SNMP <zells> I'll be back later, gotta run back to work :(
[2004/04/02 11:34:49] #Net-SNMP <zells> I'll stick around though
[2004/04/02 11:34:59] #Net-SNMP <drPoggs> oh - snmptranslate debug *goes fetch source*
[2004/04/02 11:39:37] #Net-SNMP <AgentDev> snmpd uses "send_easy_trap(SNMP_TRAP_ENTERPRISE_SPECIFIC, 2)" to send a shutdown notification when it shuts down. snmptrad displays this as:
[2004/04/02 11:39:37] #Net-SNMP <AgentDev> Received TRAP"6"."NET-SNMP-AGENT-MIB::nsNotifyShutdown" from supptst1.gcom1.com on 04/02/2004 at 13:14:13
[2004/04/02 11:39:37] #Net-SNMP <AgentDev> Enterprise string: NET-SNMP-MIB::netSnmpNotificationPrefix
[2004/04/02 11:39:37] #Net-SNMP <AgentDev> Variable bindings:
[2004/04/02 11:39:37] #Net-SNMP <AgentDev> I have an agentx extension that makes the same call but snmptrapd shows the following:
[2004/04/02 11:39:38] #Net-SNMP <AgentDev> Received TRAP"6".".2" from supptst1.gcom1.com on 04/02/2004 at 13:34:34
[2004/04/02 11:39:41] #Net-SNMP <AgentDev> Enterprise string: NET-SNMP-TC::linux
[2004/04/02 11:39:42] #Net-SNMP <AgentDev> Variable bindings: DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1726) 0:00:17.26 SNMPv2-MIB::snmpTrapOID.0 = OID: NET-SNMP-AGENT-MIB::nsNotifyShutdown
[2004/04/02 11:39:45] #Net-SNMP <AgentDev> Any ideas why when my extension sends this snmptrapd displays the info different
[2004/04/02 11:39:47] #Net-SNMP <AgentDev> ly?
[2004/04/02 11:44:06] #Net-SNMP <rstory> i don't understand why I'm not having the makefile problems from my clean source dir...
[2004/04/02 11:45:48] #Net-SNMP <rstory> doh. maybe it's because i was building using 5-1-patches.
[2004/04/02 11:49:28] #Net-SNMP <rstory> AgentDev: is the subagent linked against the same install as the master?
[2004/04/02 11:50:24] #Net-SNMP <AgentDev> yep...only difference is subagent is linked against ".a" libs instead of ".so"
[2004/04/02 11:52:04] #Net-SNMP <rstory> for the exact same release/build? if you've had multiple releases installed, the latest .a might not match the latest .so...
[2004/04/02 11:52:54] #Net-SNMP <AgentDev> Only one release/build installed. I'm going to try a little experiment real quick.
[2004/04/02 11:57:47] #Net-SNMP <AgentDev> Ok...I thought maybe the "format" specifier for snmptrapd was causing the problem, but it does not appear to be the case. No format specifier seems to have the same problem.
[2004/04/02 11:59:19] #Net-SNMP <AgentDev> My first thought was that there had to some sort of mismatch between the ".a" libs and ".so" libs. So...I linked against the subagent against the ".so" libs and the problem was the same. Weird ain't it.
[2004/04/02 12:00:06] #Net-SNMP <rstory> nah.. agentx is packaging up the trap to send to the master agent, which then sends the trap. something is probably getting changed in the translation.
[2004/04/02 12:00:25] #Net-SNMP <drPoggs> rstory: i've got net-snmp compiled with debugging symbols now and i'm in DDD finally :0
[2004/04/02 12:01:02] #Net-SNMP <rstory> drPoggs: first things first.. does your compiled version exhibit the same problem?
[2004/04/02 12:01:08] #Net-SNMP <drPoggs> rstory: yup
[2004/04/02 12:01:55] #Net-SNMP <rstory> ok.. 'list netsnmp_ds_handle_config' should get you to the souce file in question
[2004/04/02 12:02:19] #Net-SNMP <rstory> doh, and there goes wes, who was the one that wanted the debug info.
[2004/04/02 12:02:29] #Net-SNMP <AgentDev> ok...well that makes sense. The note about agentx does say it is experimental.
[2004/04/02 12:02:57] #Net-SNMP <rstory> yeah, but we need to get rid of that and get everything working.
[2004/04/02 12:03:14] #Net-SNMP <rstory> AgentDev: what release are you using again?
[2004/04/02 12:03:19] #Net-SNMP <AgentDev> 5.0.8
[2004/04/02 12:03:56] #Net-SNMP <AgentDev> Probably should update but it's a pain cause when I do I have to do it for Linux, Solaris SPARC, Solaris INTEL, and HPUX.
[2004/04/02 12:05:54] #Net-SNMP <rstory> well, you could try it on one to see if it fixes the problem..
[2004/04/02 12:10:05] #Net-SNMP <AgentDev> yep...I think I'll do that...cause if it's been fixed since 5.0.8...I don't want you to chase down an old problem that may not be there anymore. I know I hate dealing with try to put changes into back versions of stuff. I'll let you know how it goes. It will probably be Monday before I have results for you.
[2004/04/02 12:10:25] #Net-SNMP <rstory> zells: what relese were you seeing that missing header?
[2004/04/02 12:10:28] #Net-SNMP <rstory> AgentDev: ok, thanks.
[2004/04/02 12:12:33] #Net-SNMP <drPoggs> rstory: it helps to not have your binaries automatically stripped before installation *g*
[2004/04/02 12:13:10] #Net-SNMP <rstory> heh
[2004/04/02 12:15:54] #Net-SNMP <drPoggs> rightyho, i'm ddd-ing
[2004/04/02 12:17:40] #Net-SNMP <drPoggs> ok, this might be an uphill struggle...
[2004/04/02 12:17:55] #Net-SNMP <drPoggs> "/home/pwh/dev/net-snmp-deb/net-snmp-5.1/sysdeps/i386/elf/start.S: No such file or directory"
[2004/04/02 12:27:41] #Net-SNMP <rstory> but does the list command i send get you to source?
[2004/04/02 12:27:50] #Net-SNMP <rstory> s/send/sent/
[2004/04/02 12:31:07] #Net-SNMP <drPoggs> nah
[2004/04/02 12:31:14] #Net-SNMP <drPoggs> it comes back "Function netsnmp_ds_handle_config not defined"
[2004/04/02 12:34:22] #Net-SNMP <rstory> if you want to keep at it, I suggest reconfiguring w/out share libs and w/out optimizations.
[2004/04/02 12:35:40] #Net-SNMP <drPoggs> okie - one sec
[2004/04/02 12:46:01] #Net-SNMP <drPoggs> am i running snmptranslate through ddd?
[2004/04/02 12:46:28] #Net-SNMP <rstory> yes
[2004/04/02 12:46:53] #Net-SNMP <drPoggs> just checking. there's no netsnmp_ds_handle_config symbol in there, i've run it through nm
[2004/04/02 12:49:39] #Net-SNMP <rstory> sigh. ok, we'll do it the hard way. set a breakpoint on init_snmp in main.
[2004/04/02 12:50:23] #Net-SNMP <drPoggs> okie
[2004/04/02 12:50:32] #Net-SNMP <drPoggs> I'm sorry, this is the first time I've gone this far in to coding
[2004/04/02 12:51:26] #Net-SNMP <drPoggs> right, breakpoint set
[2004/04/02 12:52:53] #Net-SNMP <rstory> ok, 'run -IR -On sysContact.0'
[2004/04/02 12:59:31] #Net-SNMP <drPoggs> hang on a sec, found the problem, i used "--with-debug" not "--enable-debugging"
[2004/04/02 13:01:12] #Net-SNMP <rstory> i *hate* that configure accepts basically anything as an argument.
[2004/04/02 13:01:59] #Net-SNMP <drPoggs> mm, it means a great deal of frustration if you don't know what to look out for :\
[2004/04/02 13:02:09] #Net-SNMP <rstory> exactly
[2004/04/02 13:02:39] #Net-SNMP <drPoggs> whilst this is recompiling, i'm tagging up packs of resistors with their resistance values
[2004/04/02 13:03:12] #Net-SNMP <drPoggs> it'd be *so* easy for somebody in the shop to go "OK, those are 120 ohm, those are 1Mohm..." but no - they arrive on strips without labels
--> miike has joined #net-snmp
[2004/04/02 13:16:35] #Net-SNMP <drPoggs> rstory: I can't seem to get ddd to find the source files anywhere :|
[2004/04/02 13:19:32] #Net-SNMP <rstory> try switching to the source dir (net-snmp/apps) and then run 'ddd snmptranslate'
[2004/04/02 13:20:53] #Net-SNMP <drPoggs> Tried that - the snmptranslate in apps/ is a "temporary wrapper for .libs/snmptranslate". also tried ddd /usr/bin/snmptranslate :(
[2004/04/02 13:21:16] #Net-SNMP <rstory> ok, cd .libs and 'ddd snmptranslate'
[2004/04/02 13:22:21] #Net-SNMP <drPoggs> okie, then "list netsnmp_ds_handle_config"?
[2004/04/02 13:22:32] #Net-SNMP <rstory> yep
[2004/04/02 13:23:08] #Net-SNMP <drPoggs> Says its "not defined" again. When I load ddd, it always comes up with "..../net-snmp-5.1/apps/sysdeps/i386/elf/start.S: No such file or directory"
[2004/04/02 13:36:10] #Net-SNMP <zells> hey rstory
[2004/04/02 13:36:12] #Net-SNMP <zells> with the missing header
[2004/04/02 13:36:17] #Net-SNMP <zells> that was version 5.1.1
[2004/04/02 13:36:41] #Net-SNMP <rstory> drPoggs: did you at least get source for main?
[2004/04/02 13:37:17] #Net-SNMP <rstory> zells: hmm.. that's really odd.. nobody else has had that problem, that I know of.. how did you configure?
[2004/04/02 13:37:20] #Net-SNMP <drPoggs> rstory: i've got the whole source from the debian package unpacked
[2004/04/02 13:37:57] #Net-SNMP <zells> uhm
[2004/04/02 13:38:21] #Net-SNMP <zells> ./configure --with-perl-modules --with-mib-modules=host --with-out-mib-modules=mibII/tcpTable
[2004/04/02 13:38:28] #Net-SNMP <zells> tcpTable was broken on openbsd as well
[2004/04/02 13:38:53] #Net-SNMP <zells> as well as mibII/var_route I think it was
[2004/04/02 13:38:56] #Net-SNMP <zells> it was missing a header too
[2004/04/02 13:41:22] #Net-SNMP <zells> I gotta get back to work, I'll stick around in here and read the logs later
--> Ward has joined #net-snmp
[2004/04/02 13:48:39] #Net-SNMP <Ward> I've got a little script which gives me 2 lines of output. When I snmpwalk .1.3.6.1.4.1.2021.8 it displays the ouoput in 1 MIBNUM, is it possible to display the first line in .1 and second in .2 etc?
[2004/04/02 13:49:47] #Net-SNMP <rstory> drPoggs: sorry, i meant does ddd show the source for main when you start it with snmptranslate?
[2004/04/02 13:50:24] #Net-SNMP <rstory> Ward: no, you just get one.
[2004/04/02 13:50:25] #Net-SNMP <drPoggs> rstory: nope, it just throws up that error and gives me a largely blank screen
[2004/04/02 13:51:08] #Net-SNMP <drPoggs> oh, wait a sec
[2004/04/02 13:51:20] #Net-SNMP <rstory> look at your Makefile, for CFLAGS.. does it have '-g' in it?
[2004/04/02 13:51:22] #Net-SNMP <drPoggs> if i do exactly the same thing with the CVS version I have checked out...
[2004/04/02 13:51:59] #Net-SNMP <drPoggs> Yeah, the Debian source's makefile has -g in the CFLAGS
[2004/04/02 13:53:36] #Net-SNMP <rstory> run 'ldd snmptranslate' and make sure it isn't using shared libs for net-snmp...
[2004/04/02 13:54:28] #Net-SNMP <drPoggs> libnetsnmp.so.5 => /usr/lib/libnetsnmp.so.5 (0x4002b000) and a few others - my guess is that it is using shared libraries...
[2004/04/02 13:55:13] #Net-SNMP <rstory> yep.. do this.. 'rm snmptranslate; make snmptranslate' and post the link line here..
[2004/04/02 13:55:44] #Net-SNMP <drPoggs> /bin/sh ../libtool --mode=link gcc -o snmptranslate snmptranslate.lo -L../snmplib -L../agent -L../agent/helpers ../snmplib/libnetsnmp.la -lm
[2004/04/02 13:55:44] #Net-SNMP <drPoggs> gcc -o .libs/snmptranslate .libs/snmptranslate.o -L/home/pwh/dev/net-snmp-deb/net-snmp-5.1/snmplib -L/home/pwh/dev/net-snmp-deb/net-snmp-5.1/agent -L/home/pwh/dev/net-snmp-deb/net-snmp-5.1/agent/helpers ../snmplib/.libs/libnetsnmp.so -lcrypto -lm
[2004/04/02 13:55:44] #Net-SNMP <drPoggs> creating snmptranslate
[2004/04/02 13:56:14] #Net-SNMP <rstory> ok, rm snmptranslate again, then
[2004/04/02 13:56:29] #Net-SNMP <drPoggs> okie
[2004/04/02 13:56:49] #Net-SNMP <rstory> gcc -o .libs/snmptranslate .libs/snmptranslate.o -L/home/pwh/dev/net-snmp-deb/net-snmp-5.1/snmplib -L/home/pwh/dev/net-snmp-deb/net-snmp-5.1/agent -L/home/pwh/dev/net-snmp-deb/net-snmp-5.1/agent/helpers ../snmplib/.libs/libnetsnmp.a -lcrypto -lm
[2004/04/02 13:56:59] #Net-SNMP <drPoggs> done :)
[2004/04/02 13:57:24] #Net-SNMP <drPoggs> aha, i see
[2004/04/02 13:57:35] #Net-SNMP <drPoggs> 500k snmptranslate.
[2004/04/02 13:58:18] #Net-SNMP <rstory> that looks about right
[2004/04/02 13:58:32] #Net-SNMP <drPoggs> ddd's still unable to find the source for it tho
[2004/04/02 13:59:04] #Net-SNMP <rstory> well, i'm stumped.
[2004/04/02 13:59:22] #Net-SNMP <drPoggs> lemme try this all on the SNMP version
[2004/04/02 13:59:35] #Net-SNMP <drPoggs> and thank you very much for being patient... this is frustrating when I don't know what I'm doing
[2004/04/02 14:03:27] #Net-SNMP <drPoggs> actually, i'm gonna give up on this for tonight - its 11am and I really shouldn't be working!
[2004/04/02 14:04:38] #Net-SNMP <rstory> np
[2004/04/02 14:04:45] #Net-SNMP <drPoggs> 'night
--> wasmith has joined #net-snmp
--> jed has joined #net-snmp
--> miike has joined #net-snmp
--> wes has joined #net-snmp
[2004/04/02 17:18:48] #Net-SNMP <zells> has anyone been able to reproduce the gcc -I../../include -I../../include -I. -I../.. -I. -I./../.. -I./../../snmplib -I./.. -I.. -g -O2 -Dopenbsd3 -c agentx/client.c -fPIC -DPIC -o agentx/.libs/client.lo
[2004/04/02 17:18:54] #Net-SNMP <zells> agentx/client.c:49: net-snmp/agent/agent_index.h: No such file or directory
[2004/04/02 17:19:06] #Net-SNMP <zells> error?
[2004/04/02 17:25:32] #Net-SNMP <rstory> no... where are you running make from (what dir)?
[2004/04/02 17:27:06] #Net-SNMP <rstory> and let's check the obvious: ls include/net-snmp/agent/agent_index.h
[2004/04/02 17:34:32] #Net-SNMP <zells> from the net-snmpd dir
[2004/04/02 17:34:35] #Net-SNMP <zells> root from the unpack
[2004/04/02 17:35:16] #Net-SNMP <zells> one sec..
[2004/04/02 17:35:57] #Net-SNMP <rstory> which/what version of make do you have?
[2004/04/02 17:39:42] #Net-SNMP <zells> gnu
[2004/04/02 17:40:13] #Net-SNMP <zells> sec.. just re-making
[2004/04/02 17:40:25] #Net-SNMP <rstory> and include/net-snmp/agent/agent_index.h exists?
[2004/04/02 17:41:31] #Net-SNMP <zells> thats really weird, I unpacked the tar and its there
[2004/04/02 17:41:45] #Net-SNMP <zells> sec...
[2004/04/02 17:42:30] #Net-SNMP <zells> why are there extra quotes in the include/net-snmp/net-snmp-config.h file?
[2004/04/02 17:42:41] #Net-SNMP <zells> in the CONFIGURE_OPTIONS line?
[2004/04/02 17:42:54] #Net-SNMP <zells> that break the build
[2004/04/02 17:43:21] #Net-SNMP <zells> I guess thats a BSD glitch?
[2004/04/02 17:45:24] #Net-SNMP <rstory> ahhhh... yes, that a bsd issue nobody's figured out yet.
[2004/04/02 17:46:19] #Net-SNMP <zells> wierd
[2004/04/02 17:46:27] #Net-SNMP <rstory> it usually shows up in a different place though..
[2004/04/02 17:46:30] #Net-SNMP <zells> ok, just re-compiling
[2004/04/02 17:46:57] #Net-SNMP <zells> tcpTable doesn't work on openbsd
[2004/04/02 17:47:09] #Net-SNMP <zells> I've read in the development faq that thats common
[2004/04/02 17:47:47] #Net-SNMP <zells> actually it was your development faq :)
[2004/04/02 17:47:56] #Net-SNMP <rstory> yes, tcp and udp tables.. though if you comment out the right stuff, it sorta works..
[2004/04/02 17:48:48] #Net-SNMP <zells> all I really want to trace is cpu / mem / hard disk across multiple servers for now
[2004/04/02 17:49:09] #Net-SNMP <zells> I'll start playing around and monitor more things later once I get the daemon working
[2004/04/02 17:54:55] #Net-SNMP <zells> how did you get into the project? :)
[2004/04/02 17:56:49] #Net-SNMP <rstory> started out as a user, developing a custom agent. did that a few different places, submitted patches, etc.
[2004/04/02 17:57:52] #Net-SNMP <rstory> after a few years of that, they invited me to join. hopefully they don't regret it. ;-)
[2004/04/02 17:58:06] #Net-SNMP <zells> sweet
[2004/04/02 17:58:18] #Net-SNMP <zells> I've been reading over some of the logs
[2004/04/02 17:58:25] #Net-SNMP <zells> its really hard to talk to the developers
[2004/04/02 17:58:38] #Net-SNMP <rstory> ? how so?
[2004/04/02 17:58:40] #Net-SNMP <zells> learned a lot already
[2004/04/02 17:58:58] #Net-SNMP <zells> a lot of other projects don't have irc channels run by the developers
[2004/04/02 17:59:08] #Net-SNMP <zells> it compiled now
[2004/04/02 17:59:14] #Net-SNMP <zells> I have no idea how certain header files were wiped
[2004/04/02 17:59:15] #Net-SNMP <rstory> ah, other projects.. ok.
[2004/04/02 17:59:38] #Net-SNMP <zells> I haven't programmed anything in 5 years
[2004/04/02 17:59:41] #Net-SNMP <rstory> cool. :-)
[2004/04/02 17:59:42] #Net-SNMP <zells> can't remember much
[2004/04/02 17:59:43] #Net-SNMP <zells> :)
[2004/04/02 17:59:59] #Net-SNMP <zells> I might go back to uni and learn some c / cpp
[2004/04/02 18:00:24] #Net-SNMP <zells> you really know your shite
[2004/04/02 18:01:00] #Net-SNMP <rstory> sometimes... learned the hard way though. still do. ;-)
[2004/04/02 18:01:12] #Net-SNMP <zells> thats the best way to learn
[2004/04/02 18:01:52] #Net-SNMP <zells> I learned how to repair computers by screwing up my home computer, which happened to be my dads business computer
[2004/04/02 18:01:53] #Net-SNMP <rstory> i broke cvs just yesterday. :-/
[2004/04/02 18:02:10] #Net-SNMP <zells> and I would have to fix it before he got home, or get my ass whooped :)
[2004/04/02 18:02:19] #Net-SNMP <zells> trial and error..
[2004/04/02 18:02:20] #Net-SNMP <rstory> heh.. that's real motivation!
[2004/04/02 18:02:24] #Net-SNMP <zells> oh yeah
[2004/04/02 18:02:43] #Net-SNMP <rstory> well, i gotta get back to work..
[2004/04/02 18:02:51] #Net-SNMP <zells> alright
[2004/04/02 18:02:55] #Net-SNMP <zells> nice chattin with you
[2004/04/02 18:03:05] #Net-SNMP <zells> Summary: 44 / 44 succeeded.
[2004/04/02 18:03:07] #Net-SNMP <zells> sweet :)
[2004/04/02 18:03:11] #Net-SNMP <rstory> :-)
[2004/04/02 18:04:03] #Net-SNMP <zells> seriously, thanks for your guys help I really appreciate it
[2004/04/02 18:04:21] #Net-SNMP <rstory> np