Reyk Floeter wrote:
Hi,
the tool is requesting the UCD-SNMP-MIB which is a non-standard
extension of ucd/net-snmp. I'm not convinced to implement any of the
non-standard UCD mibs. Most of the useful values can be exported by
the standards-based HOST-RESOURCES-MIB and I already started on
extending our implementation to report memory usage, CPU load, etc.
That's very interesting, can you please describe how you are going to
report that without a non-standard extension? My own attempts led me to
believe that nothing short of designing and implementing a new MIB can
fix the problem.
On a side note, this little patch avoids annoying crashes in debug mode:
diff -u -r1.21 snmpe.c
--- usr.sbin/snmpd/snmpe.c 26 Sep 2008 15:19:55 -0000 1.21
+++ usr.sbin/snmpd/snmpe.c 5 Dec 2008 11:46:09 -0000
@@ -430,7 +430,10 @@
fprintf(stderr, "addr %s\n",
inet_ntoa(*(struct in_addr *)buf));
} else
- fprintf(stderr, "string \"%s\"\n", buf);
+ if (root->be_len)
+ fprintf(stderr, "string \"%s\"\n", buf);
+ else
+ fprintf(stderr, "empty string");
break;
case BER_TYPE_NULL: /* no payload */
case BER_TYPE_EOC:
--
./lxnt