UPS battery date

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
grussell
Posts: 36
Joined: Thu Jan 21, 2010 2:24 am

UPS battery date

Post by grussell »

Hi,

We have a UPS we are querying using SNMP. One of the values is the date the battery was last changed.

1.3.6.1.4.1.318.1.1.1.2.1.3.0

We are looking for a monitor that can check to see if it was over three years ago.

I am in the UK, but the reply is in US date format (mm/dd/yy): 04/27/04

I've been trying to use alert on "is < than" then "%mm/dd/yy[-3y]%" to perform this check?

But I'm not getting the correct responses.

Can you help?

Gavin.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

1) You cannot use date variables for this test.
Quote from the manual
===================
When you setup "Folder/File Size", "File/Folder Availability", "Count Files", "Text Log" or "Compare Files" tests you can set "Translate macros" option and use special macro variables in the file name:
===================

2) Even if you could use such variables, it will not help because SNMP Agent returns string (value of this OID 1.3.6.1.4.1.318.1.1.1.2.1.3.0 is just a text string). Strings that represent date in this format (mm/dd/yy) cannot be compared correctly, e.g. 05/01/01 > 04/01/09

I would seggest to check upsAdvBatteryReplaceIndicator counter instead (1.3.6.1.4.1.318.1.1.1.2.2.4):
1 - noBatteryNeedsReplacing
2 - batteryNeedsReplacing

Regards
Alex
Post Reply