Re: SNMP erlNodeReductions defined too narrow

Stefan Zegenhagen <[email protected]>
Newsgroups gmane.comp.lang.erlang.patches
Organization arcutronix GmbH
Message-ID <1373887183.3597.15.camel@ax-sze>
Dear Tobias,

> this patch fixes the problem I posted to the erlang-bugs mailing list earlier today. In short, this fix simply converts the type of erlNodeReductions from Counter32 to Counter64 in the OTP-MIB.mib file. This patch also removes some warnings discovered by smilint (regarding timestamp formats) and it introduces a new test suite for the otp_mibs application (quite similar to the os_mon_mib suite).
> 
> git fetch https://github.com/schlagert/otp.git snmp_fix_node_reduction_type
> 
> https://github.com/schlagert/otp/compare/erlang:maint...snmp_fix_node_reduction_type
> https://github.com/schlagert/otp/compare/erlang:maint...snmp_fix_node_reduction_type.patch

Unfortunately, (integer) numbers in Erlang never wrap. So even the
Counter64 type will overflow at some point (I've tested that with other
counters in SNMP). It seems to be required to change the instrumentation
function to manually truncate numbers, or change the erlang SNMP stack
to implicitely truncate long integers.


Kind regards,

-- 
Dr. Stefan Zegenhagen

arcutronix GmbH
Garbsener Landstr. 10
30419 Hannover
Germany

Tel:   +49 511 277-2734
Fax:   +49 511 277-2709
Email: [email protected]
Web:   www.arcutronix.com

*Synchronize the Ethernet*

General Managers: Dipl. Ing. Juergen Schroeder, Dr. Josef Gfrerer -
Legal Form: GmbH, Registered office: Hannover, HRB 202442, Amtsgericht
Hannover; Ust-Id: DE257551767.

Please consider the environment before printing this message.

_______________________________________________
erlang-patches mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.