Thanks Martin!<br><br>It makes sense - the system has 8 GB of RAM (8386678784). Maybe what I will do in the meantime is extend the MIB as you suggest just so I can move forward. I'd rather not truncate the value since it is accurate.<br>
<br>Also, there are two values in the os_mon MIB that are incompletely defined: loadAlarmsGroup and diskAlarmsGroup. I commented them out to avoid the error messages.<br><br>Do I need to put in a bug report somewhere?<br>

<br>
Regards,<br>
Edwin<br><br><br><div class="gmail_quote">On Wed, May 28, 2008 at 2:19 AM, Martin Bjorklund <<a href="mailto:mbj@tail-f.com">mbj@tail-f.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<div class="Ih2E3d"><br>
"Edwin Fine" <<a href="mailto:erlang-questions_efine@usa.net">erlang-questions_efine@usa.net</a>> wrote:<br>
> Hi all,<br>
><br>
> I am learning to use OTP snmp. I've done an snmp:config() for a v3 agent,<br>
> which is running ok, it seems. However, when I do an snmpwalk, I get a<br>
> wrongValue error. I'm running Ubuntu Feisty x86_64 using Erlang/OTP R12B-2.<br>
> This only happens if I do an os_mon_mib:load(snmp_master_agent).<br>
><br>
> What am I doing wrong?<br>
<br>
</div>This is a bug in os_mon.<br>
<div class="Ih2E3d"><br>
> $ snmpwalk -v 3 -l authPriv -m ALL -u initial -a MD5 -A **** -x DES -X ****<br>
> <a href="http://127.0.0.1:4000" target="_blank">127.0.0.1:4000</a> otp<br>
> ... snip ...<br>
> OTP-MIB::applVsn.1.7 = STRING: 2.12.2<br>
> OTP-OS-MON-MIB::loadMemorySystemWatermark.0 = INTEGER: 80<br>
> OTP-OS-MON-MIB::loadMemoryErlProcWatermark.0 = INTEGER: 5<br>
> Error in packet.<br>
> Reason: (genError) A general failure occured<br>
> Failed object: OTP-OS-MON-MIB::loadMemoryErlProcWatermark.0<br>
<br>
</div>This tells us that doing a GET-NEXT on loadMemoryErlProcWatermark.0<br>
fails.  The object after this one in the MIB is<br>
loadSystemTotalMemory.<br>
<div class="Ih2E3d"><br>
> The agent error is:<br>
><br>
> User error: Got 8386678784 from {os_mon_mib,load_table,[]}. Using wrongValue<br>
<br>
</div>This tells us that when the agent called the instrumentation function<br>
for loadSystemTotalMemory (which is the function load_table in module<br>
os_mon_mib), it returned 8386678784, which the agent says is a bad<br>
value.<br>
<br>
The reason for the wrongValue is that loadSystemTotalMemory is a<br>
Gauge32, and 8386678784 is not a 32-bit integer.  And this is since<br>
you run on a 64-bit platform.<br>
<br>
The MIB could be extended with an object of type CounterBasedGauge64<br>
from the HCNUM-TC MIB (RFC2856), or the implementation would have to<br>
truncate this value.  In either case - bug in os_mon.<br>
<font color="#888888"><br>
<br>
/martin<br>
<br>
</font></blockquote></div><br>