APC UPS - Warning when current date is passed recommended replace date

Hello,

We have a couple of APC UPS systems in our network. We use SNMP and LibreNMS to check their status. The OID upsAdvBatteryReplaceIndicator (1.3.6.1.4.1.318.1.1.1.2.2.4.0) works perfect.

However there is also a recommended date for battery replacement. This is called upsAdvBatteryRecommendedReplaceDate (1.3.6.1.4.1.318.1.1.1.2.1.3). The outputs is a recommended date to replace the battery.

See output of a snmpwalk both OID’s:

$ snmpwalk -Os -c public -v 2c 192.168.1.100 1.3.6.1.4.1.318.1.1.1.2.2.4.0
iso.3.6.1.4.1.318.1.1.1.2.2.4.0 = INTEGER: 1

$ snmpwalk -Os -c public -v 2c 192.168.1.100 1.3.6.1.4.1.318.1.1.1.2.1.3
iso.3.6.1.4.1.318.1.1.1.2.1.3.0 = STRING: "10/18/2018"

Can the upsAdvBatteryReplaceIndicator be added to the check for APC UPS systems? We missed a couple of battery replacements. Would be great if LibreNMS can notify us when a battery needs replacing.

See also following topic that I created on the the Schneider Electric forum about this:

If testing or more info is needed please let me know!

Addition.

The above OID (1.3.6.1.4.1.318.1.1.1.2.1.3) is for upsBasicBatteryLastReplaceDate.

the output for upsAdvBatteryRecommendedReplaceDate is as follows:

$ snmpwalk -Os -c public -v 2c 192.168.1.100 1.3.6.1.4.1.318.1.1.1.2.2.21.0
iso.3.6.1.4.1.318.1.1.1.2.2.21.0 = STRING: "05/03/2024"```