>>> Kristin Thompson <kris...@alfheim.org> schrieb am 17.07.2017 um 18:48 in
Nachricht
<ca+btcz78d98ghopi6szvrbdmthqym-tnq0guskw3+at55ia...@mail.gmail.com>:
> Hello,
> 
> Negative values are being returned for OID 1.3.6.1.4.1.2021.4  when we have
>> 2TB RAM in a server (we have 3TB).
> I understand from our ticket with Red Hat support that this is due to these
> objects being Integer32 instead of Integer64.
> our values:
>    UCD-SNMP-MIB::memTotalReal.0 = INTEGER: -1184633732 kB
>    UCD-SNMP-MIB::memTotalFree.0 = INTEGER: -2082384716 kB
> 
> Is anyone aware of development related to changing this to Int64?

Nobody will ever change the type of an existing OID as it would break 
compatibility.
The maximum amount you can represent with a signed 32-bit integer is about 
1.98TiB.
Maybe just add 2^32 in the meantime:
2^32+-1184633732
3110333564

Regards,
Ulrich


> 
> From support:
>    memTotalReal OBJECT-TYPE  SYNTAX      Integer32
>    memTotalFree OBJECT-TYPE  SYNTAX      Integer32
> 
> Currently running RHEL 6.8 with net-snmp 5.5.60.
> 
> Thanks,
> 
> Kristin Thompson
> Unix System Administrator
> Memorial Hermann Healthcare System





------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to