Le Vendredi, 04 Avril 2008 11:02:41 +0200,
Thomas Anders <[EMAIL PROTECTED]> a écrit :

> lanas wrote:
> > [M1> ./snmpd -H 2>&1 | grep smux
> > /usr/local/share/snmp/snmpd.conf: line 14: Warning: Unknown token:
> > smux.
> 
> "smux" isn't a supported config token for SMUX, only "smuxpeer" and
> "smuxsocket" are. These don't appear in your output which suggests
> that you *don't* have SMUX support compiled in.

I started back from scratch.  Did a 'make uninstall', wiped the
sources, and extracted a fresh net-snmp-5.4.1.tar.gz.  Then:

./configure --with-mib-modules=smux

And the make, make install, ldconfig.

Then I made the following snmpd.conf file in /usr/local/share/snmp/:

[M1> cat snmpd.conf
syslocation    "Right here"
syscontact     [EMAIL PROTECTED]
rwcommunity    private
rocommunity    public
authtrapenable 1
trapcommunity  trapcomm
trapsink       196.0.100.1
trap2sink      196.0.100.1

com2sec readonly default public
group MyROGroup v1 readonly
view all included .1 80
access MyROGroup "" any noauth exact all none none
smuxpeer .1.3.6.1.4.1.3317.1.2.5 quagga_ospfd

And then I chdir to /usr/local/sbin/ and:

./snmpd -Dsmux,smux_init,smux_conf

The funny thing is that the 'error' is still there:

[M1> ./snmpd -Dsmux,smux_init,smux_conf
No log handling enabled - turning on stderr logging
registered debug token smux, 1
registered debug token smux_init, 1
registered debug token smux_conf, 1
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 
netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 
netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 
netsnmp_subtree_load()
[M1> /usr/local/share/snmp/snmpd.conf: line 14: Warning: Unknown token: smux.
smux_init: [smux_init] done; smux listen sd is 6, smux port is 199
NET-SNMP version 5.4.1

[M1> cat /var/log/snmpd.log
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 
netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 
netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 
netsnmp_subtree_load()
/usr/local/share/snmp/snmpd.conf: line 14: Warning: Unknown token: smux.
smux_init: [smux_init] done; smux listen sd is 6, smux port is 199
NET-SNMP version 5.4.1

But now, because of the switches, we see that the port is really taken:

[M1> netstat -nap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       
PID/Program name
tcp        0      0 0.0.0.0:199             0.0.0.0:*               LISTEN      
5430/snmpd
udp        0      0 0.0.0.0:161             0.0.0.0:*                           
5430/snmpd
udp        0      0 0.0.0.0:34920           0.0.0.0:*                           
5430/snmpd
udp        0      0 0.0.0.0:52460           0.0.0.0:*                           
5430/snmpd

So everything's more or less nice.  By this I mean now OSPF will not
connect, but that's the subject of another thread.

> What's the output of 
 > grep -i smux /usr/local/share/snmp/snmpd.conf
> net-snmp-config --snmpd-module-list | tr " " "\n" | grep smux

I preferred to redo the compilation instead.

All in all, without the 'special' switches given to snmpd or without
seeing the actual use of the ports on the machine, one could believe
that because of the warning it does not work.  It is but only a warnign
after all.

Now on to quagga...

Thanks,

Al

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to