Index: /tools/wleiden.pl
===================================================================
--- /tools/wleiden.pl	(revision 4042)
+++ /tools/wleiden.pl	(revision 4046)
@@ -946,5 +946,7 @@
 # specific to this node.
 #
-mibs +LIGHT80211-MIB
+#
+#MIBS is not availible, commented by Rick van der Zwet
+#mibs +LIGHT80211-MIB
 EOM
 
@@ -972,5 +974,15 @@
 # Also listen to tcp
 agentaddress 161,tcp:161
-
+EOM
+
+foreach my $if (keys %config) {
+  if( $IP{$if} =~ /([0-9\.]+).*/ ) {
+$snmpd.=<<EOM;
+agentaddress $1
+EOM
+  };
+};
+
+$snmpd.=<<EOM;
 
 # end of file 
