Avaya ERS3500 mempools [solved]

I’m trying to add support for LibreNMS to poll Avaya ERS3500 switches RAM information.

There is already support for 5500 switches, and it looks like the OIDs are the same.

When I adjust /includes/discovery/mempools/avaya-ers.inc.php to discover 3500’s, it works, but the graphs show nan.

Disco is looking at this OID: .1.3.6.1.4.1.45.1.6.3.8.1.1.12, which is s5ChasUtilMemoryTotalMB and displays 128Mb in my MIB browser.
Disco capture shows that it gets 128.

Now, from what I understand, to be able to log meaningful memory usage stats, we need to know both the total RAM, plus the amount in use?
The amount currently in use is reported in .1.3.6.1.4.1.45.1.6.3.8.1.1.13
But I cannot see that the module does anything other than look up the first OID.

The switch will report the percentage of RAM free in this OID: .1.3.6.1.4.1.45.1.6.3.8.1.1.9, would it not be easier to just use this?

Thanks

====================================
Component | Version
--------- | -------
LibreNMS  | 1.29-121-g890164c
DB Schema | 200
PHP       | 7.0.18-0ubuntu0.16.04.1
MySQL     | 10.0.29-MariaDB-0ubuntu0.16.04.1
RRDTool   | 1.5.5
SNMP      | NET-SNMP 5.7.3
====================================

[OK]    Database connection successful
[OK]    Database schema correct

You need to also adjust the includes/polling/mempools/avaya-ers.inc.php file as well.

Yep, that was it.

I’ll do a PR.

Thanks