There's yet another issue with UCD memory in 5.4: memCached.0 is missing due to
something that looks like a bug with a trivial fix. This affects Linux and
FreeBSD which have this object implemented in 5.3.x. In 5.4 it will only appear
after applying the attached patch. I've tested it on Linux and it works fine
for me.
I'm calling for [quick] votes on whether/when to apply this patch for 5.4.
+Thomas
--
Thomas Anders (thomas.anders at blue-cable.de)
Index: agent/mibgroup/ucd-snmp/memory.c
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/agent/mibgroup/ucd-snmp/memory.c,v
retrieving revision 5.19
diff -u -r5.19 memory.c
--- agent/mibgroup/ucd-snmp/memory.c 7 Nov 2006 23:33:15 -0000 5.19
+++ agent/mibgroup/ucd-snmp/memory.c 17 Nov 2006 20:01:57 -0000
@@ -181,7 +181,7 @@
break;
case MEMORY_CACHED:
mem_info = netsnmp_memory_get_byIdx( NETSNMP_MEM_TYPE_CACHED, 0 );
- if (!mem_info || mem_info->other == -1)
+ if (!mem_info || mem_info->size== -1)
goto NOSUCH;
val = mem_info->size; /* cached */
val *= (mem_info->units/1024);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders